Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

chore(deps): Bump DeterminateSystems/flakehub-push from 2bbebebb5abb4f521d3b0a6fd91fb1e37d6beeef to c51423e4c8d56e31a04fb8bae6da55b6b1c125ff #113

chore(deps): Bump DeterminateSystems/flakehub-push from 2bbebebb5abb4f521d3b0a6fd91fb1e37d6beeef to c51423e4c8d56e31a04fb8bae6da55b6b1c125ff

chore(deps): Bump DeterminateSystems/flakehub-push from 2bbebebb5abb4f521d3b0a6fd91fb1e37d6beeef to c51423e4c8d56e31a04fb8bae6da55b6b1c125ff #113

Workflow file for this run

name: "Cache"
on:
pull_request:
push:
branches:
- "develop"
- "feature/ci"
concurrency:
group: ${{ github.ref }}-cache
cancel-in-progress: true
jobs:
# idea credit: https://github.com/nix-community/nix-github-actions/blob/bfeb681177b5128d061ebbef7ded30bc21a3f135/.github/workflows/detsys-nix-installer-action.yml
matrix:
name: Calculate recent-versions matrix
runs-on: ubuntu-latest
outputs:
calculated: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v9
with:
diagnostic-endpoint: ""
- name: Set Matrix
id: set-matrix
run: |
set -eux -o pipefail
echo "matrix=$(nix eval --json '.#lib.recentMatrix')" >> "$GITHUB_OUTPUT"
packages:
name: Cache ${{ matrix.elixir }} on OTP ${{ matrix.erlang }}
needs: matrix
runs-on: ${{ matrix.os }}
strategy:
matrix: ${{ fromJSON(needs.matrix.outputs.calculated) }}
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v9
with:
diagnostic-endpoint: ""
- uses: DeterminateSystems/magic-nix-cache-action@v2
with:
diagnostic-endpoint: ""
- uses: cachix/cachix-action@v13
if: github.ref == 'refs/heads/develop'
with:
name: shanesveller-nix-beam-flakes
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
pathsToPush: "./result"
skipAddingSubstituter: true
- run: |
printf \
"elixir %s\nerlang %s" \
${{ matrix.elixir }} \
${{ matrix.erlang }} \
| tee ./dev/example/.tool-versions
- run: nix -L build .#example