chore: merge matrix CI workflow
Some checks failed
/ build-host (map[host:beefcake]) (push) Failing after 18s
/ build-host (map[host:dragon]) (push) Failing after 16s
/ build-host (map[host:flipflop]) (push) Failing after 16s
/ build-host (map[host:foxtrot]) (push) Failing after 17s
/ build-host (map[host:router]) (push) Failing after 16s
/ build-devshell (push) Failing after 17s
/ flake-check (push) Failing after 17s
Some checks failed
/ build-host (map[host:beefcake]) (push) Failing after 18s
/ build-host (map[host:dragon]) (push) Failing after 16s
/ build-host (map[host:flipflop]) (push) Failing after 16s
/ build-host (map[host:foxtrot]) (push) Failing after 17s
/ build-host (map[host:router]) (push) Failing after 16s
/ build-devshell (push) Failing after 17s
/ flake-check (push) Failing after 17s
This commit is contained in:
commit
6a05eaad65
5 changed files with 37 additions and 71 deletions
|
@ -1,41 +0,0 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
check:
|
||||
runs-on: nixos-host
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# cache not needed since we now run on the host directly
|
||||
# - name: Load cached nix store
|
||||
# id: cache-nix-store
|
||||
# uses: actions/cache/restore@v4
|
||||
# with:
|
||||
# path: /nix/store
|
||||
# key: ${{ runner.os }}-nix-store
|
||||
|
||||
- name: Build server
|
||||
run: |
|
||||
nix shell nixpkgs#nixos-rebuild -c nixos-rebuild build --flake .#beefcake --accept-flake-config
|
||||
|
||||
- name: Build router
|
||||
run: |
|
||||
nix shell nixpkgs#nixos-rebuild -c nixos-rebuild build --flake .#router --accept-flake-config
|
||||
|
||||
- name: Build desktop
|
||||
run: |
|
||||
nix shell nixpkgs#nixos-rebuild -c nixos-rebuild build --flake .#dragon --accept-flake-config
|
||||
|
||||
- name: Build laptop
|
||||
run: |
|
||||
nix shell nixpkgs#nixos-rebuild -c nixos-rebuild build --flake .#foxtrot --accept-flake-config
|
||||
|
||||
- name: Build default devShell
|
||||
run: |
|
||||
nix develop . --build
|
||||
|
||||
# - name: Save nix store
|
||||
# uses: actions/cache/save@v4
|
||||
# with:
|
||||
# path: /nix/store
|
||||
# key: ${{ steps.cache-nix-store.outputs.cache-primary-key }}
|
|
@ -1,25 +0,0 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
check:
|
||||
runs-on: nixos-host
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# cache not needed since we now run on the host directly
|
||||
# - name: Load cached nix store
|
||||
# id: cache-nix-store
|
||||
# uses: actions/cache/restore@v4
|
||||
# with:
|
||||
# path: /nix/store
|
||||
# key: ${{ runner.os }}-nix-store
|
||||
|
||||
- name: Check nix flake
|
||||
run: |
|
||||
nix flake check
|
||||
|
||||
# - name: Save nix store
|
||||
# uses: actions/cache/save@v4
|
||||
# with:
|
||||
# path: /nix/store
|
||||
# key: ${{ steps.cache-nix-store.outputs.cache-primary-key }}
|
33
.forgejo/workflows/pre-merge.yaml
Normal file
33
.forgejo/workflows/pre-merge.yaml
Normal file
|
@ -0,0 +1,33 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
build-host:
|
||||
runs-on: nix-latest
|
||||
strategy:
|
||||
matrix:
|
||||
info:
|
||||
- host: beefcake
|
||||
- host: router
|
||||
- host: dragon
|
||||
- host: foxtrot
|
||||
- host: flipflop
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build host
|
||||
run: |
|
||||
nix shell nixpkgs#nixos-rebuild -c nixos-rebuild build --flake .#${{ matrix.info.host }} --accept-flake-config
|
||||
|
||||
build-devshell:
|
||||
runs-on: nix-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build default devShell
|
||||
run: |
|
||||
nix develop . --build --accept-flake-config
|
||||
|
||||
flake-check:
|
||||
runs-on: nix-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Check nix flake
|
||||
run: |
|
||||
nix flake check --accept-flake-config
|
|
@ -1065,11 +1065,11 @@
|
|||
};
|
||||
labels = [
|
||||
# type ":host" does not depend on docker/podman/lxc
|
||||
"podman"
|
||||
"nix-2.24.12:docker://git.lyte.dev/lytedev/nix:forgejo-actions-container-2.24.12"
|
||||
"nix-latest:docker://git.lyte.dev/lytedev/nix:forgejo-actions-container-latest"
|
||||
# "beefcake:host"
|
||||
# "nixos-host:host"
|
||||
# "podman"
|
||||
"nix-2.24.12:docker://git.lyte.dev/lytedev/nix:forgejo-actions-container-2.24.12"
|
||||
"nix-latest:docker://git.lyte.dev/lytedev/nix:forgejo-actions-container-latest"
|
||||
];
|
||||
tokenFile = config.sops.secrets."forgejo-runner.env".path;
|
||||
hostPackages = with pkgs; [
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
Nix for <code>lytedev</code>
|
||||
</h1>
|
||||
|
||||
[](https://git.lyte.dev/lytedev/nix/actions?workflow=nix-flake-check.yaml)
|
||||
[](https://git.lyte.dev/lytedev/nix/actions?workflow=nix-build.yaml)
|
||||
[](https://git.lyte.dev/lytedev/nix/actions?workflow=pre-merge.yaml)
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue