Faster Windows/Linux CI

This commit is contained in:
Fedor Indutny 2023-03-28 15:33:32 -07:00 committed by GitHub
parent d1791ff6be
commit 7dc4a53600
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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