diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c801467..a61dcad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: | @@ -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: |