Compare commits
2 Commits
bf4c685344
...
2fc840c152
Author | SHA1 | Date | |
---|---|---|---|
2fc840c152 | |||
4e1001c910 |
17
.github/workflows/build.yaml
vendored
Normal file
17
.github/workflows/build.yaml
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
name: build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ghcr.io/catthehacker/ubuntu:runner-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: cachix/install-nix-action@v27
|
||||||
|
- name: run flacke check
|
||||||
|
run: nix flake check
|
||||||
|
- name: build packages
|
||||||
|
run: ./scripts/build-all.sh
|
@ -19,8 +19,8 @@ let
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "PathOfBuildingCommunity";
|
owner = "PathOfBuildingCommunity";
|
||||||
repo = "PathOfBuilding";
|
repo = "PathOfBuilding";
|
||||||
rev = "5667a34b9603287e4e15237346bc3c0f61590860";
|
rev = "f6d095a527017a1b2fd7b523d349f321bfdc2f58";
|
||||||
hash = "sha256-F40Yjag4iG4pvnFsSTYjyUIMuNM+YYIoCpoEKx1uELw=";
|
hash = "sha256-/pnirZSZBGpbVTdm/jmBzzdMdAiCcYlOiff7HQ2nINM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ unzip ];
|
nativeBuildInputs = [ unzip ];
|
||||||
|
11
scripts/build-all.sh
Executable file
11
scripts/build-all.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
|
packages=$(nix flake show --json --all-systems| \
|
||||||
|
jq -r '.packages["x86_64-linux"] | keys[] | ".#packages.x86_64-linux.\(.)"')
|
||||||
|
|
||||||
|
while IFS= read -r line; do
|
||||||
|
echo "building package $line"
|
||||||
|
nix build -L "$line"
|
||||||
|
echo "done building package $line"
|
||||||
|
done <<< "$packages"
|
Loading…
Reference in New Issue
Block a user