-
Notifications
You must be signed in to change notification settings - Fork 14
41 lines (36 loc) · 998 Bytes
/
main.yaml
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
32
33
34
35
36
37
38
39
40
41
name: Test
on: [push, pull_request]
jobs:
JavaBuild:
name: Test regxmllibJ
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request'
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [11, 17, 21]
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up a JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'corretto'
cache: maven
- name: Test Java
run: mvn test
cpp_build:
name: Test regxmllibC
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: install dependencies
run: sudo apt install libxerces-c-dev
- name: Checkout repo
uses: actions/checkout@v3
- name: Test C++
run: |
cmake -B build
cd build
make
ctest