Skip to content

Commit

Permalink
ci: enable tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
moodyhunter committed Aug 3, 2024
1 parent 5decac6 commit 2b5c2ae
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build-mos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
"name": "x86_64 limine",
"arch": "x86_64",
"target": "mos_limine",
"artifact": "mos_limine.elf",
"compile_only": "ON",
"compile_only": "OFF",
}
- {
"name": "RISC-V limine",
Expand All @@ -31,9 +30,6 @@ jobs:
}
build_type: [Debug, Release]

env:
MOS_TEST_SMP_COUNT: ${{matrix.config.smp}}

steps:
- name: Install packages
run: |
Expand Down Expand Up @@ -71,14 +67,20 @@ jobs:
cd build
ninja ${{matrix.config.target}} mos_initrd
- name: Test
if: ${{matrix.config.compile_only}} == "OFF"
run: |
cd build
../scripts/run-tests.py --arch ${{matrix.config.arch}} --kernelspace-tests
- name: Upload Bootable Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4.3.5
with:
name: MOS-${{matrix.config.target}}-${{matrix.build_type}}-${{matrix.config.arch}}
path: build/boot.dir/${{matrix.config.artifact}}
path: build/uefi-files

- name: Upload initrd
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4.3.5
with:
name: MOS-${{matrix.config.target}}-${{matrix.build_type}}-${{matrix.config.arch}}-initrd
path: build/initrd.cpio

0 comments on commit 2b5c2ae

Please sign in to comment.