nixos/.github/workflows/build.yml

65 lines
2.8 KiB
YAML
Raw Normal View History

2024-08-12 02:34:19 +04:00
name: "Build and Cache"
2024-07-08 14:21:56 +04:00
on:
pull_request:
push:
jobs:
2024-07-08 14:32:35 +04:00
sakopc:
2024-07-08 14:21:56 +04:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
2024-07-08 14:48:10 +04:00
- uses: cachix/install-nix-action@v27
2024-07-08 14:21:56 +04:00
with:
2024-08-12 02:15:12 +04:00
nix_path: nixpkgs=channel:nixos-unstable
2024-08-12 02:34:19 +04:00
- uses: DeterminateSystems/magic-nix-cache-action@main
2024-07-08 14:21:56 +04:00
- uses: cachix/cachix-action@v14
with:
2024-08-12 02:17:37 +04:00
name: sako-nixos-cache
2024-07-08 14:21:56 +04:00
# If you chose signing key for write access
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
# If you chose API tokens for write access OR if you have a private cache
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
2024-08-12 02:46:43 +04:00
# - run: nix run nixpkgs#nixos-rebuild -- --flake .#sakopc build
2024-08-12 03:02:04 +04:00
- run: nix profile install nixpkgs#nix-fast-build
- run: nix-fast-build --skip-cached --no-nom --flake .#nixosConfigurations.sakopc.config.system.build.toplevel
- run: nix-shell --run "echo All done!"
2024-08-12 02:34:19 +04:00
sakotop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v14
with:
name: sako-nixos-cache
# If you chose signing key for write access
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
# If you chose API tokens for write access OR if you have a private cache
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
2024-08-12 02:46:43 +04:00
# - run: nix run nixpkgs#nixos-rebuild -- --flake .#sakotop build
2024-08-12 03:02:04 +04:00
# - run: nix run github:Mic92/nix-fast-build -- --no-nom --skip-cached --flake .#nixosConfigurations.sakotop.config.system.build.toplevel
- run: nix profile install nixpkgs#nix-fast-build
- run: nix-fast-build --skip-cached --no-nom --flake .#nixosConfigurations.sakotop.config.system.build.toplevel
2024-08-12 02:34:19 +04:00
- run: nix-shell --run "echo All done!"
sakowsl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v14
with:
name: sako-nixos-cache
# If you chose signing key for write access
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
# If you chose API tokens for write access OR if you have a private cache
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
2024-08-12 02:46:43 +04:00
# - run: nix run nixpkgs#nixos-rebuild -- --flake .#sakowsl build
2024-08-12 03:02:04 +04:00
# - run: nix run github:Mic92/nix-fast-build -- --no-nom --skip-cached --flake .#nixosConfigurations.sakowsl.config.system.build.toplevel
- run: nix profile install nixpkgs#nix-fast-build
- run: nix-fast-build --skip-cached --no-nom --flake .#nixosConfigurations.sakowsl.config.system.build.toplevel
2024-08-12 02:34:19 +04:00
- run: nix-shell --run "echo All done!"