diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 7ac8729..e502436 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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/ @@ -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/ @@ -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/*