Skip to content

Commit

Permalink
fix:CI actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lpchaim committed Oct 4, 2024
1 parent 96eb61c commit 10d71f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/actions/build-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ inputs:
system:
description: 'The system to setup'
default: 'x86_64-linux'
forceInstallQemu:
default: false
cachixAuthToken:
description: 'The token to use to authenticate with cachix'
runs:
using: "composite"
steps:
- name: Install qemu
if: ${{ inputs.system != 'x86_64-linux' }}
if: ${{ inputs.forceInstallQemu || inputs.system != 'x86_64-linux' }}
shell: bash
run: |
sudo apt-get install -y qemu-user-static
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/update-flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
cachixAuthToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
system: aarch64-linux
- name: Update flake inputs
continue-on-error: true
run: |
nix flake update \
| tee --output-error /dev/tty \
Expand Down Expand Up @@ -51,6 +52,7 @@ jobs:
- uses: ./.github/actions/build-setup
with:
cachixAuthToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
forceInstallQemu: true
system: ${{ matrix.system }}
- name: Restore cached flake.lock
uses: actions/cache/[email protected]
Expand Down

0 comments on commit 10d71f1

Please sign in to comment.