Build cimguizmo Libraries #11
This file contains hidden or 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 cimguizmo Libraries | |
on: [workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
arch: x86_64 | |
cmake-arch: x64 | |
- os: ubuntu-latest | |
arch: arm64 | |
cmake-arch: aarch64 | |
- os: windows-latest | |
arch: x86_64 | |
cmake-arch: x64 | |
- os: windows-latest | |
arch: x86 | |
cmake-arch: win32 | |
- os: windows-latest | |
arch: arm64 | |
cmake-arch: arm64 | |
- os: macos-latest | |
arch: x86_64 | |
cmake-arch: x86_64 | |
- os: macos-latest | |
arch: arm64 | |
cmake-arch: arm64 | |
steps: | |
- uses: actions/[email protected] | |
with: | |
repository: 'JunaMeinhold/cimgui' | |
path: 'cimgui' | |
submodules: true | |
- uses: actions/[email protected] | |
with: | |
repository: 'JunaMeinhold/cimguizmo' | |
path: 'cimguizmo' | |
submodules: true | |
- name: Install dependencies on Ubuntu | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y build-essential cmake | |
- name: Install Cross-Compilation Tools for ARM64 | |
if: matrix.os == 'ubuntu-latest' && matrix.arch == 'arm64' | |
run: | | |
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu | |
- name: Configure cimguizmo with CMake for ARM64 on Linux | |
if: matrix.os == 'ubuntu-latest' && matrix.arch == 'arm64' | |
run: cmake -S cimguizmo -B cimguizmo/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DIMGUI_WCHAR32=ON | |
- name: Configure cimguizmo with CMake on Linux (x86_64) | |
if: matrix.os == 'ubuntu-latest' && matrix.arch == 'x86_64' | |
run: cmake -S cimguizmo -B cimguizmo/build -DIMGUI_WCHAR32=ON | |
- name: Configure cimguizmo with CMake for macOS | |
if: matrix.os == 'macos-latest' | |
run: cmake -S cimguizmo -B cimguizmo/build -DCMAKE_OSX_ARCHITECTURES=${{ matrix.cmake-arch }} -DIMGUI_WCHAR32=ON | |
- name: Configure cimguizmo with CMake for Windows | |
if: matrix.os == 'windows-latest' | |
run: cmake -S cimguizmo -B cimguizmo/build -A ${{ matrix.cmake-arch }} -DIMGUI_WCHAR32=ON | |
- name: Build cimguizmo | |
run: cmake --build cimguizmo/build --config Release | |
- name: Move Windows binaries | |
if: matrix.os == 'windows-latest' | |
run: | | |
mv cimguizmo/build/Release/*.dll cimguizmo/build/ | |
- name: Upload Artifacts | |
uses: actions/[email protected] | |
with: | |
name: cimguizmo-${{ matrix.os }}-${{ matrix.arch }}-artifacts | |
path: | | |
cimguizmo/build/*.dll | |
cimguizmo/build/*.so | |
cimguizmo/build/*.dylib | |
if-no-files-found: ignore # 'warn' or 'ignore' or 'error' |