Skip to content

Commit

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

steps:
- name: Checkout code
Expand Down Expand Up @@ -54,15 +53,28 @@ jobs:
working-directory: liboqs

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

- name: Resolve all maven project dependencies and build liboqs-java
- if: matrix.os == 'macos-latest'
name: Resolve all maven project dependencies and build liboqs-java for MacOS
run: |
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
mvn package -P ${{ matrix.platform }} -Dliboqs.include.dir="/usr/local/include" -Dliboqs.lib.dir="/usr/local/lib"
mvn package -P macosx
- if: matrix.os == 'ubuntu-latest'
name: Resolve all maven project dependencies and build liboqs-java for Linux
run: |
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
mvn package -P linux
- if: matrix.os == 'windows-latest'
name: Resolve all maven project dependencies and build liboqs-java for Windows
run: |
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
mvn package -P windows
- name: Compile KEM, Signatures and Rand examples
run: |
Expand Down

0 comments on commit 6855d22

Please sign in to comment.