-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
131 changed files
with
794 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,8 +135,8 @@ jobs: | |
args: --examples --target=${{ matrix.target }} | ||
|
||
# Verify the example output with run-pass tests | ||
testexamples: | ||
name: testexamples | ||
testexamplesqemu: | ||
name: testexamplesqemu | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
|
@@ -157,13 +157,6 @@ jobs: | |
override: true | ||
components: llvm-tools-preview | ||
|
||
# Use precompiled binutils | ||
- name: cargo install cargo-binutils | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-binutils | ||
version: latest | ||
|
||
- name: Cache Dependencies | ||
uses: Swatinem/rust-cache@v1 | ||
|
||
|
@@ -176,8 +169,49 @@ jobs: | |
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs macros/src/lib.rs | ||
|
||
- name: Run-pass tests | ||
run: | ||
cargo xtask --target ${{ matrix.target }} | ||
run: | | ||
cd examples-runner | ||
cargo xtask --target ${{ matrix.target }} --runner qemu | ||
testexamplesembeddedci: | ||
name: testexamplesembeddedci | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
target: | ||
- thumbv7m-none-eabi | ||
- thumbv6m-none-eabi | ||
toolchain: | ||
- stable | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Rust ${{ matrix.toolchain }} with target (${{ matrix.target }}) | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
target: ${{ matrix.target }} | ||
override: true | ||
components: llvm-tools-preview | ||
|
||
- name: Cache Dependencies | ||
uses: Swatinem/rust-cache@v1 | ||
|
||
- name: Install embedded-ci-client | ||
run: | | ||
cargo install --git https://github.com/korken89/embedded-ci.git embedded-ci-client | ||
- name: Fail on warnings | ||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs macros/src/lib.rs | ||
|
||
- name: Run-pass tests | ||
env: | ||
EMBEDDED_CI_TOKEN: ${{ secrets.EMBEDDED_CI_TOKEN }} | ||
EMBEDDED_CI_SERVER: ${{ secrets.EMBEDDED_CI_SERVER }} | ||
run: | | ||
cd examples-runner | ||
cargo xtask --target ${{ matrix.target }} --runner embedded-ci | ||
# Check the correctness of macros/ crate | ||
checkmacros: | ||
|
@@ -373,7 +407,8 @@ jobs: | |
- check | ||
- clippy | ||
- checkexamples | ||
- testexamples | ||
- testexamplesqemu | ||
- testexamplesembeddedci | ||
- checkmacros | ||
- testmacros | ||
- tests | ||
|
@@ -555,7 +590,8 @@ jobs: | |
- check | ||
- clippy | ||
- checkexamples | ||
- testexamples | ||
- testexamplesqemu | ||
- testexamplesembeddedci | ||
- checkmacros | ||
- testmacros | ||
- tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.