From 9a11a39e1c3fdea6a8907a7a8a11fbcb63f0eaa3 Mon Sep 17 00:00:00 2001 From: gxz Date: Fri, 19 Jul 2024 21:13:16 +0800 Subject: [PATCH] chore: optimize --- .github/actions/setup/action.yml | 10 ---------- .github/workflows/build.yml | 10 ++-------- example/package.json | 1 - 3 files changed, 2 insertions(+), 19 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 46aef91bd..19ae9ec7f 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -22,16 +22,6 @@ runs: with: python-version: 3.11.5 - - name: Cache dependencies - id: yarn-cache - uses: actions/cache@v3 - with: - path: | - **/node_modules - key: ${{ runner.os }}-yarn-ng-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn-ng - - name: Install dependencies if: ${{ !inputs.skip_install }} run: | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d8d755b75..1f6cce0a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,10 +64,7 @@ jobs: - name: Build Example run: | - yarn install - yarn link agora-electron-sdk yarn dist:win --${{ matrix.arch }} - yarn unlink agora-electron-sdk working-directory: example - uses: actions/upload-artifact@v3 @@ -99,16 +96,13 @@ jobs: run: | yarn yarn example:prepare + env: + USE_HARD_LINKS: false - name: Build Example run: | node scripts/build-example-prepare.js - yarn install - yarn link agora-electron-sdk yarn dist:mac - yarn unlink agora-electron-sdk - env: - USE_HARD_LINKS: false working-directory: example - uses: actions/upload-artifact@v3 diff --git a/example/package.json b/example/package.json index 25fe43023..6fe818fc5 100644 --- a/example/package.json +++ b/example/package.json @@ -9,7 +9,6 @@ "rebuild": "electron-rebuild -f -o ref-napi", "dist": "npm run compile && electron-builder", "dist:mac": "npm run dist -- --mac", - "dist:mac-x64": "npm run dist -- --mac --x64", "dist:win": "npm run dist -- --win", "dist:win32": "npm run dist:win -- --ia32", "dist:win64": "npm run dist:win -- --x64"