Faster Windows/Linux CI
This commit is contained in:
parent
d1791ff6be
commit
7dc4a53600
1 changed files with 27 additions and 3 deletions
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
|
@ -45,7 +45,7 @@ jobs:
|
|||
macos:
|
||||
needs: lint
|
||||
runs-on: macos-latest
|
||||
if: github.ref == 'refs/heads/development' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
|
||||
if: github.ref == 'refs/heads/main'
|
||||
timeout-minutes: 30
|
||||
|
||||
steps:
|
||||
|
@ -112,9 +112,21 @@ jobs:
|
|||
|
||||
- run: yarn generate
|
||||
- run: yarn prepare-beta-build
|
||||
- run: yarn build
|
||||
|
||||
- name: Create bundle
|
||||
run: yarn build:esbuild:prod
|
||||
|
||||
- name: Build with packaging .deb file
|
||||
run: yarn build:release
|
||||
if: github.ref == 'refs/heads/main'
|
||||
env:
|
||||
DISABLE_INSPECT_FUSE: on
|
||||
- name: Build without packaging .deb file
|
||||
run: yarn build:release --linux dir
|
||||
if: github.ref != 'refs/heads/main'
|
||||
env:
|
||||
DISABLE_INSPECT_FUSE: on
|
||||
|
||||
- run: xvfb-run --auto-servernum yarn test-node
|
||||
- run: xvfb-run --auto-servernum yarn test-electron
|
||||
timeout-minutes: 5
|
||||
|
@ -158,9 +170,21 @@ jobs:
|
|||
- run: del package.json
|
||||
- run: type temp.json | findstr /v certificateSubjectName | findstr /v certificateSha1 > package.json
|
||||
- run: yarn prepare-beta-build
|
||||
- run: yarn build
|
||||
|
||||
- name: Create bundle
|
||||
run: yarn build:esbuild:prod
|
||||
|
||||
- name: Build with NSIS
|
||||
run: yarn build:release
|
||||
if: github.ref == 'refs/heads/main'
|
||||
env:
|
||||
DISABLE_INSPECT_FUSE: on
|
||||
- name: Build without NSIS
|
||||
run: yarn build:release --win dir
|
||||
if: github.ref != 'refs/heads/main'
|
||||
env:
|
||||
DISABLE_INSPECT_FUSE: on
|
||||
|
||||
- run: yarn test-electron
|
||||
timeout-minutes: 5
|
||||
- run: yarn test-release
|
||||
|
|
Loading…
Add table
Reference in a new issue