Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 33 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,14 @@ jobs:
with:
profile: minimal
toolchain: nightly
target: thumbv7em-none-eabihf
override: true
components: rustfmt
components: rustfmt, clippy
- name: cargo fmt --check
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
target: thumbv7em-none-eabihf
override: true
components: clippy
- uses: actions-rs/clippy-check@v1
continue-on-error: true
with:
Expand All @@ -57,6 +46,7 @@ jobs:
toolchain: ${{ matrix.toolchain }}
target: thumbv7em-none-eabihf
override: true
components: llvm-tools-preview
- name: cargo check
uses: actions-rs/cargo@v1
with:
Expand All @@ -71,11 +61,27 @@ jobs:
with:
command: build
args: --release
- name: cargo build release+semihosting
- name: cargo-binutils
uses: actions-rs/cargo@v1
with:
command: build
args: --release --features semihosting
command: install
args: cargo-binutils
- name: cargo size
uses: actions-rs/cargo@v1
with:
command: size
args: --release
- name: cargo objcopy
uses: actions-rs/cargo@v1
with:
command: objcopy
args: --release --verbose -- -O binary stabilizer-release.bin
- uses: actions/upload-artifact@v2
with:
name: stabilizer_${{ github.sha }}_rust-${{ matrix.toolchain }}
path: |
target/*/*/stabilizer
stabilizer-release.bin

test:
runs-on: ubuntu-latest
Expand All @@ -95,6 +101,15 @@ jobs:
with:
command: test
args: --package dsp --target=x86_64-unknown-linux-gnu
- name: cargo bench
uses: actions-rs/cargo@v1
with:
command: bench
args: --package dsp --target=x86_64-unknown-linux-gnu
- uses: actions/upload-artifact@v1
with:
name: stabilizer_${{ github.sha }}_criterion
path: dsp/target/criterion

# Tell bors about it
# https://github.com/rtic-rs/cortex-m-rtic/blob/8a4f9c6b8ae91bebeea0791680f89375a78bffc6/.github/workflows/build.yml#L566-L603
Expand All @@ -103,8 +118,8 @@ jobs:
if: github.event_name == 'push' && success()
needs:
- style
- clippy
- compile
- test
runs-on: ubuntu-latest
steps:
- name: Mark the job as a success
Expand All @@ -114,8 +129,8 @@ jobs:
if: github.event_name == 'push' && !success()
needs:
- style
- clippy
- compile
- test
runs-on: ubuntu-latest
steps:
- name: Mark the job as a failure
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
/target
/dsp/target

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this change intentional?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Not needed with workspaces iirc.

.gdb_history
Loading