File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : cargo
4+ directory : " /"
5+ schedule :
6+ interval : daily
7+ open-pull-requests-limit : 10
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : " QEMU"
2+ description : " Install QEMU for particular platform"
3+ runs :
4+ using : " composite"
5+ steps :
6+ - name : Install QEMU (Linux)
7+ if : runner.os == 'Linux'
8+ run : |
9+ sudo apt-get update
10+ sudo apt-get install --fix-missing qemu-system-aarch64
11+
12+ - name : Install QEMU (macOS)
13+ if : runner.os == 'macOS'
14+ run : brew install qemu
15+ env :
16+ HOMEBREW_NO_AUTO_UPDATE : 1
17+ HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK : 1
18+ HOMEBREW_NO_INSTALL_CLEANUP : 1
19+
20+ - name : Install Scoop (Windows)
21+ if : runner.os == 'Windows'
22+ shell : pwsh
23+ run : |
24+ Invoke-WebRequest -UseBasicParsing get.scoop.sh -outfile 'install.ps1'
25+ .\install.ps1 -RunAsAdmin
26+ echo "$HOME\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
27+
28+ - name : Add custom Scoop bucket for QEMU (Windows)
29+ if : runner.os == 'Windows'
30+ shell : pwsh
31+ run : |
32+ scoop bucket add scoop-for-ci https://github.com/metta-systems/scoop-for-ci
33+
34+ - name : Install QEMU (Windows)
35+ if : runner.os == 'Windows'
36+ shell : pwsh
37+ run : scoop install qemu-1010
38+
39+ - name : " Print QEMU Version"
40+ run : qemu-system-aarch64 --version
Original file line number Diff line number Diff line change 1+ name : " Prepare"
2+ description : " Prepare Rust build environment and dependencies"
3+ runs :
4+ using : " composite"
5+ steps :
6+ - name : " Install nightly Rust"
7+ uses : actions-rust-lang/setup-rust-toolchain@v1
8+ with :
9+ rustflags : " "
10+ - name : " Install Just"
11+ uses : " taiki-e/install-action@just"
12+ - name : " Print Rust Version"
13+ run : |
14+ rustc -Vv
15+ cargo -Vv
16+ - name : " Install build tools"
17+ run : cargo install cargo-binutils
18+ - name : " Validate rust-lld"
19+ if : runner.os == 'macOS'
20+ run : |
21+ which rust-lld || echo "Not found"
22+ otool -L ~/.cargo/bin/rust-lld
23+ - name : " Print Tools Versions"
24+ run : |
25+ just --version
26+ cargo objcopy --version
Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches :
6+ - " *"
7+ pull_request :
8+
9+ jobs :
10+ check_formatting :
11+ name : " Check Formatting"
12+ runs-on : ubuntu-latest
13+ timeout-minutes : 2
14+ steps :
15+ - name : " Checkout Repository"
16+ uses : actions/checkout@v6
17+ - uses : " ./.github/shared/setup"
18+ - run : just fmt-check
19+
20+ clippy :
21+ name : " Clippy"
22+ needs : check_formatting
23+ runs-on : ubuntu-latest
24+ timeout-minutes : 10
25+ steps :
26+ - name : " Checkout Repository"
27+ uses : actions/checkout@v6
28+ - uses : " ./.github/shared/setup"
29+ - run : just clippy
30+
31+ test :
32+ name : Test
33+ needs : check_formatting
34+ strategy :
35+ fail-fast : false
36+ matrix :
37+ platform : [ubuntu-latest, macos-latest, windows-latest]
38+ runs-on : ${{ matrix.platform }}
39+ timeout-minutes : 30
40+ steps :
41+ - name : " Checkout Repository"
42+ uses : actions/checkout@v6
43+ - uses : " ./.github/shared/setup"
44+ - uses : " ./.github/shared/qemu"
45+ - name : " Build kernel"
46+ run : just build
47+ - name : " Run tests"
48+ run : just test
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ clean:
308308# Check formatting
309309[group (" maintenance" )]
310310fmt-check :
311- cargo fmt -- --check
311+ cargo + nightly fmt -- --check
312312
313313# Run lint tasks
314314[group (" maintenance" )]
You can’t perform that action at this time.
0 commit comments