-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.28 KB
/
macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: MacOS
#on:
# release:
# types: [ created ]
on:
push:
branches: [ "1.2.0" ]
env:
BUILD_TYPE: Release
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: MacOS Clang
os: macos-latest
compiler_cc: clang
compiler_cpp: clang++
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install CMake and Ninja
uses: lukka/get-cmake@latest
with:
cmakeVersion: "~3.27.0" # use most recent 3.27.x version
ninjaVersion: "^1.0" # use most recent 1.x version
- name: CMake Setup
run: cmake -S . -B ${{github.workspace}}/build -G Ninja -D CMAKE_C_COMPILER=${{matrix.compiler_cc}} CMAKE_CXX_COMPILER=${{matrix.compiler_cpp}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: CMake Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target caravan
#- name: Rename Executable
# working-directory: ./build
# run: mv caravan caravan_macos_x64
#- name: Upload Executable to Release
# uses: AButler/[email protected]
# with:
# files: ./build/caravan_macos_x64
# repo-token: ${{ secrets.GITHUB_TOKEN }}