ci: update

This commit is contained in:
Robert Jördens 2021-01-20 15:02:35 +01:00
parent d014ed0fe0
commit 775fb79ed9
1 changed files with 18 additions and 22 deletions

View File

@ -29,6 +29,11 @@ jobs:
- uses: actions-rs/clippy-check@v1 - uses: actions-rs/clippy-check@v1
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --verbose
compile: compile:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -37,6 +42,12 @@ jobs:
toolchain: toolchain:
- stable - stable
- beta - beta
bin:
- dual-iir
- lockin
features:
- ''
- pounder_v1_1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install Rust ${{ matrix.toolchain }} - name: Install Rust ${{ matrix.toolchain }}
@ -46,20 +57,11 @@ jobs:
target: thumbv7em-none-eabihf target: thumbv7em-none-eabihf
override: true override: true
components: llvm-tools-preview components: llvm-tools-preview
- name: cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --verbose
- name: cargo build
uses: actions-rs/cargo@v1
with:
command: build
- name: cargo build release - name: cargo build release
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: build command: build
args: --release args: --release --features "${{ matrix.features }}" --bin ${{ matrix.bin }}
- name: cargo-binutils - name: cargo-binutils
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
@ -69,25 +71,19 @@ jobs:
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: size command: size
args: --release args: --release --features "${{ matrix.features }}" --bin ${{ matrix.bin }}
- name: cargo objcopy - name: cargo objcopy
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: objcopy command: objcopy
args: --release --verbose -- -O binary stabilizer-release.bin args: --release --features "${{ matrix.features }}" --bin ${{ matrix.bin }} --verbose -- -O binary ${{ matrix.bin }}-release.bin
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
if: ${{ matrix.toolchain == 'stable' }} if: ${{ matrix.toolchain == 'stable' && matrix.features == '' }}
with: with:
name: stabilizer_${{ github.sha }} name: stabilizer_${{ matrix.bin }}
path: | path: |
target/*/release/stabilizer target/*/release/${{ matrix.bin }}
stabilizer-release.bin ${{ matrix.bin }}-release.bin
- name: Build (Pounder v1.1)
uses: actions-rs/cargo@v1
with:
command: build
args: --features pounder_v1_1
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest