Skip to content

Generate Cache

Generate Cache #317

Workflow file for this run

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
- macos-14
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)