mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +01:00
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`.
This commit is contained in:
parent
dabff9be77
commit
6f17d2f913
1 changed files with 12 additions and 3 deletions
15
.github/workflows/windows-zip.yml
vendored
15
.github/workflows/windows-zip.yml
vendored
|
@ -10,10 +10,16 @@ jobs:
|
||||||
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)
|
||||||
name: Building Windows Zip on Linux without plugins
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- uses: msys2/setup-msys2@v2
|
||||||
|
with:
|
||||||
|
path-type: inherit
|
||||||
|
install: >-
|
||||||
|
zip
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
@ -22,12 +28,15 @@ jobs:
|
||||||
node-version: 12
|
node-version: 12
|
||||||
|
|
||||||
- name: Install all dependencies and symlink for ep_etherpad-lite
|
- name: Install all dependencies and symlink for ep_etherpad-lite
|
||||||
|
shell: msys2 {0}
|
||||||
run: src/bin/installDeps.sh
|
run: 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
|
||||||
|
shell: msys2 {0}
|
||||||
run: src/bin/buildForWindows.sh
|
run: src/bin/buildForWindows.sh
|
||||||
|
|
||||||
- name: Archive production artifacts
|
- name: Archive production artifacts
|
||||||
|
@ -43,7 +52,7 @@ jobs:
|
||||||
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)
|
||||||
name: Deploy Windows Zip on Windows
|
name: Deploy
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue