CI: build package with Go & Nix

This commit is contained in:
raf 2023-12-24 20:18:47 +03:00 committed by GitHub
parent a94a991fab
commit 6654afc8f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

32
.github/workflows/go.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-go:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Build
run: go build -v ./.
build-nix:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Nix Magic Cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build with Nix
run: nix build .# -Lv