From 3eb2ecd039d103e7fddb0407c50d43dfe96a6888 Mon Sep 17 00:00:00 2001 From: Gene Date: Mon, 2 Sep 2024 09:42:59 +0800 Subject: [PATCH] fix: github action build too slow (#779) * fix: github action build too slow * fix: github action build too slow * Revert "fix: github action build too slow" This reverts commit bc23ee5ed1b103275704899c6cda629daf4ce1be. * fix: patch vite-plugin-svg-icons. add cache for frequently calling fast-glob.sync in function compilerIcons * update push-check.yml * update push-check.yml * test svg * test svg * try silent mode * log to file * revert some files --- .github/workflows/push-check.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push-check.yml b/.github/workflows/push-check.yml index 509d951e4..0acaab2bd 100644 --- a/.github/workflows/push-check.yml +++ b/.github/workflows/push-check.yml @@ -12,12 +12,13 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 - uses: actions/setup-node@v4 with: node-version: 18 - - - name: Install pnpm - run: npm i -g pnpm - name: Install dependencies run: pnpm i @@ -33,4 +34,10 @@ jobs: - name: Run ESLint run: npx eslint ${{steps.get_changed_files.outputs.all_changed_files}} - name: Run Build - run: pnpm run build:plugin && pnpm run build:alpha + run: pnpm run build:plugin && pnpm run build:alpha > build-alpha.log 2>&1 + + - name: Upload build logs + uses: actions/upload-artifact@v4 + with: + name: build-alpha-log + path: build-alpha.log