Skip to content

Commit

Permalink
chore: optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed May 8, 2024
1 parent 8670244 commit afce122
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 40 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
if: ${{ inputs.type == 'demo' || contains(github.event.pull_request.labels.*.name, 'ci:dep-update') }}
strategy:
matrix:
arch: [ ia32, x64 ]
arch: [ ia32 ]
runs-on: windows-latest
env:
npm_config_arch: ${{ matrix.arch }}
Expand Down Expand Up @@ -76,41 +76,41 @@ jobs:
example/dist/Agora-Electron-API-Example-*-win.zip
if-no-files-found: error

build-mac:
if: ${{ inputs.type == 'demo' || contains(github.event.pull_request.labels.*.name, 'ci:dep-update') }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
# build-mac:
# if: ${{ inputs.type == 'demo' || contains(github.event.pull_request.labels.*.name, 'ci:dep-update') }}
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
# - name: Setup
# uses: ./.github/actions/setup

- name: Build SDK
run: |
yarn totalBuild
yarn zipBuild
yarn link
# - name: Build SDK
# run: |
# yarn totalBuild
# yarn zipBuild
# yarn link

- name: Build Example
run: |
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
with:
name: AgoraRtcNgExample-mac
path: |
example/dist/Agora-Electron-API-Example-*-mac.zip
if-no-files-found: error
notification:
runs-on: ubuntu-latest
needs: [ build-windows, build-mac ]
steps:
- run: |
curl -X POST "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=${{ secrets.WECHAT_KEY }}" -d '{"msgtype":"text","text":{"content":"Electron Example:\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\nDownload Link:\nhttps://nightly.link/${{ github.repository }}/actions/runs/${{ github.run_id }}"}}'
# - name: Build Example
# run: |
# 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
# with:
# name: AgoraRtcNgExample-mac
# path: |
# example/dist/Agora-Electron-API-Example-*-mac.zip
# if-no-files-found: error

# notification:
# runs-on: ubuntu-latest
# needs: [ build-windows, build-mac ]
# steps:
# - run: |
# curl -X POST "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=${{ secrets.WECHAT_KEY }}" -d '{"msgtype":"text","text":{"content":"Electron Example:\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\nDownload Link:\nhttps://nightly.link/${{ github.repository }}/actions/runs/${{ github.run_id }}"}}'
6 changes: 3 additions & 3 deletions scripts/downloadPrebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ module.exports = async () => {
},
});

if (no_symbol) {
await removeFileByFilter();
}
// if (no_symbol) {
// await removeFileByFilter();
// }
};
2 changes: 1 addition & 1 deletion scripts/getConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const getArgvFromPkgJson = () => {
debug = false,
silent = false,
arch = process.arch,
no_symbol = false,
no_symbol = true,
} = agora_electron;

return {
Expand Down

0 comments on commit afce122

Please sign in to comment.