build(deps-dev): bump @swc/core from 1.3.83 to 1.3.85 #1232
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build binaries for UnblockNeteaseMusic | |
on: | |
push: | |
branches: | |
- 'enhanced' | |
paths-ignore: | |
- '**.md' | |
- 'precompiled/*.js' | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
paths-ignore: | |
- '**.md' | |
- 'precompiled/*.js' | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
strategy: | |
matrix: | |
target: | |
- 'linux-arm64' | |
- 'linux-x64' | |
- 'win-arm64' | |
- 'win-x64' | |
fail-fast: false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
- name: Set up QEMU | |
id: qemu | |
uses: docker/setup-qemu-action@v2 | |
with: | |
image: tonistiigi/binfmt:latest | |
platforms: all | |
- name: Install dependencies | |
run: yarn | |
- name: Make bundle | |
run: yarn build | |
- name: Building executable file for ${{ matrix.target }} | |
run: | | |
npx pkg --compress Brotli -t node18-${{ matrix.target }} . | |
mv "$(ls dist/*)" "$(ls dist/* | sed 's/server/unblockneteasemusic-${{ matrix.target }}/g')" | |
echo "ASSET_NAME=$(ls dist)" >> $GITHUB_ENV | |
- name: Publishing to GitHub Artifacts | |
uses: actions/upload-artifact@v3 | |
if: github.event_name != 'release' | |
with: | |
name: ${{ env.ASSET_NAME }} | |
path: | | |
./dist/* | |
- name: Publishing to GitHub Releases | |
uses: svenstaro/[email protected] | |
if: github.event_name == 'release' | |
with: | |
repo_token: ${{ github.token }} | |
file: dist/* | |
tag: ${{ github.ref }} | |
file_glob: true |