fix: Fixed a problem where the device would freeze when USB suspendin… #137
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: lib | |
on: | |
push: | |
branches: ["master"] | |
paths: | |
- '.github/workflows/lib.yml' | |
- '.github/workflows/setup-rust/action.yaml' | |
- '**.toml' | |
- '**.rs' | |
- '**.lock' | |
pull_request: | |
paths: | |
- '.github/workflows/lib.yml' | |
- '.github/workflows/setup-rust/action.yaml' | |
- '**.toml' | |
- '**.rs' | |
- '**.lock' | |
env: | |
CARGO_TERM_COLOR: always | |
CLICOLOR_FORCE: 1 | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup rust | |
uses: ./.github/workflows/setup-rust | |
with: | |
components: "clippy,rust-src" | |
target: "thumbv6m-none-eabi,thumbv7em-none-eabihf" | |
- uses: r7kamura/rust-problem-matchers@v1 | |
- name: Run rust check | |
run: cargo rktk internal check all | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup rust | |
uses: ./.github/workflows/setup-rust | |
with: | |
components: "rust-src" | |
target: "" | |
- uses: r7kamura/rust-problem-matchers@v1 | |
- name: Run rust test | |
run: cargo rktk internal test all |