-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Jackson <[email protected]>
- Loading branch information
1 parent
3a1e77e
commit 17da945
Showing
1 changed file
with
70 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: macos | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
- master | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
|
||
jobs: | ||
build: | ||
env: | ||
VCPKG_BINARY_SOURCES: 'clear;nuget,GitHub,readwrite' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- macos-14 | ||
runs-on: ${{matrix.os}} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: actions/checkout@v4 | ||
- name: Checkout VCPKG | ||
run: | | ||
git clone https://www.github.com/microsoft/vcpkg && cd vcpkg && ./bootstrap-vcpkg.sh | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install sphinx myst-parser sphinx-markdown-tables sphinx_rtd_theme numpy | ||
- name: Add C++ Problem Matcher | ||
uses: ammaraskar/[email protected] | ||
- name: Install Dependencies - 2 | ||
run: | | ||
brew install ninja | ||
- name: Install Sphinx | ||
run: | | ||
sudo pip3 install sphinx myst-parser sphinx-markdown-tables sphinx_rtd_theme numpy | ||
- name: Setup NuGet Credentials | ||
shell: bash | ||
run: | | ||
mono `${{github.workspace}}/vcpkg/vcpkg fetch nuget | tail -n 1` \ | ||
sources add \ | ||
-source "https://nuget.pkg.github.com/BlueQuartzSoftware/index.json" \ | ||
-storepasswordincleartext \ | ||
-name "GitHub" \ | ||
-username "BlueQuartzSoftware" \ | ||
-password "${{secrets.GITHUB_TOKEN}}" | ||
mono `${{github.workspace}}/vcpkg/vcpkg fetch nuget | tail -n 1` \ | ||
setapikey "${{secrets.GITHUB_TOKEN}}" \ | ||
-source "https://nuget.pkg.github.com/BlueQuartzSoftware/index.json" | ||
- name: Configure | ||
run: | | ||
export PATH=$PATH:${{github.workspace}}/vcpkg; export VCPKG_INSTALLATION_ROOT=${{github.workspace}}/vcpkg; cmake --preset ci-macos-arm64 ${{github.workspace}} | ||
- name: Build | ||
run: | | ||
export PATH=$PATH:${{github.workspace}}/vcpkg; export VCPKG_INSTALLATION_ROOT=${{github.workspace}}/vcpkg; cmake --build --preset ci-macos-arm64 | ||
- name: Test | ||
run: | | ||
export PATH=$PATH:${{github.workspace}}/vcpkg; export VCPKG_INSTALLATION_ROOT=${{github.workspace}}/vcpkg; ctest --preset ci-macos-arm64 |