Skip to content

Commit

Permalink
de-nix
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Mar 1, 2024
1 parent 37adb83 commit d0bc7ff
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 105 deletions.
26 changes: 4 additions & 22 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,14 @@ name: '🚔'
on: [ push ]
jobs:
check:
if: startsWith(github.ref, 'refs/tags/v') == false
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- uses: cachix/install-nix-action@v25
- uses: actions/setup-go@v5
with:
nix_path: "nixpkgs=channel:nixos-23.11"

- name: 'Activate Nix store cache'
uses: actions/cache@v4
id: nix-cache
with:
path: "/tmp/nixcache"
key: "nix-store-${{ hashFiles(format('{0}/tools/build.sh', github.workspace)) }}"

- name: "Import Nix store cache"
if: "steps.nix-cache.outputs.cache-hit == 'true'"
run: nix-store --import < /tmp/nixcache

go-version-file: 'go.mod'
check-latest: true
cache: true
- run: |
go vet ./...
go test -v ./...
- name: "Export Nix store cache"
if: >
( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' )
&& steps.nix-cache.outputs.cache-hit != 'true'
run: nix-store --export $(find /nix/store -maxdepth 1 -name '*-*') > /tmp/nixcache
17 changes: 0 additions & 17 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md → docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Build

To build a development version, run:
To build only binaries, run:

```sh
goreleaser build --clean --snapshot
Expand Down
File renamed without changes.
File renamed without changes.
65 changes: 0 additions & 65 deletions tools/build.sh

This file was deleted.

0 comments on commit d0bc7ff

Please sign in to comment.