-
Notifications
You must be signed in to change notification settings - Fork 8
70 lines (66 loc) · 2.64 KB
/
ci.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
68
69
70
name: "CI"
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
- cron: '0 0 25 * *' # runs on day-of-month 25 at 00:00
jobs:
build:
strategy:
matrix:
os: [macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/flake-checker-action@v9
- uses: cachix/install-nix-action@v29
with:
github_access_token: ${{ secrets.GH_TOKEN }}
- uses: cachix/cachix-action@v15
with:
name: r17
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
extraPullNames: pre-commit-hooks,nix-community
skipPush: ${{ !(github.ref == 'refs/heads/main' && github.event_name == 'push' && matrix.os == 'macos-latest') }}
- uses: DeterminateSystems/update-flake-lock@v24
name: Update flake.lock
if: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.event.schedule == '0 0 25 * *' }}
with:
token: ${{ secrets.GH_TOKEN }}
inputs: nixpkgs-master nixpkgs-stable nixpkgs-unstable nix nix-darwin flake-parts home-manager pre-commit-hooks
branch: monthly-lock
git-author-name: 'anakmangang'
git-author-email: 'contact@evilfactorylabs.org'
git-committer-name: 'anakmangang'
git-committer-email: 'contact@evilfactorylabs.org'
commit-msg: 'chore(lockfile): update flake.lock'
pr-title: 'chore(lockfile): update flake.lock'
pr-labels: |
dependencies
automated
monthly
- uses: DeterminateSystems/update-flake-lock@v24
name: Update flake.lock
if: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.event.schedule == '0 0 * * 0' }}
with:
token: ${{ secrets.GH_TOKEN }}
inputs: nixvim nixpkgs-fmt neorg-overlay home-manager nix-env ts-rescript vimPlugins_vim-rescript vimPlugins_supermaven-nvim
branch: weekly-lock
git-author-name: 'anakmangang'
git-author-email: 'contact@evilfactorylabs.org'
git-committer-name: 'anakmangang'
git-committer-email: 'contact@evilfactorylabs.org'
commit-msg: 'chore(lockfile): update flake.lock'
pr-title: 'chore(lockfile): update flake.lock'
pr-labels: |
dependencies
automated
weekly
- run: nix flake show .
- run: nix build .#nvim
- run: nix build ".#darwinConfigurations.$HOSTNAME.system"
env:
HOSTNAME: "eR17"