From 34fbf5b6030aafd3c9629b70780890a2f22c98c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Tue, 17 Sep 2024 06:46:57 +0200 Subject: [PATCH] upload built test binary to github artifacts --- .github/workflows/release.yml | 13 ++++++------- .github/workflows/test.yml | 9 ++++++--- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2111a4b..d0f44b1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,20 +36,19 @@ jobs: - target: x86_64-windows os: ubuntu-latest - target: x86_64-darwin - os: macos-latest - # FIXME: build broken - # - target: aarch64-darwin - # os: macos-latest + os: macos-13 + - target: aarch64-darwin + os: macos-14 steps: - name: Checkout code uses: actions/checkout@v2 - name: Install Nix - uses: cachix/install-nix-action@v24 + uses: cachix/install-nix-action@v27 with: - nix_path: nixpkgs=channel:nixos-23.11 + nix_path: nixpkgs=channel:nixos-24.05 extra_nix_config: | experimental-features = nix-command flakes - - uses: cachix/cachix-action@v12 + - uses: cachix/cachix-action@v15 with: name: soywod authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f1c3ffc..9bafbd6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,8 +34,11 @@ jobs: name: soywod authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' extraPullNames: nix-community - - name: Run app + - name: Build release run: | - nix build -L .#${{ matrix.target }} nix run -L .#${{ matrix.target }} -- --version - ls -R result + - name: Upload release artifact + uses: actions/upload-artifact@v4 + with: + name: release + path: result