mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
Add CI
This commit is contained in:
parent
0643095695
commit
7ddfeafc84
25
.github/workflows/rust.yml
vendored
Normal file
25
.github/workflows/rust.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
name: Rust
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
target: thumbv7em-none-eabihf
|
||||
override: true
|
||||
- name: Build
|
||||
run: ./test-build.sh
|
14
test-build.sh
Executable file
14
test-build.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
cargo build --target thumbv7em-none-eabihf -p embassy-examples --bins
|
||||
cargo build --target thumbv7em-none-eabihf -p embassy
|
||||
|
||||
# Build with all feature combinations
|
||||
cd embassy-nrf
|
||||
cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52810
|
||||
#cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52811 # nrf52811-hal doesn't exist yet
|
||||
cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52832
|
||||
cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52833
|
||||
cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52840
|
Loading…
Reference in New Issue
Block a user