-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (48 loc) · 1.49 KB
/
nostd.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
permissions:
contents: read
on:
push:
branches: [main]
pull_request:
name: "no-std"
jobs:
#
nostd:
name: "${{ matrix.target }}"
runs-on: ubuntu-latest
strategy:
matrix:
target: [thumbv7m-none-eabi, aarch64-unknown-none]
steps:
- name: "checkout"
uses: actions/checkout@v4
with:
submodules: true
- name: "Install stable"
uses: dtolnay/rust-toolchain@stable
- name: "rustup target add ${{ matrix.target }}"
run: rustup target add ${{ matrix.target }}
- name: "cargo check -F all,no_std,unsafe"
run: cargo check --target ${{ matrix.target }} -F all,no_std,unsafe
- name: "cargo check -F all,no_std,safe"
run: cargo check --target ${{ matrix.target }} -F all,no_std,safe
#
alloc:
name: "${{ matrix.target }}"
runs-on: ubuntu-latest
strategy:
matrix:
target: [thumbv7m-none-eabi, aarch64-unknown-none]
steps:
- name: "checkout"
uses: actions/checkout@v4
with:
submodules: true
- name: "Install stable"
uses: dtolnay/rust-toolchain@stable
- name: "rustup target add ${{ matrix.target }}"
run: rustup target add ${{ matrix.target }}
- name: "cargo check alloc -F all,alloc,unsafe"
run: cargo check --target ${{ matrix.target }} -F all,alloc,unsafe
- name: "cargo check alloc -F all,alloc,safe"
run: cargo check --target ${{ matrix.target }} -F all,alloc,safe