Skip to content

Commit

Permalink
ci: edit still non-functional 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 6fbffdd
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/macos-build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: macos-build

# This currently doesn't *seem* to work.
# For some reason the binary is much tinier than Linux/Windows. (70 KB, is that real??)
# Also standard and the cmd_allowed variant have the same checksum,
# meaning they are the same binary. Which makes no sense.
# Unfortunately I can't test the binary itself since I don't own any macOS devices.

on:
workflow_dispatch:
branches: [ "main" ]
Expand All @@ -18,24 +24,14 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
shared-key: "persist-cross-job"
workspaces: ./
- name: Build release
run: cargo build --release
- name: Move build artifact
- name: Do the stuff
shell: bash
run: |
mkdir -p artifacts
mv ./target/aarch64-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/*
cargo build --release
mv target/release/kanata artifacts/kanata_macos
cargo build --release --features cmd
mv target/release/kanata artifacts/kanata_macos_cmd_allowed
- uses: actions/upload-artifact@v3
with:
name: macos-binaries
Expand Down

0 comments on commit 6fbffdd

Please sign in to comment.