Skip to content

Commit

Permalink
chore: optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Jul 19, 2024
1 parent 605b733 commit 9a11a39
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
10 changes: 0 additions & 10 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9a11a39

Please sign in to comment.