Skip to content

Commit

Permalink
Faster Windows/Linux CI
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny-signal authored Mar 28, 2023
1 parent d1791ff commit 7dc4a53
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7dc4a53

Please sign in to comment.