Skip to content

Commit

Permalink
chore: optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed May 9, 2024
1 parent ebc4a07 commit 53bd304
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ on:
default: false
type: boolean
release:
types: [ published ]
types: [published]
pull_request:
types: [labeled, synchronize]

Expand All @@ -47,7 +47,7 @@ jobs:
if: ${{ inputs.type == 'demo' || contains(github.event.pull_request.labels.*.name, 'ci:dep-update') }}
strategy:
matrix:
arch: [ ia32, x64 ]
arch: [ia32, x64]
runs-on: windows-latest
env:
npm_config_arch: ${{ matrix.arch }}
Expand All @@ -60,15 +60,13 @@ jobs:
- name: Setup
uses: ./.github/actions/setup

- name: Debug Config
if: ${{ inputs.debug }}
run: |
set npm_config_debug=true
set npm_config_no_symbol=false
- name: Build SDK
run: |
yarn totalBuild
if [[ "${{ inputs.debug }}" == "true" ]]; then
yarn totalBuild --debug=true --no_symbol=false
else
yarn totalBuild
fi
yarn zipBuild
yarn link
Expand Down Expand Up @@ -96,15 +94,13 @@ jobs:
- name: Setup
uses: ./.github/actions/setup

- name: Debug Config
if: ${{ inputs.debug }}
run: |
export npm_config_debug=true
export npm_config_no_symbol=false
- name: Build SDK
run: |
yarn totalBuild
if [[ "${{ inputs.debug }}" == "true" ]]; then
yarn totalBuild --debug=true --no_symbol=false
else
yarn totalBuild
fi
yarn zipBuild
yarn link
Expand All @@ -127,7 +123,7 @@ jobs:

notification:
runs-on: ubuntu-latest
needs: [ build-windows, build-mac ]
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 }}"}}'

0 comments on commit 53bd304

Please sign in to comment.