Save 30-50%+ of CI time without any effort or cost. Use Magic Nix Cache, a totally free and zero-configuration binary cache for Nix on GitHub Actions.
Find a file
Graham Christensen dd9ea1361e
Merge pull request #2 from DeterminateSystems/update-rust-log-var
Update RUST_LOG env var value
2023-06-26 12:52:35 -04:00
.github Disable macOS temporarily, while we get this action bootstrapped 2023-06-26 11:58:24 -04:00
dist Update RUST_LOG env var value 2023-06-26 09:28:12 -07:00
src Update RUST_LOG env var value 2023-06-26 09:28:12 -07:00
.envrc Init the action 2023-06-26 11:57:25 -04:00
.gitattributes Init the action 2023-06-26 11:57:25 -04:00
.gitignore Init the action 2023-06-26 11:57:25 -04:00
action.yml Init the action 2023-06-26 11:57:25 -04:00
bun.lockb Init the action 2023-06-26 11:57:25 -04:00
flake.lock Init the action 2023-06-26 11:57:25 -04:00
flake.nix Init the action 2023-06-26 11:57:25 -04:00
justfile Init the action 2023-06-26 11:57:25 -04:00
LICENSE Init the action 2023-06-26 11:57:25 -04:00
package.json Init the action 2023-06-26 11:57:25 -04:00
README.md Init the action 2023-06-26 11:57:25 -04:00
rollup.config.js Init the action 2023-06-26 11:57:25 -04:00
shell.nix Init the action 2023-06-26 11:57:25 -04:00
tsconfig.json Init the action 2023-06-26 11:57:25 -04:00

The Magic Nix Cache Action

Cut CI time by 50% or more by caching to GitHub Actions' cache, for free. No configuration required.

name: Flake Check

on:
  pull_request:
  push:
    branches: [main]

jobs:
  flake-check:
    runs-on: ubuntu-22.04
    steps:
      - uses: actions/checkout@v3
      - uses: DeterminateSystems/flake-checker-action@v4
        with:
          fail-mode: true
      - name: Install Nix
        uses: DeterminateSystems/nix-installer-action@v4
      - uses: DeterminateSystems/nix-installer-action-cache@focus-on-cache

      - name: "Nix Flake Check"
        run: nix flake check . -L
Parameter Description Required Default
diagnostic-endpoint Diagnostic endpoint url where diagnostics and performance data is sent. To disable set this to an empty string. https://install.determinate.systems/magic-nix-cache/perf
listen The host and port to listen on. 127.0.0.1:37515
source-binary Run a version of the cache binary from somewhere already on disk. Conflicts with all other source-* options.
source-branch The branch of magic-nix-cache to use. Conflicts with all other source-* options.
source-pr The PR of magic-nix-cache to use. Conflicts with all other source-* options.
source-revision The revision of nix-magic-nix-cache to use. Conflicts with all other source-* options.
source-tag The tag of magic-nix-cache to use. Conflicts with all other source-* options.
source-url A URL pointing to a magic-nix-cache binary. Overrides all other source-* options.
upstream-cache Your preferred upstream cache. Store paths in this store will not be cached in GitHub Actions' cache. https://cache.nixos.org