-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.19 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
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@v3
- name: "Install stable"
uses: dtolnay/rust-toolchain@stable
- name: "rustup target add ${{ matrix.target }}"
run: rustup target add ${{ matrix.target }}
- name: "cargo check"
# NOTE: custom
run: cargo check --target ${{ matrix.target }} --no-default-features
#
alloc:
name: "${{ matrix.target }}"
runs-on: ubuntu-latest
strategy:
matrix:
target: [thumbv7m-none-eabi, aarch64-unknown-none]
steps:
- name: "checkout"
uses: actions/checkout@v3
- name: "Install stable"
uses: dtolnay/rust-toolchain@stable
- name: "rustup target add ${{ matrix.target }}"
run: rustup target add ${{ matrix.target }}
- name: "cargo check `alloc`"
# NOTE: custom
run: cargo check --target ${{ matrix.target }} --no-default-features --features=alloc