trying automation

This commit is contained in:
cmclark00 2024-08-13 21:37:50 -04:00
parent 499cf67ff2
commit 0dcad8e27a

67
.github/workflows/workflow.yml vendored Normal file
View file

@ -0,0 +1,67 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-linux:
name: Build on Linux
runs-on: ubuntu-latest
strategy:
matrix:
arch: [x64, arm64]
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Install Dependencies
run: sudo apt-get install -y cmake make gcc g++ libssl-dev
- name: Build
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc
make
build-macos:
name: Build on macOS
runs-on: macos-latest
strategy:
matrix:
arch: [x64, arm64]
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: brew install cmake
- name: Build
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=$(if [ "${{ matrix.arch }}" == "x64" ]; then echo "x86_64"; else echo "arm64"; fi)
make
build-windows:
name: Build on Windows
runs-on: windows-latest
strategy:
matrix:
arch: [x64, arm64]
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: |
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
choco install mingw
- name: Build
run: |
mkdir build
cd build
cmake .. -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release
mingw32-make