Bump log from 0.4.25 to 0.4.26 #13
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
merge_group: | |
env: | |
GH_TOKEN: ${{ github.token }} | |
RUSTFLAGS: -Dwarnings | |
RUSTDOCFLAGS: -Dwarnings | |
jobs: | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rust-src | |
- uses: mkroening/rust-toolchain-toml@main | |
- run: | | |
rustup component add clippy llvm-tools | |
- name: Clippy | |
run: | | |
cargo clippy --target x86_64-unknown-none | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: mkroening/rust-toolchain-toml@main | |
- run: rustup component add rustfmt | |
- name: Format | |
run: cargo fmt -- --check | |
run: | |
name: Run | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install QEMU | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y qemu-kvm | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: dtolnay/rust-toolchain@stable | |
- run: echo "$CARGO_HOME/bin" >> "$GITHUB_PATH" | |
- uses: mkroening/rust-toolchain-toml@main | |
- name: Download loader | |
run: gh release download --repo hermit-os/loader --pattern hermit-loader-x86_64 | |
- name: Build dev profile | |
run: cargo build | |
- name: Test debug profile (Qemu) | |
run: | | |
set +e | |
cargo run | |
if [ $? -eq 3 ]; then | |
echo "Hermit runs succesfully within Qemu" | |
exit 0 | |
else | |
echo "Hermit isn't able to run within Qemu" | |
exit 1 | |
fi | |
- name: Build release profile | |
run: cargo build --release | |
- name: Test release profile (Qemu) | |
run: | | |
set +e | |
cargo run --release | |
if [ $? -eq 3 ]; then | |
echo "Hermit runs succesfully within Qemu" | |
exit 0 | |
else | |
echo "Hermit isn't able to run within Qemu" | |
exit 1 | |
fi |