Created
January 8, 2021 19:12
-
-
Save jordens/23e30f13ad4bd464e61af9191b91e6f5 to your computer and use it in GitHub Desktop.
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
name: Stabilizer | |
# all but repository_dispatch won't work because of the missing github.event.client_payload | |
on: | |
push: | |
branches: [stabilizer] | |
pull_request: | |
branches: [stabilizer] | |
repository_dispatch: | |
types: [stabilizer] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
repository: quartiq/stabilizer | |
ref: ${{ github.event.client_payload.sha }} | |
- name: Install Rust ${{ matrix.toolchain }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
target: thumbv7em-none-eabihf | |
override: true | |
components: llvm-tools-preview | |
- name: cargo build release | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release | |
- name: cargo-binutils | |
uses: actions-rs/cargo@v1 | |
with: | |
command: install | |
args: cargo-binutils | |
- 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: bin | |
path: | | |
target/thumbv7em-none-eabihf/release/stabilizer | |
stabilizer-release.bin | |
test: | |
runs-on: [self-hosted, stabilizer] | |
needs: build | |
steps: | |
- run: echo ${{ github.event.client_payload.ref }} | |
- uses: actions/checkout@v2 | |
with: | |
repository: quartiq/stabilizer | |
ref: ${{ github.event.client_payload.sha }} | |
- uses: actions/download-artifact@v2 | |
with: | |
name: bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment