ci: add go {vet,build} job
This commit is contained in:
parent
c452e2a4f7
commit
a6c781d5c3
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue