mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-19 03:20:11 +03:00
chore(build): add macOS to build matrix
This commit is contained in:
parent
0af0a71d7d
commit
5efdfe3d22
18
.github/workflows/pr.yml
vendored
18
.github/workflows/pr.yml
vendored
@ -14,11 +14,19 @@ jobs:
|
||||
- name: Ubuntu Latest (GCC)
|
||||
os: ubuntu-latest
|
||||
build_type: Release
|
||||
cc: "gcc"
|
||||
cxx: "g++"
|
||||
test_path: WhoaTest
|
||||
cc: gcc
|
||||
cxx: g++
|
||||
|
||||
- name: macOS Latest (Clang)
|
||||
os: macos-latest
|
||||
build_type: Release
|
||||
test_path: WhoaTest
|
||||
cc: clang
|
||||
cxx: clang++
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
@ -29,7 +37,7 @@ jobs:
|
||||
run: cd build && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }}
|
||||
|
||||
- name: Build
|
||||
run: cd build && make install
|
||||
run: cmake --build build --config ${{ matrix.config.build_type }}
|
||||
|
||||
- name: Test
|
||||
run: cd build && ./dist/bin/WhoaTest
|
||||
run: ./build/bin/${{ matrix.config.test_path }}
|
||||
|
18
.github/workflows/push.yml
vendored
18
.github/workflows/push.yml
vendored
@ -17,11 +17,19 @@ jobs:
|
||||
- name: Ubuntu Latest (GCC)
|
||||
os: ubuntu-latest
|
||||
build_type: Release
|
||||
cc: "gcc"
|
||||
cxx: "g++"
|
||||
test_path: WhoaTest
|
||||
cc: gcc
|
||||
cxx: g++
|
||||
|
||||
- name: macOS Latest (Clang)
|
||||
os: macos-latest
|
||||
build_type: Release
|
||||
test_path: WhoaTest
|
||||
cc: clang
|
||||
cxx: clang++
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
@ -32,7 +40,7 @@ jobs:
|
||||
run: cd build && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }}
|
||||
|
||||
- name: Build
|
||||
run: cd build && make install
|
||||
run: cmake --build build --config ${{ matrix.config.build_type }}
|
||||
|
||||
- name: Test
|
||||
run: cd build && ./dist/bin/WhoaTest
|
||||
run: ./build/bin/${{ matrix.config.test_path }}
|
||||
|
Loading…
Reference in New Issue
Block a user