mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-26 17:30:34 +01:00
a76a83091c
* ci workflow: don't check initial substituter list * ci workflow: s/macos-12/macos-13/g * ci push dev shell: s/macos-12/macos-13/g * cache-test.sh: only check for upload, not enqueue lines; enqueue log lines not printed for dnixd-subscriber scenario
32 lines
930 B
YAML
32 lines
930 B
YAML
name: Push dev shell to FlakeHub Cache
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
push-dev-shell-to-flakehub-cache:
|
|
env:
|
|
ACTIONS_STEP_DEBUG: true
|
|
runs-on: ${{ matrix.systems.runner }}
|
|
permissions:
|
|
id-token: "write"
|
|
contents: "read"
|
|
strategy:
|
|
matrix:
|
|
systems:
|
|
- nix-system: "aarch64-darwin"
|
|
runner: "macos-latest-xlarge"
|
|
- nix-system: "x86_64-darwin"
|
|
runner: "macos-13"
|
|
- nix-system: "x86_64-linux"
|
|
runner: "ubuntu-22.04"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: DeterminateSystems/nix-installer-action@main
|
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
with:
|
|
use-flakehub: true
|
|
- name: Build dev shell for ${{ matrix.systems.nix-system }} on ${{ matrix.systems.runner }}
|
|
run: |
|
|
nix build .#devShells.${{ matrix.systems.nix-system }}.default
|