Skip to content

niri

niri #792

Workflow file for this run

name: CI
on: [push]
jobs:
try-develop:
runs-on: ubuntu-latest
steps:
- run: git config --global init.defaultBranch main
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v12
with:
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210207_fd6eaa1/install
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v8
with:
name: maxhbr
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix develop --command env
build-os:
runs-on: ubuntu-latest
strategy:
matrix:
config:
- { host: x1extremeG2 , action: "build --dry-run" }
- { host: x1extremeG2 , action: "build" }
- { host: workstation , action: "build --dry-run" }
- { host: workstation , action: "build" }
- { host: nas , action: "build --dry-run" }
- { host: nas , action: "build" }
fail-fast: false
steps:
- run: git config --global init.defaultBranch main
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v12
with:
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20201221_9fab14a/install
# extra_nix_config: |
# experimental-features = nix-command flakes
# - uses: cachix/cachix-action@v8
# with:
# name: maxhbr
# signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix --experimental-features 'nix-command flakes' develop --command nix ${{ matrix.config.action }} -L '.#nixosConfigurations.'${{ matrix.config.host }}'.config.system.build.toplevel'
# - run: nix --experimental-features 'nix-command flakes' develop --command nixos-rebuild ${{ matrix.config.action }} --flake '.#'${{ matrix.config.host }}
# build-iso:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# config:
# - { name: "minimal", config: ./iso/minimal.nix, mode: "" }
# - { name: "desktop", config: ./iso/desktop.nix, mode: "--dry-run" }
# fail-fast: false
# steps:
# - run: git config --global init.defaultBranch main
# - uses: actions/[email protected]
# - uses: cachix/install-nix-action@v12
# - uses: cachix/cachix-action@v8
# with:
# name: maxhbr
# signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
# - run: NIX_PATH="nixpkgs=$(pwd)/nixpkgs:nixos-config=$(pwd)/misc/empty_nixos_config.nix" ./iso/build-iso-image.sh "$(readlink -f ${{ matrix.config.config }} )" ${{ matrix.config.mode }}
# - uses: Thog/action-equals@v1
# id: isNonDry
# with:
# a: ${{ matrix.config.mode }}
# b: ""
# - uses: actions/upload-artifact@v2
# with:
# name: myconfig-iso-${{ matrix.config.name }}
# path: '__out/**/*.iso'
# if: steps.isNonDry.outputs.result