-
Notifications
You must be signed in to change notification settings - Fork 12
35 lines (33 loc) · 1.07 KB
/
build-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
name: "Build on macOS"
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
build_config: [Debug, Release]
build_targets:
- cmake_flags: ""
- cmake_flags: -DPOMDOG_USE_ADDRESS_SANITIZER=1
steps:
- name: Check out repositry
uses: actions/checkout@v2
with:
submodules: 'recursive'
fetch-depth: 50
- name: Select Xcode version
run: sudo xcode-select -s '/Applications/Xcode_15.2.app/Contents/Developer'
- name: Show Xcode version
run: xcodebuild -version
- name: Generate Xcode projects
run: cmake -Bbuild/macos -H. -G Xcode ${{ matrix.build_targets.cmake_flags }}
# - name: Clean
# run: xcodebuild -project build/macos/pomdog.xcodeproj clean
- name: Build
run: xcodebuild -project build/macos/pomdog.xcodeproj -configuration ${{ matrix.build_config }}
- name: Run test
run: ./build/macos/test/${{ matrix.build_config }}/pomdog_test