Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
yunfachi committed Dec 29, 2023
1 parent d2a62f7 commit 456d974
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/nixos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ concurrency: nixos

on:
workflow_dispatch:
inputs:
host:
required: true
type: choice
options:
- mitama
- dekomori
pull_request:
push:
branches:
Expand Down Expand Up @@ -59,24 +66,8 @@ jobs:

- name: "Build NixOS config ❄️"
run: |
nix build "${{ matrix.flakeConfig }}" --accept-flake-config
nix build .#nixosConfigurations.${{ inputs.host }}.config.system.build.toplevel --accept-flake-config
- name: "Check NixOS flake ❄️"
run: |
nix flake check --accept-flake-config --no-build
build-mitama:
needs: build-system
runs-on: ubuntu-latest
strategy:
matrix:
flakeConfig:
- .#nixosConfigurations.mitama.config.system.build.toplevel

build-dekomori:
needs: build-system
runs-on: ubuntu-latest
strategy:
matrix:
flakeConfig:
- .#nixosConfigurations.dekomori.config.system.build.toplevel
nix flake check --accept-flake-config --no-build

0 comments on commit 456d974

Please sign in to comment.