-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (31 loc) · 911 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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