Skip to content

Let's try to compile for windows #35

Let's try to compile for windows

Let's try to compile for windows #35

Workflow file for this run

name: binary build
on:
push:
branches: ['*']
pull_request:
branches: ['*']
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-14, ubuntu-24.04-arm, macos-13, windows-latest]
build_type: [Release]
staticcompile: [ON, OFF]
steps:
- uses: actions/checkout@v4
with:
path: project
submodules: 'true'
- name: Build project
run: |
cd project
mkdir -p build && cd build
cmake -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DSTATICCOMPILE=${{ matrix.staticcompile }} -S ..
cmake --build . --config ${{matrix.build_type}} -v
- name: Upload Artifact - LinuxAMD64
if: contains(matrix.os, 'ubuntu') && matrix.staticcompile == 'ON' && !contains(matrix.os, 'arm')
uses: actions/upload-artifact@v4
with:
name: breakid-linux-amd64
path: project/build/breakid
- name: Upload Artifact - LinuxARM64
if: contains(matrix.os, 'ubuntu') && matrix.staticcompile == 'ON' && contains(matrix.os, 'arm')
uses: actions/upload-artifact@v4
with:
name: breakid-linux-arm64
path: project/build/breakid
- name: Upload Artifact - Mac x86_64
if: contains(matrix.os, 'macos-13') && matrix.staticcompile == 'ON'
uses: actions/upload-artifact@v4
with:
name: breakid-mac-x86_64
path: project/build/breakid
- name: Upload Artifact - MacARM64
if: contains(matrix.os, 'macos-14') && matrix.staticcompile == 'ON'
uses: actions/upload-artifact@v4
with:
name: breakid-mac-arm64
path: project/build/breakid
- name: Upload Artifact - Windows
if: contains(matrix.os, 'windows') && matrix.staticcompile == 'ON'
uses: actions/upload-artifact@v4
with:
name: breakid-win64.exe
path: project\build\Release\breakid.exe