Compare commits
7 Commits
1f1ddb521b
...
5e40d0ca60
Author | SHA1 | Date | |
---|---|---|---|
5e40d0ca60 | |||
a6bd0191e0 | |||
3e5c57da9e | |||
ec7f258777 | |||
c8ad36040f | |||
f2300f0689 | |||
36c7242d30 |
32
.github/workflows/build-then-cache.yaml
vendored
32
.github/workflows/build-then-cache.yaml
vendored
@ -9,8 +9,12 @@ jobs:
|
||||
runs-on: ubuntu-24.04-arm
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
- uses: DeterminateSystems/flake-checker-action@main
|
||||
- uses: DeterminateSystems/nix-installer-action@v16
|
||||
with:
|
||||
extra-conf: |
|
||||
keep-going = true
|
||||
fallback = true
|
||||
- uses: DeterminateSystems/flake-checker-action@v9
|
||||
- uses: ryanccn/attic-action@v0
|
||||
with:
|
||||
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
|
||||
@ -19,27 +23,35 @@ jobs:
|
||||
# free useless disk space
|
||||
- run: 'bash ci/util_free_space_extreme.sh'
|
||||
# TODO: figure out how to use flake checks and use those to build it
|
||||
- run: 'nix develop .#ci --command nix-fast-build --eval-workers 1 --no-nom --skip-cache -f .#nixosConfigurations.rpi4.config.system.build.toplevel'
|
||||
- run: 'nix develop .#ci --command bash ci/run_builds.sh'
|
||||
|
||||
build_x86-64_packages:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
- uses: DeterminateSystems/flake-checker-action@main
|
||||
- uses: DeterminateSystems/nix-installer-action@v16
|
||||
with:
|
||||
extra-conf: |
|
||||
keep-going = true
|
||||
fallback = true
|
||||
- uses: DeterminateSystems/flake-checker-action@v9
|
||||
- uses: ryanccn/attic-action@v0
|
||||
with:
|
||||
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
|
||||
cache: ${{ secrets.ATTIC_CACHE }}
|
||||
token: ${{ secrets.ATTIC_TOKEN }}
|
||||
- run: 'nix develop .#ci --command nix-fast-build --eval-workers 1 --no-nom --skip-cache -f .#packages.x86_64-linux.redlib'
|
||||
- run: 'nix develop .#ci --command bash ci/run_builds.sh packages'
|
||||
|
||||
build_x86-64:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
- uses: DeterminateSystems/flake-checker-action@main
|
||||
- uses: DeterminateSystems/nix-installer-action@v16
|
||||
with:
|
||||
extra-conf: |
|
||||
keep-going = true
|
||||
fallback = true
|
||||
- uses: DeterminateSystems/flake-checker-action@v9
|
||||
- uses: ryanccn/attic-action@v0
|
||||
with:
|
||||
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
|
||||
@ -48,6 +60,4 @@ jobs:
|
||||
# free useless disk space
|
||||
- run: 'bash ci/util_free_space_extreme.sh'
|
||||
# TODO: figure out how to use flake checks and use those to build it
|
||||
- run: 'nix develop .#ci --command nix-fast-build --eval-workers 1 --no-nom --skip-cache -f .#nixosConfigurations.slab.config.system.build.toplevel'
|
||||
- run: 'nix develop .#ci --command nix-fast-build --eval-workers 1 --no-nom --skip-cache -f .#nixosConfigurations.nullbox.config.system.build.toplevel'
|
||||
- run: 'nix develop .#ci --command nix-fast-build --eval-workers 1 --no-nom --skip-cache -f .#nixosConfigurations.nixos-wsl.config.system.build.toplevel'
|
||||
- run: 'nix develop .#ci --command bash ci/run_builds.sh config'
|
||||
|
22
.github/workflows/proactive-update.yaml
vendored
22
.github/workflows/proactive-update.yaml
vendored
@ -12,8 +12,12 @@ jobs:
|
||||
runs-on: ubuntu-24.04-arm
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
- uses: DeterminateSystems/flake-checker-action@main
|
||||
- uses: DeterminateSystems/nix-installer-action@v16
|
||||
with:
|
||||
extra-conf: |
|
||||
keep-going = true
|
||||
fallback = true
|
||||
- uses: DeterminateSystems/flake-checker-action@v9
|
||||
- uses: ryanccn/attic-action@v0
|
||||
with:
|
||||
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
|
||||
@ -22,14 +26,18 @@ jobs:
|
||||
# free useless disk space
|
||||
- run: 'bash ci/util_free_space_extreme.sh'
|
||||
- run: 'nix flake update'
|
||||
- run: 'nix develop .#ci --command nix-fast-build --eval-workers 1 --no-nom --skip-cache -f .#nixosConfigurations.rpi4.config.system.build.toplevel'
|
||||
- run: 'nix develop .#ci --command bash ci/run_builds.sh'
|
||||
|
||||
build_x86:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
- uses: DeterminateSystems/flake-checker-action@main
|
||||
- uses: DeterminateSystems/nix-installer-action@v16
|
||||
with:
|
||||
extra-conf: |
|
||||
keep-going = true
|
||||
fallback = true
|
||||
- uses: DeterminateSystems/flake-checker-action@v9
|
||||
- uses: ryanccn/attic-action@v0
|
||||
with:
|
||||
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
|
||||
@ -38,6 +46,4 @@ jobs:
|
||||
# free useless disk space
|
||||
- run: 'bash ci/util_free_space_extreme.sh'
|
||||
- run: 'nix flake update'
|
||||
- run: 'nix develop .#ci --command nix-fast-build --eval-workers 1 --no-nom --skip-cache -f .#nixosConfigurations.nullbox.config.system.build.toplevel'
|
||||
- run: 'nix develop .#ci --command nix-fast-build --eval-workers 1 --no-nom --skip-cache -f .#nixosConfigurations.slab.config.system.build.toplevel'
|
||||
- run: 'nix develop .#ci --command nix-fast-build --eval-workers 1 --no-nom --skip-cache -f .#nixosConfigurations.nixos-wsl.config.system.build.toplevel'
|
||||
- run: 'nix develop .#ci --command bash ci/run_builds.sh'
|
||||
|
57
ci/run_builds.sh
Executable file
57
ci/run_builds.sh
Executable file
@ -0,0 +1,57 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -Exo pipefail
|
||||
|
||||
err=0
|
||||
|
||||
set_error () {
|
||||
err=1
|
||||
}
|
||||
|
||||
trap set_error ERR
|
||||
|
||||
system="$(nix eval --impure --raw --expr 'builtins.currentSystem')"
|
||||
|
||||
|
||||
run_builds () {
|
||||
for i in "$@" ; do
|
||||
nix-fast-build --eval-workers 1 --no-nom --skip-cache --attic-cache main -f "$i"
|
||||
done
|
||||
}
|
||||
|
||||
build_systems () {
|
||||
case "$system" in
|
||||
x86_64-linux) run_builds \
|
||||
.\#nixosConfigurations.nullbox.config.system.build.toplevel \
|
||||
.\#nixosConfigurations.slab.config.system.build.toplevel \
|
||||
.\#nixosConfigurations.nixos-wsl.config.system.build.toplevel \
|
||||
;;
|
||||
|
||||
aarch64-linux) run_builds \
|
||||
.\#nixosConfigurations.rpi4.config.system.build.toplevel \
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
build_packages () {
|
||||
run_builds .\#packages."${system}".redlib
|
||||
}
|
||||
|
||||
|
||||
if [[ "$#" -ne 0 ]] ; then
|
||||
until [[ "$#" -le 0 ]]; do
|
||||
case "$1" in
|
||||
pkgs|packages) DO_PACKAGES=1;;
|
||||
config) DO_CONFIG=1;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
else
|
||||
DO_PACKAGES=1
|
||||
DO_CONFIG=1
|
||||
fi
|
||||
|
||||
if [[ -n "${DO_CONFIG:+x}" ]] ; then build_systems; fi
|
||||
if [[ -n "${DO_PACKAGES:+x}" ]] ; then build_packages; fi
|
||||
|
||||
exit $err
|
@ -26,6 +26,7 @@ LinkedInLunatics
|
||||
linux
|
||||
linux_gaming
|
||||
losercity
|
||||
MINDWAVEgame
|
||||
NixOS
|
||||
NonBinaryTalk
|
||||
okbuddyhetero
|
||||
|
@ -37,27 +37,10 @@ in {
|
||||
|
||||
gimp-with-plugins = gimp-with-plugins-good;
|
||||
|
||||
easyeffects = let
|
||||
stable = pkgsStable.easyeffects;
|
||||
unstable = prev.easyeffects;
|
||||
in if updateTime < 1726148749 then stable else unstable;
|
||||
|
||||
compsize = let
|
||||
stable = pkgsStable.compsize;
|
||||
unstable = prev.compsize;
|
||||
now = 1724786296;
|
||||
in hold now 7 stable unstable;
|
||||
|
||||
qgis = let
|
||||
stable = pkgsStable.qgis;
|
||||
unstable = prev.qgis;
|
||||
now = 1733871491;
|
||||
in hold now 7 stable unstable;
|
||||
|
||||
rmlint = let
|
||||
stable = pkgsStable.rmlint;
|
||||
unstable = prev.rmlint;
|
||||
now = 1736384218;
|
||||
nwg-displays = let
|
||||
stable = pkgsStable.nwg-displays;
|
||||
unstable = prev.nwg-displays;
|
||||
now = 1739114541;
|
||||
in hold now 7 stable unstable;
|
||||
|
||||
redlib = let
|
||||
|
Loading…
x
Reference in New Issue
Block a user