Upgrade to the latest version of deemon #110
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
name: i386-kos (DEBUG) | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: Restore binutils | |
id: cache-binutils-i386-restore | |
uses: actions/cache/restore@v3 | |
with: | |
path: | | |
binutils | |
kos/include/i386-kos/c++ | |
key: ${{ runner.os }}-binutils-i386 | |
- name: Install gcc build dependencies | |
if: steps.cache-binutils-i386-restore.outputs.cache-hit != 'true' | |
run: sudo apt-get install libmpc-dev | |
- name: Build toolchain | |
run: EXTRA_DEEMON_CONFIGURE_ARGS=--without-libffi bash kos/misc/make_toolchain.sh i386-kos | |
- name: Save binutils | |
if: steps.cache-binutils-i386-restore.outputs.cache-hit != 'true' | |
id: cache-binutils-i386-save | |
uses: actions/cache/save@v3 | |
with: | |
path: | | |
binutils | |
kos/include/i386-kos/c++ | |
key: ${{ runner.os }}-binutils-i386 | |
- name: Touch magicgenerator .latest (skip system header re-build) | |
run: bash -c "> kos/misc/magicgenerator/.generate_headers.dee.latest && > kos/misc/magicgenerator/.generate_syscalls.dee.arm.latest && > kos/misc/magicgenerator/.generate_syscalls.dee.i386.latest && > kos/misc/magicgenerator/.generate_syscalls.dee.x86_64.latest && > kos/misc/magicgenerator/.generate_syscalls.dee.latest" | |
- name: build # FIXME: Running magic once should be enough | |
run: ./binutils/deemon/deemon magic.dee --build-only --target=i386 --config=nOD && ./binutils/deemon/deemon magic.dee --build-only --target=i386 --config=nOD | |
- name: Compress disk image | |
run: bash -c "cd bin/i386-kos-nOD && tar zcvf ../../i386-kos-nOD-disk.tar.gz disk.img" | |
- name: Save disk image as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ runner.os }}-${{ github.sha }}-disk | |
if-no-files-found: ignore | |
path: | | |
i386-kos-nOD-disk.tar.gz |