-
Notifications
You must be signed in to change notification settings - Fork 3
67 lines (67 loc) · 2.87 KB
/
build-and-cache.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: easimon/maximize-build-space@v7
with:
overprovision-lvm: true
remove-android: true
remove-codeql: true
remove-docker-images: true
remove-dotnet: true
remove-haskell: true
root-reserve-mb: 512
swap-size-mb: 1024
- uses: actions/checkout@v4
- name: Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
- uses: cachix/install-nix-action@v22
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
with:
authToken: ${{ secrets.CACHIX_TOKEN }}
extraPullNames: nix-community
name: thiagokokada-nix-configs
- name: Set default git branch (to reduce log spam)
run: git config --global init.defaultBranch master
- name: 'Build Home-Manager configs for: home-linux, steamdeck'
run: |-
nix build --print-build-logs '.#homeConfigurations.home-linux.activationPackage'
nix build --print-build-logs '.#homeConfigurations.steamdeck.activationPackage'
- name: 'Build NixOS configs for: hachune-nixos, miku-nixos, mirai-vps, sankyuu-nixos'
run: |-
nix build --print-build-logs '.#nixosConfigurations.hachune-nixos.config.system.build.toplevel'
nix build --print-build-logs '.#nixosConfigurations.miku-nixos.config.system.build.toplevel'
nix build --print-build-logs '.#nixosConfigurations.mirai-vps.config.system.build.toplevel'
nix build --print-build-logs '.#nixosConfigurations.sankyuu-nixos.config.system.build.toplevel'
- name: 'Build NixOS configs for: zatsune-nixos'
run: nix build --print-build-logs --builders 'ssh://zatsune-nixos-uk aarch64-linux' '.#nixosConfigurations.zatsune-nixos.config.system.build.toplevel'
build-macos:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v22
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
with:
authToken: ${{ secrets.CACHIX_TOKEN }}
extraPullNames: nix-community
name: thiagokokada-nix-configs
- name: Set default git branch (to reduce log spam)
run: git config --global init.defaultBranch master
- name: 'Build Home-Manager configs for: home-macos'
run: nix build --print-build-logs '.#homeConfigurations.home-macos.activationPackage'
name: build-and-cache
"on":
- push
- workflow_dispatch