Skip to content

maybe its there?

maybe its there? #19

Workflow file for this run

name: Build Binaries for Multiple Architectures
on:
push:
branches:
- main
jobs:
build:
strategy:
matrix:
include:
- os: windows-latest
compiler: i686-w64-mingw32-g++
version: 13.2.0
binary: ./build/dptsp.dll
upload_name: x86_64_dptsp.dll
flag: -DCMAKE_CXX_FLAGS="-m32" -G 'MinGW Makefiles'
bit: 32
- os: windows-latest
compiler: g++
version: 13.2.0
binary: ./build/dptsp.dll
upload_name: x64_dptsp.dll
flag: -DCMAKE_CXX_FLAGS="-m64" -G 'MinGW Makefiles'
- os: ubuntu-24.04
compiler: g++-14
package: gcc-14 gcc-14-multilib g++-14-multilib libc6-dev-i386
binary: ./build/libdptsp.so
upload_name: x86_64_libdptsp.so
flag: -DCMAKE_CXX_FLAGS="-m32"
- os: ubuntu-24.04
compiler: g++-14
package: gcc-14
binary: ./build/libdptsp.so
upload_name: x64_libdptsp.so
flag: -DCMAKE_CXX_FLAGS="-m64"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies (Windows)
if: runner.os == 'Windows' && matrix.name
run: choco install ${{ matrix.name }} --version ${{ matrix.version }}
- name: Install dependencies (macOS)
if: runner.os == 'macOS' && matrix.package
run: brew install ${{ matrix.package }}
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: sudo apt-get install ${{ matrix.package }}
- name: Build
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=${{ matrix.compiler}} ${{matrix.flag}} ..
cmake --build ./
- name: Upload Build Artifact
uses: actions/upload-artifact@v4.6.2
with:
name: ${{ matrix.upload_name }}
path: ${{ matrix.binary }}