Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Commit

Permalink
Prefer newer Nix action for better cache (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jul 7, 2023
1 parent 87d736b commit e3705c9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 43 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/actionlint.yml

This file was deleted.

19 changes: 2 additions & 17 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,13 @@ on:
workflow_dispatch:

jobs:
get-version:
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
current: ${{ steps.current.outputs.current }}
steps:
- uses: actions/checkout@v3
- name: Install nix parser
run: curl -L https://github.com/kachick/nix-headbump/releases/download/v0.2.0/nix-headbump_Linux_x86_64.tar.gz | tar xvz -C ./ nix-headbump
- id: current
run: |
current="$(./nix-headbump detect --current)"
echo "current=${current}" | tee -a "$GITHUB_OUTPUT"
tasks:
runs-on: ubuntu-latest
timeout-minutes: 30
needs: [get-version]
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/${{ needs.get-version.outputs.current }}.tar.gz
- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix-build
- name: Log current versions
run: nix-shell --run 'task versions'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ jobs:
with:
# https://spdx.org/licenses/
allow-licenses: MIT, BSD-3-Clause, BSD-2-Clause, 0BSD, Unlicense, ISC, Apache-2.0, CC-BY-4.0
# The PURL prefix is got from following command
# `gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/kachick/nix-headbump/dependency-graph/compare/87d736b80a8a254bcac003d97e0b84712176b04f...5ba877ff1048d5fedcc6758484623eb67737f0fb`
# Not found in https://github.com/package-url/packageurl-js
allow-dependencies-licenses: pkg:githubactions/DeterminateSystems/nix-installer-action@4
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ task: [build] ..."
task: [test] go test
task: [lint] dprint check
task: [lint] go vet
task: [lint] actionlint
PASS
ok nix-headbump 0.313s

Expand Down
2 changes: 0 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ tasks:
cmds:
- dprint check
- go vet
- actionlint
- goreleaser check
- nixpkgs-fmt --check ./*.nix
versions:
Expand All @@ -36,5 +35,4 @@ tasks:
- task --version
- go version
- dprint --version
- actionlint --version
- goreleaser --version

0 comments on commit e3705c9

Please sign in to comment.