mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-26 01:12:17 +01:00
Cache dev shell in FlakeHub Cache
This commit is contained in:
parent
e734a0ac4a
commit
9252645646
1 changed files with 32 additions and 0 deletions
32
.github/workflows/flakehub-cache.yml
vendored
Normal file
32
.github/workflows/flakehub-cache.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
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-12"
|
||||
- nix-system: "x86_64-linux"
|
||||
runner: "ubuntu-22.04"
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- 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
|
Loading…
Reference in a new issue