ci: update actions
This commit is contained in:
parent
da95309ed3
commit
dfa4d66654
4 changed files with 22 additions and 17 deletions
2
.github/workflows/autobot.yaml
vendored
2
.github/workflows/autobot.yaml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
||||||
if: github.actor == 'dependabot[bot]'
|
if: github.actor == 'dependabot[bot]'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: dependabot/fetch-metadata@v1
|
- uses: dependabot/fetch-metadata@v2
|
||||||
id: metadata
|
id: metadata
|
||||||
with:
|
with:
|
||||||
github-token: ${{ github.token }}
|
github-token: ${{ github.token }}
|
||||||
|
|
8
.github/workflows/docker.yml
vendored
8
.github/workflows/docker.yml
vendored
|
@ -19,17 +19,17 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: DeterminateSystems/nix-installer-action@v9
|
uses: DeterminateSystems/nix-installer-action@v10
|
||||||
|
|
||||||
- name: Setup Nix cache
|
- name: Setup Nix cache
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@v2
|
uses: DeterminateSystems/magic-nix-cache-action@v4
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
id: build
|
id: build
|
||||||
run: |
|
run: |
|
||||||
nix build -L --accept-flake-config .#container-${{ matrix.arch }}
|
nix build --print-build-logs .#container-${{ matrix.arch }}
|
||||||
[ ! -L result ] && exit 1
|
[ ! -L result ] && exit 1
|
||||||
echo "path=$(realpath result)" >> "$GITHUB_OUTPUT"
|
echo "path=$(readlink -f result)" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Upload image
|
- name: Upload image
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
21
.github/workflows/nix.yml
vendored
21
.github/workflows/nix.yml
vendored
|
@ -20,27 +20,32 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: DeterminateSystems/nix-installer-action@v9
|
uses: DeterminateSystems/nix-installer-action@v10
|
||||||
|
|
||||||
- name: Setup Nix cache
|
- name: Setup Nix cache
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@v2
|
uses: DeterminateSystems/magic-nix-cache-action@v4
|
||||||
|
|
||||||
- name: Build refraction
|
- name: Build refraction
|
||||||
run: nix build -L --fallback
|
run: nix build --fallback --print-build-logs
|
||||||
|
|
||||||
check:
|
check:
|
||||||
name: Check
|
name: Check flake
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, macos-latest]
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: DeterminateSystems/nix-installer-action@v9
|
uses: DeterminateSystems/nix-installer-action@v10
|
||||||
|
|
||||||
- name: Setup Nix cache
|
- name: Setup Nix cache
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@v2
|
uses: DeterminateSystems/magic-nix-cache-action@v4
|
||||||
|
|
||||||
- name: Run checks
|
- name: Run checks
|
||||||
run: nix flake check -L --show-trace
|
run: nix flake check --print-build-logs --show-trace
|
||||||
|
|
8
.github/workflows/update-flake.yml
vendored
8
.github/workflows/update-flake.yml
vendored
|
@ -18,11 +18,11 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: nixbuild/nix-quick-install-action@v26
|
uses: nixbuild/nix-quick-install-action@v27
|
||||||
|
|
||||||
- name: Update and create PR
|
- name: Update and create PR
|
||||||
uses: DeterminateSystems/update-flake-lock@v20
|
uses: DeterminateSystems/update-flake-lock@v21
|
||||||
with:
|
with:
|
||||||
commit-msg: 'nix: update inputs'
|
commit-msg: 'nix: update flake.lock'
|
||||||
pr-title: 'nix: update inputs'
|
pr-title: 'nix: update flake.lock'
|
||||||
token: ${{ github.token }}
|
token: ${{ github.token }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue