ci: add go {vet,build} job

This commit is contained in:
Richard Patel 2023-06-10 17:33:28 +00:00 committed by ripatel-jump
parent c452e2a4f7
commit a6c781d5c3
2 changed files with 31 additions and 1 deletions

28
.github/workflows/go_build.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
go-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.20.5
- name: Fetch deps
run: |
# Hosted with Git LFS. See ./contrib/deps-bundle.sh
wget -q https://github.com/firedancer-io/radiance/raw/deps/deps-bundle.tar.zst
tar -I zstd -xf deps-bundle.tar.zst
- name: Vet
run: source activate-opt && go vet ./...
- name: Build
run: source activate-opt && go build -v ./cmd/radiance

View File

@ -2,7 +2,7 @@
set -e
# Packs a bundle of dependency files.
# Pack a bundle of dependency files
cd -- "$( dirname -- "${BASH_SOURCE[0]}" )"/..
@ -12,3 +12,5 @@ tar -Izstd -cf deps-bundle.tar.zst \
./opt/{include,lib,lib64}
echo "[+] Created deps-bundle.tar.zst"
# Now you can commit this file to the deps branch of the repository