-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (37 loc) · 1019 Bytes
/
cd.yaml
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
name: "CD"
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-docker-images: 'true'
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v14
with:
name: suyashtnt
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: cachix use helix
- run: cachix use niri
- run: cachix use fortuneteller2k
- run: cachix use nix-community
- run: nix build -L
- name: Deploy
if: github.ref == 'refs/heads/main'
env:
CACHIX_ACTIVATE_TOKEN: "${{ secrets.CACHIX_ACTIVATE_TOKEN }}"
run: |
cachix push suyashtnt ./result
cachix deploy activate ./result