Update github workflow to use nix

This commit is contained in:
xenia 2024-02-03 16:03:12 +01:00
parent 49e9dbff85
commit f4a7e18b28

View File

@ -4,7 +4,7 @@ on:
branches: branches:
- main - main
name: fox32rom Unstable name: fox32rom
jobs: jobs:
fox32rom-unstable-linux: fox32rom-unstable-linux:
@ -12,27 +12,21 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- name: Download latest fox32asm artifact
uses: dawidd6/action-download-artifact@v2
with: with:
repo: fox32-arch/fox32asm github_access_token: ${{ secrets.GITHUB_TOKEN }}
workflow: fox32asm-unstable-linux.yml
workflow_conclusion: success
- name: Build - name: Build
run: | run: nix build .#fox32rom
chmod +x fox32asm/fox32asm
fox32asm/fox32asm main.asm fox32.rom
- name: Upload fox32.rom - name: Upload fox32.rom
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: fox32.rom name: fox32.rom
path: fox32.rom path: result/bin/fox32.rom
- name: Upload fox32rom.def - name: Upload fox32rom.def
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: fox32rom.def name: fox32rom.def
path: fox32rom.def path: result/dev/fox32rom.def