Skip to content

Commit

Permalink
ci: fix macos build action
Browse files Browse the repository at this point in the history
  • Loading branch information
jtroo committed Dec 11, 2023
1 parent 38bbabd commit ae03ed4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/macos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,19 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
shared-key: "persist-cross-job"
workspaces: ./
- name: Build release
run: cargo build --release
- name: Move build artifact
shell: bash
run: |
mkdir -p artifacts
mv ./target/aarch64-apple-darwin/release/kanata artifacts/kanata_macos
mv target/x86_64-apple-darwin/release/kanata artifacts/kanata_macos
- name: Build release with cmd feature
run: cargo build --release --features cmd
- name: Move build artifact with cmd feature
shell: bash
run: |
mv ./target/aarch64-apple-darwin/release/kanata artifacts/kanata_macos_cmd_allowed
- name: Strip binaries
shell: bash
run: |
strip artifacts/*
mv target/x86_64-apple-darwin/release/kanata artifacts/kanata_macos_cmd_allowed
- uses: actions/upload-artifact@v3
with:
name: macos-binaries
Expand Down

0 comments on commit ae03ed4

Please sign in to comment.