1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Fix build on macos

It was broken by a110b42011.

In addition, adjust the CI definition to test builds on macOS.
This commit is contained in:
Simonas Kazlauskas
2020-06-20 20:04:15 +03:00
parent 5ccd62ced8
commit b03da81afa
3 changed files with 26 additions and 10 deletions
+17 -9
View File
@@ -9,22 +9,30 @@ on:
jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- name: Install libraries
- name: Install linux libraries
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get update && sudo apt-get -y install libglfw3-dev libgtk2.0-dev libcapstone-dev
- name: Install macos libraries
if: ${{ matrix.os == 'macOS-latest' }}
run: brew install capstone tbb pkg-config glfw
- name: Profiler GUI
run: make -C profiler/build/unix debug release
run: make -j -C profiler/build/unix debug release
- name: Update utility
run: make -C update/build/unix debug release
run: make -j -C update/build/unix debug release
- name: Capture utility
run: make -C capture/build/unix debug release
run: make -j -C capture/build/unix debug release
- name: Library
run: make -C library/unix debug release
run: make -j -C library/unix debug release
- name: Test application
run: |
make -C test
make -C test clean
make -C test TRACYFLAGS=-DTRACY_ON_DEMAND
make -j -C test
make -j -C test clean
make -j -C test TRACYFLAGS=-DTRACY_ON_DEMAND