Draft: PS/2 Mouse support #248
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
on: [push, pull_request] | |
name: Build (and Release) | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
name: Build (and Release) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Add targets | |
run: | | |
rustup target add thumbv6m-none-eabi | |
rustup target add thumbv7em-none-eabihf | |
- name: Install flip-link | |
run: cd / && cargo install --debug flip-link | |
- name: Build/Test neotron-bmc-protocol | |
run: cd neotron-bmc-protocol && cargo test | |
- name: Build/Test neotron-bmc-commands | |
run: cd neotron-bmc-commands && cargo test | |
- name: Build neotron-bmc-pico | |
run: cd neotron-bmc-pico && DEFMT_LOG=info cargo build --release --verbose --target=thumbv6m-none-eabi | |
- name: Build neotron-bmc-nucleo | |
run: cd neotron-bmc-nucleo && DEFMT_LOG=info cargo build --release --verbose --target=thumbv7em-none-eabihf | |
- name: Upload files to Release | |
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/pico-') | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
neotron-bmc-pico/target/thumbv6m-none-eabi/release/neotron-bmc-pico | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload files to Release | |
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/nucleo-') | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
neotron-bmc-nucleo/target/thumbv6m-none-eabi/release/neotron-bmc-nucleo | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |