diff --git a/.github/workflows/windows-installer.yml b/.github/workflows/windows-installer.yml deleted file mode 100644 index 44253bf0..00000000 --- a/.github/workflows/windows-installer.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: "Windows Installer" - -# any branch is useful for testing before a PR is submitted -on: [push, pull_request] - -jobs: - build: - # run on pushes to any branch - # run on PRs from external forks - if: | - (github.event_name != 'pull_request') - || (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id) - name: Build Zip & Exe - runs-on: windows-latest - steps: - - - uses: msys2/setup-msys2@v2 - with: - path-type: inherit - install: >- - zip - - - name: Checkout repository - uses: actions/checkout@v3 - - - uses: actions/setup-node@v3 - with: - node-version: 12 - cache: 'npm' - cache-dependency-path: | - src/package-lock.json - src/bin/doc/package-lock.json - - - name: Install all dependencies and symlink for ep_etherpad-lite - shell: msys2 {0} - run: src/bin/installDeps.sh - - - name: Run the backend tests - shell: msys2 {0} - run: cd src && npm test - - - name: Build the .zip - shell: msys2 {0} - run: src/bin/buildForWindows.sh - - - name: Extract the .zip into folder - working-directory: .. - run: 7z x etherpad-lite\etherpad-win.zip -oetherpad-zip - - - name: Create installer - uses: joncloud/makensis-action@v3.6 - with: - script-file: 'src/bin/nsis/etherpad.nsi' - - - name: Archive production artifacts - uses: actions/upload-artifact@v3 - with: - name: etherpad-win.exe - path: etherpad-win.exe diff --git a/.github/workflows/windows-zip.yml b/.github/workflows/windows.yml similarity index 72% rename from .github/workflows/windows-zip.yml rename to .github/workflows/windows.yml index f744d86e..05d47865 100644 --- a/.github/workflows/windows-zip.yml +++ b/.github/workflows/windows.yml @@ -1,4 +1,4 @@ -name: "Windows Zip" +name: "Windows Build" # any branch is useful for testing before a PR is submitted on: [push, pull_request] @@ -7,13 +7,13 @@ permissions: contents: read jobs: - build: + build-zip: # run on pushes to any branch # run on PRs from external forks if: | (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id) - name: Build + name: Build .zip runs-on: windows-latest steps: - @@ -52,7 +52,40 @@ jobs: name: etherpad-win.zip path: etherpad-win.zip - deploy: + build-exe: + if: | + (github.event_name != 'pull_request') + || (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id) + name: Build .exe + needs: build-zip + runs-on: windows-latest + steps: + - + name: Checkout repository + uses: actions/checkout@v3 + - + name: Download .zip + uses: actions/download-artifact@v3 + with: + name: etherpad-win.zip + path: .. + - + name: Extract .zip + working-directory: .. + run: 7z x etherpad-win.zip -oetherpad-zip + - + name: Create installer + uses: joncloud/makensis-action@v3.6 + with: + script-file: 'src/bin/nsis/etherpad.nsi' + - + name: Archive production artifacts + uses: actions/upload-artifact@v3 + with: + name: etherpad-win.exe + path: etherpad-win.exe + + deploy-zip: # run on pushes to any branch # run on PRs from external forks permissions: @@ -61,7 +94,7 @@ jobs: (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id) name: Deploy - needs: build + needs: build-zip runs-on: windows-latest steps: - diff --git a/README.md b/README.md index 2a4b7b83..c68b7bd3 100644 --- a/README.md +++ b/README.md @@ -48,12 +48,11 @@ removed after 24 hours. [![Backend tests](https://github.com/ether/etherpad-lite/actions/workflows/backend-tests.yml/badge.svg?color=%2344b492)](https://github.com/ether/etherpad-lite/actions/workflows/backend-tests.yml) [![Simulated Load](https://github.com/ether/etherpad-lite/actions/workflows/load-test.yml/badge.svg?color=%2344b492)](https://github.com/ether/etherpad-lite/actions/workflows/load-test.yml) [![Rate Limit](https://github.com/ether/etherpad-lite/actions/workflows/rate-limit.yml/badge.svg?color=%2344b492)](https://github.com/ether/etherpad-lite/actions/workflows/rate-limit.yml) -[![Windows Zip](https://github.com/ether/etherpad-lite/actions/workflows/windows-zip.yml/badge.svg?color=%2344b492)](https://github.com/ether/etherpad-lite/actions/workflows/windows-zip.yml) [![Docker file](https://github.com/ether/etherpad-lite/actions/workflows/dockerfile.yml/badge.svg?color=%2344b492)](https://github.com/ether/etherpad-lite/actions/workflows/dockerfile.yml) [![Frontend admin tests powered by Sauce Labs](https://github.com/ether/etherpad-lite/actions/workflows/frontend-admin-tests.yml/badge.svg?color=%2344b492)](https://github.com/ether/etherpad-lite/actions/workflows/frontend-admin-tests.yml) [![Frontend tests powered by Sauce Labs](https://github.com/ether/etherpad-lite/actions/workflows/frontend-tests.yml/badge.svg?color=%2344b492)](https://github.com/ether/etherpad-lite/actions/workflows/frontend-tests.yml) [![Sauce Test Status](https://saucelabs.com/buildstatus/etherpad.svg)](https://saucelabs.com/u/etherpad) -[![Windows Installer](https://github.com/ether/etherpad-lite/actions/workflows/windows-installer.yml/badge.svg?color=%2344b492)](https://github.com/ether/etherpad-lite/actions/workflows/windows-installer.yml) +[![Windows Build](https://github.com/ether/etherpad-lite/actions/workflows/windows.yml/badge.svg?color=%2344b492)](https://github.com/ether/etherpad-lite/actions/workflows/windows.yml) ### Engagement