-
-
Notifications
You must be signed in to change notification settings - Fork 50
42 lines (32 loc) · 1.19 KB
/
ci-builds.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
name: ci
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- { toolchain: nightly }
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust.toolchain }}
default: true
- name: Install Rust Source
run: rustup component add rust-src
- name: Install GNU Binutils
run: sudo apt-get update && sudo apt-get install binutils-arm-none-eabi
- name: Build The Examples (Link With GNU, weak compiler intrinsics)
run: cargo build --examples
- name: Check that all our features work
run: cargo build --examples --all-features
- name: Delete the .cargo/config.toml
run: rm -fr .cargo/config.toml
- name: Build The Examples (Link With LLD, strong compiler intrinsics)
run: RUSTFLAGS="-Clink-arg=-Tlinker_scripts/mono_boot.ld" cargo build --examples --target=thumbv4t-none-eabi -Zbuild-std=core
- name: Build The Crate For Host With No Default Features (build script usage simulation)
run: cargo build --no-default-features --lib