From 6f17d2f913d78711c7460cd3b83508e4b98973af Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Tue, 23 Feb 2021 22:13:00 -0500 Subject: [PATCH] CI: Use Windows to build the Windows zip npm might do something different on Windows when setting up the executables in `src/node_modules/.bin`. --- .github/workflows/windows-zip.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/windows-zip.yml b/.github/workflows/windows-zip.yml index 8e52dc066..6e5f80bd4 100644 --- a/.github/workflows/windows-zip.yml +++ b/.github/workflows/windows-zip.yml @@ -10,10 +10,16 @@ jobs: if: | (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id) - name: Building Windows Zip on Linux without plugins - runs-on: ubuntu-latest + name: Build + runs-on: windows-latest steps: + - uses: msys2/setup-msys2@v2 + with: + path-type: inherit + install: >- + zip + - name: Checkout repository uses: actions/checkout@v2 @@ -22,12 +28,15 @@ jobs: node-version: 12 - 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: Archive production artifacts @@ -43,7 +52,7 @@ jobs: if: | (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id) - name: Deploy Windows Zip on Windows + name: Deploy needs: build runs-on: windows-latest