From 741ef6e9fdfe6996fb74d15532d17751f46dd232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Insaurralde?= Date: Tue, 15 Jul 2025 01:06:38 -0300 Subject: [PATCH] Add a GitHub workflow on top of openfhe-buildbox. Run build and tests. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit openfhe-buildbox makes the pipeline faster as it doesn't have to download and build OpenFHE. Signed-off-by: Matías Insaurralde --- .github/workflows/ci.yml | 55 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..137e295 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,55 @@ +name: CI +on: + push: + branches: [ main, develop ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + platform: [linux/amd64] + + container: + image: ghcr.io/matiasinsaurralde/openfhe-buildbox:1.3.1 + options: --user root + + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.24.3' + + - name: Download dependencies + run: go mod download + + - name: Build + run: go build -tags openfhe -o openfhe-go . + + test: + runs-on: ubuntu-latest + strategy: + matrix: + platform: [linux/amd64] + + container: + image: ghcr.io/matiasinsaurralde/openfhe-buildbox:1.3.1 + options: --user root + + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.24.3' + + - name: Download dependencies + run: go mod download + + - name: Run tests + run: go test -v -tags openfhe