misc: general updates and improvements #20
Workflow file for this run
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: Code / Tests and Checks | |
on: # yamllint disable-line rule:truthy | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- .github/workflows/code_tests_and_checks.yml | |
- code/** | |
branches: ['**'] | |
push: | |
paths: [code/**] | |
branches: [master] | |
defaults: | |
run: | |
working-directory: code | |
jobs: | |
kernel-linting: | |
name: Lint the kernel code | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
run: ../misc/scripts/install_rust.sh | |
- name: Run all checks | |
run: >- | |
cargo run -- -vv check | |
unit-and-integration-tests: | |
name: Run unit- and integration-tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install QEMU | |
run: | | |
sudo apt-get -y install --no-install-recommends qemu-system-riscv64 | |
qemu-system-riscv64 --version | |
- name: Install Rust | |
run: ../misc/scripts/install_rust.sh | |
- name: Run all unit-test | |
run: >- | |
cargo run -- -vv u-test | |
- name: Run all integration-tests | |
run: >- | |
cargo run -- -vv i-test |