-
-
Notifications
You must be signed in to change notification settings - Fork 50
39 lines (30 loc) · 1.08 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
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: 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 With No Default Features (build script usage simulation)
run: cargo build --no-default-features