From f4a7e18b2803ff65eb4182a248028bef6cda7546 Mon Sep 17 00:00:00 2001 From: xenia Date: Sat, 3 Feb 2024 16:03:12 +0100 Subject: [PATCH] Update github workflow to use nix --- .github/workflows/fox32rom-unstable.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/fox32rom-unstable.yml b/.github/workflows/fox32rom-unstable.yml index ae7dde2..dccd68f 100644 --- a/.github/workflows/fox32rom-unstable.yml +++ b/.github/workflows/fox32rom-unstable.yml @@ -4,7 +4,7 @@ on: branches: - main -name: fox32rom Unstable +name: fox32rom jobs: fox32rom-unstable-linux: @@ -12,27 +12,21 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - - name: Download latest fox32asm artifact - uses: dawidd6/action-download-artifact@v2 + - uses: cachix/install-nix-action@v22 with: - repo: fox32-arch/fox32asm - workflow: fox32asm-unstable-linux.yml - workflow_conclusion: success + github_access_token: ${{ secrets.GITHUB_TOKEN }} - name: Build - run: | - chmod +x fox32asm/fox32asm - fox32asm/fox32asm main.asm fox32.rom + run: nix build .#fox32rom - name: Upload fox32.rom uses: actions/upload-artifact@v2 with: name: fox32.rom - path: fox32.rom + path: result/bin/fox32.rom - name: Upload fox32rom.def uses: actions/upload-artifact@v2 with: name: fox32rom.def - path: fox32rom.def + path: result/dev/fox32rom.def