messing with env
Some checks failed
Build / nix-build (fj-shadowfax-01, native-x86_64, x86_64-linux) (push) Failing after 11s
Build / nix-build (fj-hetzner-aarch64-01, native-aarch64, aarch64-linux) (push) Failing after 13s

This commit is contained in:
Joseph Hanson 2024-07-25 11:29:09 -05:00
parent 5398a49a96
commit ff7e3923f8
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -21,6 +21,8 @@ jobs:
runs-on: ${{ matrix.os }}
env:
PATH: ${{ format('{0}:{1}', '/run/current-system/sw/bin', env.PATH) }}
outputs:
matrix: ${{ steps.build.outputs.drvout }}
steps:
- name: Checkout repository
uses: https://github.com/actions/checkout@v4
@ -41,19 +43,18 @@ jobs:
shell: bash
run: |
set -o pipefail
DRVOUT=$(nix build ".#deploy-json.${{ matrix.system }}" --print-out-paths)
echo "::set-output name=build_output::$DRVOUT"
echo "drvout=nix build .#deploy-json.${{ matrix.system }} --print-out-paths" >> "${GITHUB_ENV}"
- name: Push cache for ${{ matrix.name }} to cachix
id: "push-to-cachix"
if: success()
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
run: |
echo ${{steps.build_push.outputs.build_output}} | cachix push hsndev
echo ${{ env.drvout }} | cachix push hsndev
- name: Deploy ${{ matrix.system }} runners
id: "deploy"
if: success()
env:
CACHIX_ACTIVATE_TOKEN: ${{ secrets.CACHIX_ACTIVATE_TOKEN }}
run: |
cachix deploy activate ${{ steps.build_push.outputs.build_output }}
cachix deploy activate ${{ env.drvout }}