Skip to content

Bump DeterminateSystems/flakehub-push from 5 to 7 #417

Bump DeterminateSystems/flakehub-push from 5 to 7

Bump DeterminateSystems/flakehub-push from 5 to 7 #417

Workflow file for this run

# yamllint disable rule:line-length rule:document-start rule:truthy
name: 'Build, test, and cache'
on:
workflow_dispatch: null
pull_request:
push:
paths:
- 'flake.lock'
- 'flake.nix'
- 'config/**'
# daily at 12:03 India Standard Time
schedule:
- cron: 33 18 * * *
# Workflow permissions
permissions:
contents: write
id-token: write
jobs:
build-and-test:
name: Build and Test
strategy:
fail-fast: false
matrix:
machine:
- os: macos-latest
arch: aarch64-darwin
- os: macos-latest
arch: x86_64-darwin
- os: ubuntu-latest
arch: x86_64-linux
- os: ubuntu-latest
arch: aarch64-linux
runs-on: ${{ matrix.machine.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup Nix
uses: DeterminateSystems/nix-installer-action@v23
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
extra-conf: |
fallback = true
http-connections = 128
max-substitution-jobs = 128
accept-flake-config = true
extra-platforms = aarch64-linux x86_64-linux aarch64-darwin x86_64-darwin
substituters = https://nix-community.cachix.org?priority=41 https://numtide.cachix.org?priority=42 https://cache.nixos.org/
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE=
- name: Setup QEMU for arm architectures builds
if: matrix.machine.os == 'ubuntu-latest'
uses: docker/setup-qemu-action@v4
- name: Enable Github Cache for Nix store
uses: DeterminateSystems/magic-nix-cache-action@v9
- name: Enable Cachix binary cache
uses: cachix/cachix-action@v15
with:
name: vijay
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Update flake.lock
run: nix flake update
- name: Run and test the config
run: |
echo "Running on ${{ matrix.machine.os }} - ${{ matrix.machine.arch }}"
nix run . -- -v
- name: Commit and Push updated flake.lock
if: matrix.machine.arch == 'x86_64-linux'
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: 'Bot 🤖(flake): bump flake.lock'
commit_user_name: Flake Bot
commit_options: --no-verify --signoff
commit_author: Flake Bot <github-actions@github.com>
branch: master
file_pattern: flake.lock
skip_dirty_check: false
skip_fetch: true