mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
Also schedule works to be run at 8:00 AM everyday. Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
36 lines
693 B
YAML
36 lines
693 B
YAML
name: bindings/go
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
schedule:
|
|
# Run at 8:00 AM every day
|
|
- cron: "0 8 * * *"
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
architecture: x64
|
|
|
|
- name: Build ffi
|
|
run: cargo build -r
|
|
working-directory: ./bindings/ffi
|
|
|
|
- name: Test go
|
|
run: |
|
|
go mod tidy
|
|
go build
|
|
LD_LIBRARY_PATH=../ffi/target/release ./regorus_test
|
|
working-directory: ./bindings/go
|