You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.5 KiB
42 lines
1.5 KiB
---
|
|
on: push
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
arch:
|
|
- x64
|
|
- x86
|
|
os:
|
|
- macos
|
|
- ubuntu
|
|
- windows
|
|
exclude:
|
|
- arch: x86
|
|
os: macos
|
|
runs-on: ${{ matrix.os }}-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-java@v3
|
|
with:
|
|
distribution: zulu
|
|
java-version: 11
|
|
architecture: ${{ matrix.arch }}
|
|
cache: maven
|
|
- if: matrix.os == 'ubuntu' && matrix.arch == 'x64'
|
|
uses: awalsh128/cache-apt-pkgs-action@v1
|
|
with:
|
|
packages: libgl1-mesa-dev
|
|
- if: matrix.os == 'ubuntu' && matrix.arch == 'x86'
|
|
run: sudo dpkg --add-architecture i386 && sudo apt update
|
|
- if: matrix.os == 'ubuntu' && matrix.arch == 'x86'
|
|
uses: awalsh128/cache-apt-pkgs-action@v1
|
|
with:
|
|
packages: libgl1-mesa-dev:i386 gcc-multilib
|
|
- if: matrix.os == 'windows'
|
|
uses: ilammy/msvc-dev-cmd@v1
|
|
with:
|
|
arch: ${{ matrix.arch }}
|
|
- if: matrix.os == 'windows'
|
|
run: echo '${{ env.VCToolsVersion }}' > '${{ env.VCInstallDir }}\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt'
|
|
- run: mvn '-Dnar.windows.msvc.dir=${{ env.VCInstallDir }}\..' '-Dnar.windows.msvc.version=${{ env.VisualStudioVersion }}' '-Dnar.windows.sdk.dir=${{ env.WindowsSdkDir }}' '-Dnar.windows.sdk.version=${{ env.WindowsSDKVersion }}' --batch-mode --errors --update-snapshots verify
|
|
|