Add CI
This commit is contained in:
parent
cb5931d583
commit
10cd5bddc9
2
.cargo/config
Normal file
2
.cargo/config
Normal file
@ -0,0 +1,2 @@
|
||||
[unstable]
|
||||
namespaced-features = true
|
24
.github/workflows/rust.yml
vendored
Normal file
24
.github/workflows/rust.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
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-eabi
|
||||
override: true
|
||||
- name: Build
|
||||
run: ./test-build.sh
|
@ -11,6 +11,7 @@ defmt-debug = []
|
||||
defmt-info = []
|
||||
defmt-warn = []
|
||||
defmt-error = []
|
||||
defmt = [ "dep:defmt", "smoltcp/defmt" ]
|
||||
|
||||
[dependencies]
|
||||
|
||||
|
@ -112,7 +112,6 @@ impl<'a> TcpSocket<'a> {
|
||||
}
|
||||
|
||||
fn to_ioerr(e: Error) -> io::Error {
|
||||
warn!("smoltcp err: {:?}", e);
|
||||
// todo
|
||||
io::Error::Other
|
||||
}
|
||||
|
@ -2,24 +2,12 @@
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
# embassy std
|
||||
(cd embassy; cargo build --features log,std)
|
||||
# build for std
|
||||
(cd embassy-net; cargo build --features log)
|
||||
|
||||
# embassy embedded
|
||||
(cd embassy; cargo build --target thumbv7em-none-eabi)
|
||||
(cd embassy; cargo build --target thumbv7em-none-eabi --features log)
|
||||
(cd embassy; cargo build --target thumbv7em-none-eabi --features defmt)
|
||||
|
||||
# embassy-nrf
|
||||
|
||||
(cd embassy-nrf-examples; cargo build --target thumbv7em-none-eabi --bins)
|
||||
|
||||
(cd embassy-nrf; cargo build --target thumbv7em-none-eabi --features 52810)
|
||||
#(cd embassy-nrf; cargo build --target thumbv7em-none-eabi --features 52811) # nrf52811-hal doesn't exist yet
|
||||
(cd embassy-nrf; cargo build --target thumbv7em-none-eabi --features 52832)
|
||||
(cd embassy-nrf; cargo build --target thumbv7em-none-eabi --features 52833)
|
||||
(cd embassy-nrf; cargo build --target thumbv7em-none-eabi --features 52840)
|
||||
|
||||
(cd embassy-nrf; cargo build --target thumbv7em-none-eabi --features 52840,log)
|
||||
(cd embassy-nrf; cargo build --target thumbv7em-none-eabi --features 52840,defmt)
|
||||
# build for embedded
|
||||
(cd embassy-net; cargo build --target thumbv7em-none-eabi --features log)
|
||||
(cd embassy-net; cargo build --target thumbv7em-none-eabi --features defmt)
|
||||
|
||||
# build examples
|
||||
(cd embassy-net-examples; cargo build)
|
||||
|
Loading…
Reference in New Issue
Block a user