Build 32 bit natives with GitHub Actions

master
Graham 1 year ago
parent 7db03e3572
commit 01f2d5bdcf
  1. 11
      .github/workflows/build.yaml

@ -4,10 +4,18 @@ jobs:
build: build:
strategy: strategy:
matrix: matrix:
arch:
- x64
- x86
os: os:
- macos - macos
- ubuntu - ubuntu
- windows - windows
exclude:
- arch: x86
os: macos
- arch: x86
os: ubuntu
runs-on: ${{ matrix.os }}-latest runs-on: ${{ matrix.os }}-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -15,6 +23,7 @@ jobs:
with: with:
distribution: temurin distribution: temurin
java-version: 11 java-version: 11
architecture: ${{ matrix.arch }}
cache: maven cache: maven
- if: matrix.os == 'ubuntu' - if: matrix.os == 'ubuntu'
uses: awalsh128/cache-apt-pkgs-action@v1 uses: awalsh128/cache-apt-pkgs-action@v1
@ -22,6 +31,8 @@ jobs:
packages: libgl1-mesa-dev packages: libgl1-mesa-dev
- if: matrix.os == 'windows' - if: matrix.os == 'windows'
uses: ilammy/msvc-dev-cmd@v1 uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- if: matrix.os == 'windows' - if: matrix.os == 'windows'
run: echo '${{ env.VCToolsVersion }}' > '${{ env.VCInstallDir }}\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt' 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 - 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

Loading…
Cancel
Save