-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (36 loc) · 1.02 KB
/
update.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
name: "Update"
on:
workflow_dispatch:
push:
schedule:
- cron: '*/60 * * * *'
jobs:
update:
timeout-minutes: 15
runs-on: nscloud-ubuntu-22.04-amd64-4x16
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # flakes doesn't work on shallow clones
- name: install-nix
uses: cachix/install-nix-action@v23
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
system-features = kvm nixos-test
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v12
with:
name: nixpkgs-wayland
signingKey: '${{ secrets.cachix_key_nixpkgs_wayland }}'
- name: git-setup
run: |
git config --global user.name 'Cole Botkens'
git config --global user.email 'cole.mickens+colebot@gmail.com'
- name: pre-load-devshell
run: |
nix build '.#devShells.x86_64-linux.default'
- name: update
run: |
set -xeuo pipefail
nix develop -c ./update.nu