Generate Cache #338
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |