Skip to content

Update cross compile job #100

Update cross compile job

Update cross compile job #100

Workflow file for this run

name: build
on: [push, pull_request]
env:
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
jobs:
ubuntu:
runs-on: [ubuntu-latest]
strategy:
fail-fast: false
matrix:
include:
- profile: x86
packages: g++-multilib
- profile: x86_64
packages: g++-
- profile: armhf
packages: g++-arm-linux-gnueabihf
- profile: aarch64
packages: g++-aarch64-linux-gnu
- profile: riscv64
packages: g++-riscv64-linux-gnu
- profile: ppc64
packages: g++-powerpc64le-linux-gnu
- profile: mingw32
packages: g++-mingw-w64-i686
- profile: mingw64
packages: g++-mingw-w64-x86-64
- profile: mingwaarch64
packages: clang
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
- run: sudo apt-get update && sudo apt-get install socat ${{ matrix.packages }}
- run: mvn -P "${{ matrix.profile }}" --batch-mode
macos:
runs-on: [macos-latest]
strategy:
fail-fast: false
matrix:
include:
- profile: aarch64
macos-deployment-target: 11.0
sdk-version: MacOSX11.0.sdk
- profile: x86_64
macos-deployment-target: 10.8
sdk-version: MacOSX10.9.sdk
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
- run: brew install socat
- name: Get oldest supported SDK
run: |
wget -qO- https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/${{ matrix.sdk-version }}.tar.xz \
| tar -xjv -C $XCODE_16_DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs
- name: Set SDK version
run: |
export MACOSX_DEPLOYMENT_TARGET=${{ matrix.macos-deployment-target }}
export SDKROOT=$XCODE_16_DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/${{ matrix.sdk-version }}
export CMAKE_OSX_SYSROOT=$SDKROOT
echo "MACOSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET" >> $GITHUB_ENV
echo "SDKROOT=$SDKROOT" >> $GITHUB_ENV
echo "CMAKE_OSX_SYSROOT=$CMAKE_OSX_SYSROOT" >> $GITHUB_ENV
- run: mvn -P "${{ matrix.profile }}" --batch-mode
windows:
runs-on: [windows-latest]
strategy:
fail-fast: false
matrix:
include:
- profile: aarch64
- profile: x86_64
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
- run: mvn -P "${{ matrix.profile }}" --batch-mode