-
Notifications
You must be signed in to change notification settings - Fork 10
33 lines (32 loc) · 981 Bytes
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Cargo Build Test
on:
workflow_dispatch:
push:
jobs:
test-build:
runs-on: ubuntu-latest
container:
image: archlinux:base
volumes:
- .:/code
strategy:
fail-fast: false
matrix:
arch: [x86_64, riscv64, aarch64, loongarch64]
include:
- arch: aarch64
target: aarch64-unknown-none-softfloat
- arch: riscv64
target: riscv64gc-unknown-none-elf
- arch: x86_64
target: x86_64-unknown-none
- arch: loongarch64
target: loongarch64-unknown-none
steps:
- uses: actions/checkout@v4
- name: Install generaic tools
run: yes | pacman -Syy make cmake rustup gcc
- name: setup rust toolchain
run: rustup default nightly && cargo install cargo-binutils && rustup target add ${{ matrix.target }}
- name: Test Build ${{ matrix.arch }}
run: cargo build --release --target ${{ matrix.target}} --all-features