mirror of
https://github.com/logos-storage/logos-storage-go-bindings.git
synced 2026-01-03 14:03:11 +00:00
Try to setup CI
This commit is contained in:
parent
7e88bddce1
commit
6ec31d6c2f
34
.github/workflows/ci.yml
vendored
Normal file
34
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
name: Go Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
|
||||
- name: Build libcodex
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y build-essential cmake curl git rustc cargo
|
||||
make update
|
||||
make libcodex
|
||||
go build -o codex-go examples/golang/codex.go
|
||||
|
||||
- name: Go test
|
||||
env:
|
||||
CGO_ENABLED: 1
|
||||
run: go test ./...
|
||||
Loading…
x
Reference in New Issue
Block a user