-
Notifications
You must be signed in to change notification settings - Fork 29
55 lines (53 loc) · 1.69 KB
/
amd64_linux_java.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# ref: https://github.com/actions/runner-images
name: amd64 Linux Java
on: [push, pull_request, workflow_dispatch]
jobs:
# Building using the github runner environement directly.
linux:
runs-on: ubuntu-latest
strategy:
matrix:
build: [
["Unix Makefiles", "Release"],
["Ninja", "Release"],
["Ninja Multi-Config", "Release"]
]
fail-fast: false
env:
GENERATOR: ${{ matrix.build[0] }}
BUILD_TYPE: ${{ matrix.build[1] }}
steps:
- uses: actions/checkout@v4
- name: Install Ninja
run: |
sudo apt-get update
sudo apt-get install ninja-build
- name: Uninstall preinstalled swig3.0
run: |
swig -version;
sudo apt remove -y swig swig3.0
- name: Install SWIG 4.0.2
run: |
wget "https://downloads.sourceforge.net/project/swig/swig/swig-4.0.2/swig-4.0.2.tar.gz";
tar xvf swig-4.0.2.tar.gz;
rm swig-4.0.2.tar.gz;
cd swig-4.0.2;
./configure --prefix=/usr;
make -j8;
sudo make install;
cd ..;
rm -rf swig-4.0.2;
- name: Check swig
run: swig -version
- name: Check mvn
run: mvn --version
- name: Check cmake
run: cmake --version
- name: Configure
run: cmake -S. -Bbuild -G "$GENERATOR" -DCMAKE_BUILD_TYPE="$BUILD_TYPE" -DCMAKE_INSTALL_PREFIX=install -DBUILD_JAVA=ON -DSKIP_GPG=ON
- name: Build
run: cmake --build build --config "$BUILD_TYPE" --target all -v
- name: Test
run: CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --config "$BUILD_TYPE" --target test -v
- name: Install
run: cmake --build build --config "$BUILD_TYPE" --target install -v