Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
Add aarch64 architecture to linux ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bytedream committed Jul 27, 2023
1 parent b1342d5 commit 435b75b
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ on:
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- arch: x86_64
toolchain: x86_64-unknown-linux-musl
- arch: aarch64
toolchain: aarch64-unknown-linux-musl
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -25,37 +32,31 @@ jobs:
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install system dependencies
run: sudo apt-get install musl-tools

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: x86_64-unknown-linux-musl
- name: Install cross
run: cargo install cross

- name: Build
run: cargo build --release --all-features --target x86_64-unknown-linux-musl
run: cross build --release --all-features --target ${{ matrix.toolchain }}

- name: Upload binary artifact
uses: actions/upload-artifact@v3
with:
name: crunchy-cli-linux-x86_64
path: ./target/x86_64-unknown-linux-musl/release/crunchy-cli
name: crunchy-cli-linux-${{ matrix.arch }}
path: ./target/${{ matrix.toolchain }}/release/crunchy-cli
if-no-files-found: error

- name: Upload manpages artifact
uses: actions/upload-artifact@v3
with:
name: manpages
path: ./target/x86_64-unknown-linux-musl/release/manpages
path: ./target/${{ matrix.toolchain }}/release/manpages
if-no-files-found: error

- name: Upload completions artifact
uses: actions/upload-artifact@v3
with:
name: completions
path: ./target/x86_64-unknown-linux-musl/release/completions
path: ./target/${{ matrix.toolchain }}/release/completions
if-no-files-found: error

build-mac:
Expand Down

0 comments on commit 435b75b

Please sign in to comment.