This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
Remove header from wpiformat config #984
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [pull_request, push] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-cpp: | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- artifact-name: Native - Windows (CasADi) | |
# FIXME: Tests give "Exit code 0xc0000135" for missing DLLs | |
cmake-flags: "-G \"MinGW Makefiles\" -DBUILD_TESTING=OFF" | |
optimizer_backend: casadi | |
os: windows-2022 | |
- artifact-name: Native - macOS x86_64 (CasADi) | |
cmake-flags: | |
optimizer_backend: casadi | |
os: macOS-13 | |
- artifact-name: Native - macOS arm64 (CasADi) | |
cmake-flags: | |
optimizer_backend: casadi | |
os: macOS-14 | |
- artifact-name: Native - Linux (CasADi) | |
cmake-flags: | |
optimizer_backend: casadi | |
os: ubuntu-latest | |
- artifact-name: Native - Windows (Sleipnir) | |
# FIXME: Tests give "Exit code 0xc0000135" for missing DLLs | |
cmake-flags: "-DBUILD_TESTING=OFF" | |
optimizer_backend: sleipnir | |
os: windows-2022 | |
- artifact-name: Native - macOS x86_64 (Sleipnir) | |
cmake-flags: | |
optimizer_backend: sleipnir | |
os: macOS-13 | |
- artifact-name: Native - macOS arm64 (Sleipnir) | |
cmake-flags: | |
optimizer_backend: sleipnir | |
os: macOS-14 | |
- artifact-name: Native - Linux (Sleipnir) | |
cmake-flags: | |
optimizer_backend: sleipnir | |
os: ubuntu-latest | |
name: "${{ matrix.artifact-name }}" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up MinGW | |
if: matrix.os == 'windows-2022' && matrix.optimizer_backend == 'casadi' | |
run: | | |
choco upgrade mingw --version=11.2.0 -y --no-progress --allow-downgrade | |
echo C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin >> $env:GITHUB_PATH | |
- name: configure | |
run: cmake -B build -S . ${{ matrix.cmake-flags }} -DOPTIMIZER_BACKEND=${{ matrix.optimizer_backend }} -DWITH_JAVA=ON -DJAVA_INSTALL_JAR=OFF | |
- name: build | |
run: cmake --build build --config RelWithDebInfo --parallel $(nproc) | |
- name: test | |
working-directory: build | |
run: ctest -C RelWithDebInfo --output-on-failure | |
- name: install | |
run: cmake --install build --config RelWithDebInfo --prefix pkg | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.artifact-name }} | |
path: pkg | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.artifact-name }}-java-libraries | |
path: java/src/main/resources | |
build-wasm: | |
name: "Wasm" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup emscripten | |
uses: numworks/setup-emscripten@latest | |
- name: configure | |
run: emcmake cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DOPTIMIZER_BACKEND=sleipnir | |
- name: build | |
run: cmake --build build --config Release --parallel $(nproc) | |
- name: install | |
run: cmake --install build --config Release --prefix pkg | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Wasm | |
path: pkg | |
collect-java-native-libs: | |
strategy: | |
fail-fast: false | |
needs: build-cpp | |
name: Collect Java Native Libs | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: Native - Windows (CasADi)-java-libraries | |
path: java/src/main/resources | |
- uses: actions/download-artifact@v4 | |
with: | |
name: Native - macOS x86_64 (CasADi)-java-libraries | |
path: java/src/main/resources | |
- uses: actions/download-artifact@v4 | |
with: | |
name: Native - macOS arm64 (CasADi)-java-libraries | |
path: java/src/main/resources | |
- uses: actions/download-artifact@v4 | |
with: | |
name: Native - Linux (CasADi)-java-libraries | |
path: java/src/main/resources | |
- run: cd java/src/main/resources/osx;ls | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: all-java-libraries | |
path: java/src/main/resources |