try a different base action to install nix #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build nixos hosts | |
on: | |
push: | |
branches: | |
- ci | |
permissions: | |
contents: write | |
jobs: | |
define-matrix: | |
runs-on: ubuntu-latest | |
outputs: | |
hosts: ${{ steps.hosts.outputs.hosts }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v14 | |
- uses: DeterminateSystems/flake-checker-action@v9 | |
- id: hosts | |
run: echo "hosts=$(nix eval .#colmena --apply builtins.attrNames --json)" >> "$GITHUB_OUTPUT" | |
test: | |
runs-on: ubuntu-latest | |
needs: define-matrix | |
steps: | |
- run: echo ${{ needs.define-matrix.outputs.hosts }} | |
- uses: cachix/install-nix-action@v30 | |
with: | |
extra_nix_config: | | |
extra-platforms = aarch64-linux i686-linux | |
- run: cat /etc/nix/nix.conf | |
build: | |
runs-on: ubuntu-latest | |
needs: define-matrix | |
strategy: | |
matrix: | |
host: ${{ fromJSON(needs.define-matrix.outputs.hosts) }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v30 | |
with: | |
extra_nix_config: | | |
extra-platforms = aarch64-linux i686-linux | |
- name: Build NixOS hosts | |
run: nix develop -c colmena build --on ${{ matrix.host }} | |