Skip to content

Commit

Permalink
Compile for aarch64 and i686 targets on CI in addition to x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacWoods committed Oct 18, 2023
1 parent 42d5870 commit ffe7c49
Showing 1 changed file with 44 additions and 8 deletions.
52 changes: 44 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,63 @@ env:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- TARGET: x86_64-unknown-linux-gnu
OS: ubuntu-latest
- TARGET: aarch64-unknown-linux-gnu
OS: ubuntu-latest
- TARGET: i686-unknown-linux-gnu
OS: ubuntu-latest

runs-on: ${{ matrix.OS }}
env:
TARGET: ${{ matrix.TARGET }}

steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'

- name: Create Cargo config file
run: |
cat >>~/.cargo/config <<EOF
[target.aarch64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
[target.i686-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
EOF
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: actions-rs/toolchain@v2
with:
toolchain: nightly
default: true
profile: minimal

- name: Install dependencies
run: |
sudo apt-get install -y acpica-tools
target: ${{ matrix.target }}
components: llvm-tools-preview

- name: Build
run: cargo build --all

run: cargo build --all --target $TARGET

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install Rust
uses: actions-rs/toolchain@v2
with:
toolchain: nightly
default: true
profile: minimal

- name: Install dependencies
run: sudo apt-get install -y acpica-tools

- name: Run tests
run: cargo test --all

Expand Down

0 comments on commit ffe7c49

Please sign in to comment.