mirror of
https://github.com/danth/stylix
synced 2024-11-22 04:03:09 +00:00
ci: use Magic Nix Cache (#279)
This commit is contained in:
parent
32a7969292
commit
d0b264e216
3 changed files with 28 additions and 6 deletions
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
|
@ -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 }}
|
||||
|
|
11
.github/workflows/docs.yml
vendored
11
.github/workflows/docs.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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. |
|
||||
|
|
Loading…
Reference in a new issue