-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test the case of using local packages on macOS CI (#635)
* Test the case of using local packages on CI * Remove unused matrix from Linux CI * Link libarchive * Add PKG_CONFIG_PATH * Remove CPM_LOCAL_PACKAGES_ONLY
- Loading branch information
1 parent
6dc9fe3
commit a778480
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ jobs: | |
matrix: | ||
os: [ macos-11, macos-12 ] | ||
build_type: [ Debug, Release ] | ||
use_local: [ on, off ] | ||
env: | ||
CACHE_KEY_PREFIX: v2-${{ github.ref }}-${{ matrix.os }}-${{ matrix.build_type }} | ||
steps: | ||
|
@@ -22,6 +23,10 @@ jobs: | |
- name: Install required libraries | ||
run: brew install openssl ninja boost | ||
|
||
- name: Install optional libraries | ||
if: matrix.use_local == 'on' | ||
run: brew install libarchive libgit2 fmt spdlog | ||
|
||
- name: Restore & Cache CMake build results | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -33,8 +38,9 @@ jobs: | |
cmake \ | ||
-B build \ | ||
-G Ninja \ | ||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | ||
-DPOAC_BUILD_TESTING=ON \ | ||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | ||
-DCPM_USE_LOCAL_PACKAGES=${{ matrix.use_local }} | ||
- name: Build Poac | ||
run: ninja | ||
|