Skip to content

Commit

Permalink
ci: add test ci for nimbos testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
Azure-stars committed Aug 2, 2024
1 parent 7471524 commit e4aabf0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,22 @@ jobs:
- run: ./scripts/get_deps.sh
- name: Build for ${{ matrix.arch }}
run: make ARCH=${{ matrix.arch }}

test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust-toolchain: [nightly]
arch: [x86_64]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: ${{ matrix.rust-toolchain }}
components: rust-src, llvm-tools
- uses: Swatinem/rust-cache@v2
- run: cargo install cargo-binutils
- run: ./scripts/get_deps.sh
- name: Run tests
run: make test ARCH=${{ matrix.arch }}
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const KERNEL_STACK_SIZE: usize = 0x40000; // 256 KiB
#[no_mangle]
fn main() {
let testcases: Vec<&'static str> = option_env!("AX_TESTCASES_LIST")
.expect("Please specify the testcases list by making user_apps")
.unwrap_or_else(|| "Please specify the testcases list by making user_apps")
.split(',')
.filter(|&x| !x.is_empty())
.collect();
Expand Down

0 comments on commit e4aabf0

Please sign in to comment.