Skip to content

Commit

Permalink
Update GH Actions workflow to build Brioche for aarch64-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewlacy committed Dec 23, 2024
1 parent a45f37d commit c0c9763
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ jobs:
- name: x86_64-linux
runs_on: ubuntu-24.04
target: x86_64-unknown-linux-gnu
- name: aarch64-linux
runs_on: ubuntu-24.04
target: aarch64-unknown-linux-gnu
features: openssl/vendored
install_deps: |
sudo apt-get install -y gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
- name: x86_64-macos
runs_on: macos-14
target: x86_64-apple-darwin
Expand All @@ -83,19 +89,28 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
if: matrix.platform.install_deps
run: ${{ matrix.platform.install_deps }}
- name: Install Rust targets
run: rustup target add "$TARGET"
env:
TARGET: ${{ matrix.platform.target }}
- name: Build Brioche
run: |
cargo build \
--all \
--bin brioche \
--release \
--target="$TARGET"
extra_args=()
if [ -n "$FEATURES" ]; then
extra_args+=(--features "$FEATURES")
fi
cargo build \
--all \
--bin brioche \
--release \
--target="$TARGET" \
"${extra_args[@]}"
env:
TARGET: ${{ matrix.platform.target }}
FEATURES: ${{ matrix.platform.features }}
- name: Prepare artifact
run: |
mkdir -p "artifacts/brioche/$PLATFORM/"
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/brioche/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ clap = { version = "4.5.21", features = ["derive"] }
futures = "0.3.31"
hex = "0.4.3"
notify = "7.0.0"
openssl = { version = "0.10.68", optional = true }
reqwest = { version = "0.12.9", default-features = false, features = ["rustls-tls", "zstd", "json"] }
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.133"
Expand Down

0 comments on commit c0c9763

Please sign in to comment.