From 7dc4a53600fcebccba7bebc3f44108202055e827 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Tue, 28 Mar 2023 15:33:32 -0700 Subject: [PATCH] Faster Windows/Linux CI --- .github/workflows/ci.yml | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3dd9ea534c5..8775e032e2a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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