mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-24 18:19:01 +00:00
ci: replace with Determinate Systems actions
This commit is contained in:
parent
4ef59b81ca
commit
61ea1477f8
7
.github/workflows/automate-update.yml
vendored
7
.github/workflows/automate-update.yml
vendored
@ -18,11 +18,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: cachix/install-nix-action@v22
|
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
||||||
with:
|
- uses: DeterminateSystems/nix-installer-action@v4
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
|
||||||
extra_nix_config: |
|
|
||||||
keep-going = true
|
|
||||||
- name: Update flake inputs
|
- name: Update flake inputs
|
||||||
run: |
|
run: |
|
||||||
nix flake update --commit-lock-file \
|
nix flake update --commit-lock-file \
|
||||||
|
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -9,13 +9,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: cachix/install-nix-action@v22
|
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
||||||
with:
|
- uses: DeterminateSystems/nix-installer-action@v4
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
|
||||||
extra_nix_config: |
|
|
||||||
keep-going = true
|
|
||||||
- run: |
|
|
||||||
sudo apt clean
|
|
||||||
- name: Prepare push to binary cache
|
- name: Prepare push to binary cache
|
||||||
uses: cachix/cachix-action@v12
|
uses: cachix/cachix-action@v12
|
||||||
if: ${{ github.ref == 'refs/heads/master' }}
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
|
7
.github/workflows/check.yml
vendored
7
.github/workflows/check.yml
vendored
@ -9,11 +9,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: cachix/install-nix-action@v22
|
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
||||||
with:
|
- uses: DeterminateSystems/nix-installer-action@v4
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
|
||||||
extra_nix_config: |
|
|
||||||
keep-going = true
|
|
||||||
- name: Check flake outputs
|
- name: Check flake outputs
|
||||||
run: nix flake check --impure
|
run: nix flake check --impure
|
||||||
|
|
||||||
|
5
.github/workflows/iso.yml
vendored
5
.github/workflows/iso.yml
vendored
@ -9,9 +9,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: cachix/install-nix-action@v20
|
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
||||||
with:
|
- uses: DeterminateSystems/nix-installer-action@v4
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
|
||||||
- name: Build ISO
|
- name: Build ISO
|
||||||
id: build-iso
|
id: build-iso
|
||||||
# TODO: Use the registry.
|
# TODO: Use the registry.
|
||||||
|
5
.github/workflows/site.yml
vendored
5
.github/workflows/site.yml
vendored
@ -10,9 +10,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: cachix/install-nix-action@v22
|
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
||||||
with:
|
- uses: DeterminateSystems/nix-installer-action@v4
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
|
||||||
- env:
|
- env:
|
||||||
NIXPKGS_ALLOW_UNFREE: "1"
|
NIXPKGS_ALLOW_UNFREE: "1"
|
||||||
run: nix develop .#docs --impure -c hugo -s ./docs/
|
run: nix develop .#docs --impure -c hugo -s ./docs/
|
||||||
|
7
.github/workflows/update-firefox-addons.yml
vendored
7
.github/workflows/update-firefox-addons.yml
vendored
@ -9,7 +9,7 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'pkgs/firefox-addons'
|
- 'pkgs/firefox-addons'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
update-firefox-addons:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
content: write
|
content: write
|
||||||
@ -18,9 +18,8 @@ jobs:
|
|||||||
id: metadata
|
id: metadata
|
||||||
run: echo "DATE=$(date +%F)" >> "$GITHUB_OUTPUT"
|
run: echo "DATE=$(date +%F)" >> "$GITHUB_OUTPUT"
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: cachix/install-nix-action@v22
|
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
||||||
with:
|
- uses: DeterminateSystems/nix-installer-action@v4
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
|
||||||
- env:
|
- env:
|
||||||
NIXPKGS_ALLOW_UNFREE: "1"
|
NIXPKGS_ALLOW_UNFREE: "1"
|
||||||
run: nix develop --impure -c mozilla-addons-to-nix pkgs/firefox-addons/firefox-addons.json pkgs/firefox-addons/default.nix
|
run: nix develop --impure -c mozilla-addons-to-nix pkgs/firefox-addons/firefox-addons.json pkgs/firefox-addons/default.nix
|
||||||
|
Loading…
Reference in New Issue
Block a user