Setup tests to run all multiple ubuntu versions. #75
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
jdk: ['7', '8', '11', '17', '21'] | |
cc: [gcc, clang] | |
os: [ubuntu-20.04, ubuntu-22.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up JDK ${{ matrix.jdk }} | |
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.jdk }} | |
java-package: jdk | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -qq bats libedit-dev libedit2 | |
- name: Build | |
run: | | |
make clean bats T_LIBS="JavaEditline JavaReadline JavaGetline" CC=${{ matrix.cc }} | |
mvn clean site install |