Debug CI #29
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: CI | |
on: | |
push: | |
permissions: | |
contents: read | |
env: | |
RUST_BACKTRACE: full | |
jobs: | |
test: | |
strategy: | |
matrix: | |
rust: [stable] | |
name: Test ${{ matrix.rust }} | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Load kernel module ublk_drv | |
run: | | |
sudo apt-get update | |
sudo apt-get install --no-install-recommends --yes "linux-modules-extra-$(uname -r)" | |
sudo modprobe ublk_drv | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Rust stable | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Build | |
run: cargo build --workspace --all-targets | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
with: | |
limit-access-to-actor: true |