-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a669d8
commit 0a86223
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build & Test | ||
on: [push, pull_request] | ||
jobs: | ||
build-test-nix: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
stuff: | ||
- flake: IA-32 | ||
step_config: make alldefconfig MAKE_ARCH=x86 && make tests MAKE_ARCH=x86 | ||
step_build: make MAKE_ARCH=x86 CROSS_COMPILE=i686-elf- | ||
step_bootimg: make bootimg-x86-32 MAKE_ARCH=x86 | ||
nm: i686-elf-nm | ||
runcmd: qemu-system-x86_64 -cdrom vix.iso -nographic | ||
ignore_test_failure: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Install Nix | ||
uses: nixbuild/nix-quick-install-action@v28 | ||
- name: Build development environment | ||
shell: echo $(env) {0} | ||
run: echo a | ||
- name: Build development environment | ||
run: echo yeah ${{ matrix.stuff.flake }} | ||
- name: run kconfig | ||
shell: nix develop .#IA-32 --command bash -e {0} | ||
run: | | ||
echo qwhar?? ${{ matrix.stuff.flake }} | ||
${{ matrix.stuff.step_config }} | ||
- name: Compile | ||
shell: nix develop .#${{ matrix.stuff.flake }} --command bash -e {0} | ||
run: | | ||
${{ matrix.stuff.step_build }} |