Readded building windows with tar/Upload windows build on release

* Use windows.

* Fixed windows yml.

* Also upload windows build on tag to release folder.

* Added comment.

* Updated file name to be in sync with release name.

* Revert "Updated file name to be in sync with release name."

This reverts commit 2fbc26a891.

* Reverted and just rename at the end.
pull/5913/head
SamTV12345 2023-09-04 21:57:10 +02:00 committed by GitHub
parent 2632698543
commit 6f5d8834e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 15 deletions

View File

@ -15,22 +15,16 @@ jobs:
|| (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id) || (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id)
name: Build .zip name: Build .zip
runs-on: windows-latest runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps: steps:
- -
uses: msys2/setup-msys2@v2 uses: msys2/setup-msys2@v2
with: with:
release: false
update: false
path-type: inherit path-type: inherit
install: >- install: >-
zip zip
rsync
- -
name: Checkout repository name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v3
- -
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
@ -41,17 +35,16 @@ jobs:
src/bin/doc/package-lock.json src/bin/doc/package-lock.json
- -
name: Install all dependencies and symlink for ep_etherpad-lite name: Install all dependencies and symlink for ep_etherpad-lite
run: | shell: msys2 {0}
set MSYSTEM=winsymlinks:lnk run: src/bin/installDeps.sh
src/bin/installDeps.sh
- -
name: Run the backend tests name: Run the backend tests
shell: msys2 {0}
run: cd src && npm test run: cd src && npm test
- -
name: Build the .zip name: Build the .zip
run: | shell: msys2 {0}
set MSYSTEM=winsymlinks:lnk run: src/bin/buildForWindows.sh
src/bin/buildForWindows.sh
- -
name: Archive production artifacts name: Archive production artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
@ -69,7 +62,7 @@ jobs:
steps: steps:
- -
name: Checkout repository name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v3
- -
name: Download .zip name: Download .zip
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
@ -96,7 +89,7 @@ jobs:
# run on pushes to any branch # run on pushes to any branch
# run on PRs from external forks # run on PRs from external forks
permissions: permissions:
contents: none contents: write
if: | if: |
(github.event_name != 'pull_request') (github.event_name != 'pull_request')
|| (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id) || (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id)
@ -130,3 +123,13 @@ jobs:
node node_modules\ep_etherpad-lite\node\server.js & node node_modules\ep_etherpad-lite\node\server.js &
curl --connect-timeout 10 --max-time 20 --retry 5 --retry-delay 10 --retry-max-time 60 --retry-connrefused http://127.0.0.1:9001/p/test curl --connect-timeout 10 --max-time 20 --retry 5 --retry-delay 10 --retry-max-time 60 --retry-connrefused http://127.0.0.1:9001/p/test
src\node_modules\cypress\bin\cypress run --config-file src\tests\frontendcypress\cypress.config.js src\node_modules\cypress\bin\cypress run --config-file src\tests\frontendcypress\cypress.config.js
# On release, upload windows zip to GitHub release tab
-
name: Rename to etherpad-lite-win.zip
shell: powershell
run: mv etherpad-win.zip etherpad-lite-win.zip
- name: upload binaries to release
uses: softprops/action-gh-release@v1
if: ${{startsWith(github.ref, 'refs/tags/') }}
with:
files: etherpad-lite-win.zip