-
Notifications
You must be signed in to change notification settings - Fork 29
29 lines (27 loc) · 1.21 KB
/
amd64_windows_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
name: amd64 Windows Java
on: [push, pull_request, workflow_dispatch]
jobs:
# Building using the github runner environement directly.
visual-studio:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Check cmake
run: cmake --version
- name: Install SWIG 4.0.2
run: |
(New-Object System.Net.WebClient).DownloadFile("http://prdownloads.sourceforge.net/swig/swigwin-4.0.2.zip","swigwin-4.0.2.zip");
Expand-Archive .\swigwin-4.0.2.zip .;
echo "$((Get-Item .).FullName)/swigwin-4.0.2" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Check swig
run: swig -version
- name: Check mvn
run: mvn.cmd --version
- name: Configure
run: cmake -S. -Bbuild -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install -DBUILD_JAVA=ON -DSKIP_GPG=ON
- name: Build
run: cmake --build build --config Release --target ALL_BUILD -- /verbosity:normal /maxcpucount
- name: Test
run: cmake --build build --config Release --target RUN_TESTS -- /verbosity:normal /maxcpucount
- name: Install
run: cmake --build build --config Release --target INSTALL -- /verbosity:normal /maxcpucount