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>
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
name: bindings/c-cpp
|
|
|
|
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
|
|
|
|
- name: Setup gcc, g++, cmake, ninja
|
|
run: sudo apt update && sudo apt install -y gcc g++ cmake ninja-build
|
|
|
|
- name: Workaround to ensure that regorus.h is generated
|
|
run: |
|
|
cargo fetch
|
|
cargo build -r --frozen
|
|
working-directory: ./bindings/ffi
|
|
|
|
- name: Test c binding
|
|
run: |
|
|
mkdir bindings/c/build
|
|
cd bindings/c/build
|
|
cmake -G Ninja ..
|
|
ninja
|
|
./regorus_test
|
|
|
|
- name: Test c-nostd binding
|
|
run: |
|
|
mkdir bindings/c-nostd/build
|
|
cd bindings/c-nostd/build
|
|
cmake -G Ninja ..
|
|
ninja
|
|
./regorus_test
|
|
|
|
- name: Test cpp binding
|
|
run: |
|
|
mkdir bindings/cpp/build
|
|
cd bindings/cpp/build
|
|
cmake -G Ninja ..
|
|
ninja
|
|
./regorus_test
|