Skip to content

Commit

Permalink
add auto build macos
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaarey committed Nov 25, 2024
1 parent 9223293 commit 1050cc1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
run: |
mkdir -p alac
cp agent.js alac/
cp agent-arm64.js alac/
cp config.yaml alac/
cp README.md alac/
cp main.exe alac/
Expand All @@ -47,6 +48,7 @@ jobs:
run: |
mkdir -p alac
cp agent.js alac/
cp agent-arm64.js alac/
cp config.yaml alac/
cp README.md alac/
cp main alac/
Expand All @@ -55,3 +57,28 @@ jobs:
with:
name: apple-music-alac-atmos-downloader-linux
path: alac/*

build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.20'
- name: Build
run: |
go build -o main -v ./main.go
- name: Create a new directory and copy files
run: |
mkdir -p alac
cp agent.js alac/
cp agent-arm64.js alac/
cp config.yaml alac/
cp README.md alac/
cp main alac/
- name: Upload apple-music-alac-atmos-downloader
uses: actions/upload-artifact@v4
with:
name: apple-music-alac-atmos-downloader-macos
path: alac/*

0 comments on commit 1050cc1

Please sign in to comment.