Skip to content

Commit

Permalink
ci: set build platform profile
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoepics authored May 19, 2024
1 parent 8597dda commit 49a8989
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,24 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
java-version: ['11', '17', '21']
platform: ['linux', 'windows', 'macosx']

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true # Fetch submodules

- name: Install dependencies to build liboqs
if: matrix.os == 'windows-latest'
run: |
choco install cmake ninja openssl
- name: Install dependencies to build liboqs
if: matrix.os == 'macos-latest'
run: |
brew install cmake ninja openssl
- name: Install dependencies to build liboqs
if: matrix.os == 'ubuntu-latest'
run: |
Expand All @@ -53,18 +54,15 @@ jobs:
working-directory: liboqs

- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'

- name: Resolve all maven project dependencies
run: mvn dependency:go-offline

- name: Build liboqs-java and run tests
- name: Resolve all maven project dependencies and build liboqs-java
run: |
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
mvn package -P ${{ matrix.os }}
mvn package -P ${{ matrix.platform }} -Dliboqs.include.dir="/usr/local/include" -Dliboqs.lib.dir="/usr/local/lib"
- name: Compile KEM, Signatures and Rand examples
run: |
Expand Down

0 comments on commit 49a8989

Please sign in to comment.