maint: remove vestigal gomod2nix config #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: nix | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- name: Install Cache | |
uses: DeterminateSystems/magic-nix-cache-action@v1 | |
- run: nix flake check | |
- name: lint formatting | |
run: | | |
nix develop --command nixpkgs-fmt --check *.nix | |
if ! git diff-index --quiet HEAD --; then | |
echo "nixpkgs-fmt had changes" | |
exit 1 | |
fi | |
# flakes | |
- run: nix develop --command which go | |
- run: nix build . && ./result/bin/nix-search --help | |
- run: nix build .#nix-search && ./result/bin/nix-search --help | |
- run: nix run . -- --help | |
- run: nix run .#nix-search -- --help | |
# standard | |
- run: nix-shell --run 'which go' | |
- run: nix-build && ./result/bin/nix-search --help |