Skip to content

Commit

Permalink
Try building on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
YtvwlD committed May 18, 2024
1 parent 2e279fc commit d8fb671
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,30 @@ jobs:
with:
command: test
args: --package tests
build-mac:
# We could cross-compile from Linux instead,
# but we'd still need the Xcode Command Line Tools.
# Downloading them requires logging in with an Apple ID,
# which is not possible in the CI. The macOS runners include it.
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Cache Cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build towbootctl for x86_64-apple
uses: actions-rs/cargo@v1
with:
command: build
args: --package towbootctl --target x86_64-apple-darwin --features=binary
- name: Upload x86_64-apple artifact
uses: actions/upload-artifact@v3
with:
name: towbootctl-debug-x86_64-apple
path: target/x86_64-apple-darwin/debug/towbootctl

0 comments on commit d8fb671

Please sign in to comment.