Skip to content

Commit

Permalink
Update macos.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-johansson committed Oct 14, 2023
1 parent eaf0eed commit fbe175a
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [ push ]

env:
VCPKG_ROOT: ${{github.workspace}}/vcpkg
VCPKG_TARGET_TRIPLET: x64-osx
VCPKG_TARGET_TRIPLET: arm64-osx-dynamic
VCPKG_DEFAULT_BINARY_CACHE: ${{github.workspace}}/vcpkg/bincache
VCPKG_CACHE_EDITION: 1

Expand All @@ -22,12 +22,6 @@ jobs:
brew install ninja
brew install pkg-config
- name: Install Boost
id: install-boost
uses: MarkusJx/[email protected]
with:
boost_version: 1.81.0

- name: Cache Vcpkg
id: restore-vcpkg-and-artifacts
uses: actions/cache@v3
Expand All @@ -51,17 +45,18 @@ jobs:
run: mkdir -p ${{env.VCPKG_DEFAULT_BINARY_CACHE}}

- name: Generate build files
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
run: |
mkdir build && cd build
cmake .. -GNinja \
-DCMAKE_BUILD_TYPE=Debug \
-DVCPKG_TARGET_TRIPLET=${{env.VCPKG_TARGET_TRIPLET}}
-DVCPKG_TARGET_TRIPLET=${{env.VCPKG_TARGET_TRIPLET}} \
-DTACTILE_USE_SANITIZERS=OFF \
-DTACTILE_BUILD_TESTS=ON \
--log-level=DEBUG
- name: Build
run: ninja -C build

- name: Run tests
working-directory: ./build/test
run: ./TactileTests
- name: Run core tests
working-directory: ./build/debug/test
run: ./tactile-core-tests

0 comments on commit fbe175a

Please sign in to comment.