ci: use Magic Nix Cache (#279)

This commit is contained in:
Daniel Thwaites 2024-03-13 10:34:57 +00:00 committed by GitHub
parent 32a7969292
commit d0b264e216
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 28 additions and 6 deletions

View file

@ -10,10 +10,17 @@ jobs:
steps:
- name: Install Nix
uses: cachix/install-nix-action@v22
uses: DeterminateSystems/nix-installer-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
extra-conf: |
extra-experimental-features = nix-command flakes
- name: Set up cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: List packages
id: list-packages
@ -37,10 +44,17 @@ jobs:
steps:
- name: Install Nix
uses: cachix/install-nix-action@v22
uses: DeterminateSystems/nix-installer-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
extra-conf: |
extra-experimental-features = nix-command flakes
- name: Set up cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build ${{ matrix.build.key }}
run: nix -L build .#${{ matrix.build.type }}.${{ matrix.build.arch }}.${{ matrix.build.key }}

View file

@ -16,10 +16,17 @@ jobs:
steps:
- name: Install Nix
uses: cachix/install-nix-action@v22
uses: DeterminateSystems/nix-installer-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
extra-conf: |
extra-experimental-features = nix-command flakes
- name: Set up cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build docs
run: nix -L build .#docs

View file

@ -15,6 +15,7 @@ Where the scope is one of:
| Scope | Purpose |
|----------------|------------------------------------------------------------------------|
| `ci` | Changes to GitHub Actions workflows. |
| `doc` | Changes to the website, `README.md`, and so on. |
| `stylix` | Changes in the `stylix` directory, `flake.nix`, and other global code. |
| Name of target | Changes to code for a particular target. |