Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed Feb 10, 2025
1 parent 6dc2c5a commit dbcea3e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/release-macos-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,27 @@ jobs:
- name: Install Rust target for Apple Silicon
run: rustup target add aarch64-apple-darwin

- name: Get Release Version
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Build macOS ARM64 binary
run: cargo build --release --target aarch64-apple-darwin

- name: Rename Binary
run: mv target/aarch64-apple-darwin/release/moonshine-installer installer_aarch64-apple-darwin
- name: Rename Binary with Version
run: |
mv target/aarch64-apple-darwin/release/moonshine-installer installer_${VERSION}_aarch64-apple-darwin
zip installer_${VERSION}_aarch64-apple-darwin.zip installer_${VERSION}_aarch64-apple-darwin
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: installer_aarch64-apple-darwin
path: installer_aarch64-apple-darwin
name: installer_${{ env.VERSION }}_aarch64-apple-darwin.zip
path: installer_${{ env.VERSION }}_aarch64-apple-darwin.zip

- name: Upload to GitHub Release
uses: softprops/action-gh-release@v1
with:
files: installer_aarch64-apple-darwin
files: installer_${{ env.VERSION }}_aarch64-apple-darwin.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit dbcea3e

Please sign in to comment.