| 
39 | 39 |           choco install qemu nasm make  | 
40 | 40 |           echo "C:\Program Files\qemu" >> $GITHUB_PATH  | 
41 | 41 |           echo "C:\Program Files\NASM" >> $GITHUB_PATH  | 
42 |  | -      - name: Install cargo-binutils  | 
43 |  | -        run: cargo install cargo-binutils  | 
44 | 42 |       - name: Checkout rusty-hermit  | 
45 | 43 |         uses: actions/checkout@v3  | 
46 | 44 |         with:  | 
 | 
57 | 55 |         run: rustup show  | 
58 | 56 |       - name: Build minimal kernel  | 
59 | 57 |         working-directory: libhermit-rs  | 
60 |  | -        run: cargo build --no-default-features -Z build-std=core,alloc  | 
 | 58 | +        run: cargo xtask build --arch x86_64 --no-default-features  | 
61 | 59 |       - name: Build dev profile  | 
62 |  | -        run: cargo build  | 
 | 60 | +        run: cargo build -Zbuild-std=core,alloc,std,panic_abort -Zbuild-std-features=compiler-builtins-mem --target x86_64-unknown-hermit  | 
63 | 61 |       - name: Unittests on host (ubuntu)  | 
64 | 62 |         if: ${{ matrix.os == 'ubuntu-latest' }}  | 
65 | 63 |         working-directory: libhermit-rs  | 
 | 
81 | 79 |         run: cargo test --tests --no-fail-fast -- --bootloader_path=../loader/target/x86_64-unknown-hermit-loader/release/rusty-loader  | 
82 | 80 |         continue-on-error: true  | 
83 | 81 |       - name: Build release profile  | 
84 |  | -        run: cargo build --release  | 
 | 82 | +        run: cargo build -Zbuild-std=core,alloc,std,panic_abort -Zbuild-std-features=compiler-builtins-mem --target x86_64-unknown-hermit --release  | 
85 | 83 |       - name: Test release profile  | 
86 | 84 |         run: |  | 
87 | 85 |           qemu-system-x86_64 -display none -smp 1 -m 128M -serial stdio \  | 
 | 
91 | 89 |             -initrd target/x86_64-unknown-hermit/release/rusty_demo  | 
92 | 90 |       - name: Build minimal profile  | 
93 | 91 |         if: ${{ matrix.os == 'ubuntu-latest' }}  | 
94 |  | -        run: cargo build --no-default-features --release -p hello_world  | 
 | 92 | +        run: cargo build -Zbuild-std=core,alloc,std,panic_abort -Zbuild-std-features=compiler-builtins-mem --target x86_64-unknown-hermit --no-default-features --release --package hello_world  | 
95 | 93 |       - name: Test minimal profile  | 
96 | 94 |         id: minimal  | 
97 | 95 |         if: ${{ matrix.os == 'ubuntu-latest' }}  | 
 | 
0 commit comments