Skip to content

Commit

Permalink
ci: add ubuntum mac and windows build for jdk 11,17,21
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoepics authored May 19, 2024
1 parent 77a0843 commit 0048fee
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ on:
- master

jobs:
openjdk-11:
name: Build and Test on OpenJDK 11
runs-on: ubuntu-latest
build-test:
name: Build and Test on ${{ matrix.os }} with JDK ${{ matrix.java-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
java-version: ['11', '17', '21']

steps:
- name: Checkout code
Expand All @@ -22,21 +26,29 @@ jobs:

- name: Install dependencies to build liboqs
run: |
sudo apt update -qq
sudo apt install -y cmake build-essential ninja-build libssl-dev
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
sudo apt update -qq
sudo apt install -y cmake build-essential ninja-build libssl-dev
elif [ "${{ matrix.os }}" = "windows-latest" ]; then
# Add Windows specific commands to install dependencies
choco install cmake ninja openssl
elif [ "${{ matrix.os }}" = "macos-latest" ]; then
# Add macOS specific commands to install dependencies
brew install cmake ninja openssl
fi
- name: Build liboqs
run: |
mkdir build
cd build
cmake .. -G"Ninja" -DBUILD_SHARED_LIBS=ON -DOQS_BUILD_ONLY_LIB=ON
sudo ninja install
ninja install
working-directory: liboqs

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

- name: Resolve all maven project dependencies
Expand Down

0 comments on commit 0048fee

Please sign in to comment.