-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 1.17 KB
/
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
name: Generate Cache
on:
workflow_dispatch:
schedule:
- cron: '30 5,17 * * *'
jobs:
build:
name: "${{ matrix.os }} ${{ matrix.package }}"
strategy:
matrix:
package:
- "nixpkgs#php81Extensions.grpc"
- "nixpkgs#php81Extensions.redis"
- "nixpkgs#php81Extensions.xdebug"
- "nixpkgs#php82Extensions.grpc"
- "nixpkgs#php82Extensions.redis"
- "nixpkgs#php82Extensions.xdebug"
- "github:fossar/nix-phps#php80"
- "github:fossar/nix-phps#php74"
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Print out arch
run: uname -a
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Nix Caching
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Install Cachix
run: nix profile install nixpkgs#cachix
- name: Authorize Cachix
run: cachix authtoken ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Build
run: cachix push shopware $(nix build ${{ matrix.package }} --no-link --print-out-paths)