Create build.yml
This commit is contained in:
parent
67a794594b
commit
69e23dbbeb
1 changed files with 46 additions and 0 deletions
46
.github/workflows/build.yml
vendored
Normal file
46
.github/workflows/build.yml
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
name: Nix Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
paths-ignore:
|
||||||
|
- "README.md"
|
||||||
|
- ".gitignore"
|
||||||
|
- "Makefile"
|
||||||
|
- ".gitattributes"
|
||||||
|
workflow_run:
|
||||||
|
workflows: [update-flake]
|
||||||
|
types: [completed]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-nixos:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: "Maximize Disk Space"
|
||||||
|
uses: easimon/maximize-build-space@v8
|
||||||
|
with:
|
||||||
|
root-reserve-mb: 8192
|
||||||
|
swap-size-mb: 1024
|
||||||
|
build-mount-path: /nix
|
||||||
|
remove-dotnet: "true"
|
||||||
|
remove-android: "true"
|
||||||
|
remove-haskell: "true"
|
||||||
|
remove-codeql: "true"
|
||||||
|
remove-docker-images: "true"
|
||||||
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: "Install Nix ❄️"
|
||||||
|
uses: cachix/install-nix-action@v26
|
||||||
|
|
||||||
|
- name: "Install Cachix ❄️"
|
||||||
|
uses: cachix/cachix-action@v14
|
||||||
|
with:
|
||||||
|
name: shades-nixos-config
|
||||||
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
|
|
||||||
|
|
||||||
|
- name: "Build NixOS config ❄️"
|
||||||
|
run: |
|
||||||
|
nix build .\#nixosConfigurations."earth".config.system.build.toplevel
|
||||||
Loading…
Add table
Add a link
Reference in a new issue