Skip to content

Commit c8472ee

Browse files
committed
Compile for aarch64 and i686 targets on CI in addition to x86_64
1 parent 42d5870 commit c8472ee

File tree

1 file changed

+34
-7
lines changed

1 file changed

+34
-7
lines changed

.github/workflows/build.yml

+34-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,20 @@ env:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
include:
18+
- TARGET: x86_64-unknown-linux-gnu
19+
OS: ubuntu-latest
20+
- TARGET: aarch64-unknown-linux-gnu
21+
OS: ubuntu-latest
22+
- TARGET: i686-unknown-linux-gnu
23+
OS: ubuntu-latest
24+
25+
runs-on: ${{ matrix.OS }}
26+
env:
27+
TARGET: ${{ matrix.TARGET }}
1528

1629
steps:
1730
- uses: actions/checkout@v2
@@ -24,14 +37,28 @@ jobs:
2437
toolchain: nightly
2538
default: true
2639
profile: minimal
40+
target: ${{ matrix.target }}
41+
components: llvm-tools-preview
2742

43+
- name: Build rsdp, acpi, and aml
44+
run: cargo build -p rsdp -p acpi -p aml --target $TARGET
45+
46+
test:
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: actions/checkout@v2
50+
with:
51+
submodules: 'recursive'
52+
- name: Install Rust
53+
uses: actions-rs/toolchain@v1
54+
with:
55+
toolchain: nightly
56+
default: true
57+
profile: minimal
58+
2859
- name: Install dependencies
29-
run: |
30-
sudo apt-get install -y acpica-tools
31-
32-
- name: Build
33-
run: cargo build --all
34-
60+
run: sudo apt-get install -y acpica-tools
61+
3562
- name: Run tests
3663
run: cargo test --all
3764

0 commit comments

Comments
 (0)