Skip to content

Commit

Permalink
Test with and without Cgo in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Vogel <[email protected]>
  • Loading branch information
stv0g committed Aug 4, 2023
1 parent bf49b9b commit 7275357
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,17 @@ on:

jobs:
test:
name: Tests
name: Test ${{ matrix.cgo && 'with' || 'without' }} Cgo
runs-on: ubuntu-latest

strategy:
matrix:
cgo: [true, false]
os: [ubuntu-latest, windows-latest]

env:
CGO_ENABLED: ${{ matrix.cgo && '1' || '0' }}

steps:
- uses: actions/checkout@v3

Expand All @@ -37,6 +46,7 @@ jobs:
repository: open-quantum-safe/liboqs
ref: 0.8.0
path: liboqs
if: ${{ matrix.cgo }}

- name: Install liboqs
run: |
Expand All @@ -47,6 +57,7 @@ jobs:
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX=/usr ..
sudo ninja install
if: ${{ matrix.cgo }}

- name: Set up Go
uses: actions/setup-go@v4
Expand Down

0 comments on commit 7275357

Please sign in to comment.