-
Notifications
You must be signed in to change notification settings - Fork 977
48 lines (38 loc) · 1006 Bytes
/
01-cachix.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
name: Cachix
on:
push:
paths:
- devenv.nix
- devenv.yaml
- devenv.lock
permissions:
contents: read
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Clone
uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v20
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Use Devenv Cache
uses: cachix/cachix-action@v12
with:
name: devenv
- name: Use Shopware Cache
uses: cachix/cachix-action@v12
with:
name: shopware
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Install Devenv
run: nix-env -if https://github.com/cachix/devenv/tarball/latest
- name: Warmup cache
run: cachix watch-exec shopware devenv shell php -v
env:
NIXPKGS_ALLOW_UNFREE: 1