macOS 13 #3
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
name: macOS 13 | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '34 19 * * 0' | |
jobs: | |
build: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
mirror: http://mirrors.ocf.berkeley.edu/qt/ | |
- name: Get all repositories | |
run: | | |
git clone https://github.com/jhu-cisst/cisst-saw --recursive ${{github.workspace}}/cisst-saw | |
cd ${{github.workspace}}/cisst-saw | |
git submodule foreach git checkout devel | |
git submodule foreach git submodule init | |
git submodule foreach git submodule update | |
- name: Create cisstNetlib build directory | |
run: | | |
cmake -E make_directory ${{github.workspace}}/cisstNetlib-build | |
- name: Build cisstNetlib | |
working-directory: ${{github.workspace}}/cisstNetlib-build | |
run: | | |
cmake ${{github.workspace}}/cisst-saw/cisstNetlib -DcisstNetlib_LANGUAGE=C | |
cmake --build . --config Release | |
sudo cmake --build . --target install | |
- name: Create Build Environment | |
run: cmake -E make_directory ${{github.workspace}}/build | |
- name: Configure CMake | |
shell: bash | |
working-directory: ${{github.workspace}}/build | |
run: | | |
cmake ${{github.workspace}}/cisst-saw -DCMAKE_BUILD_TYPE=Release -C ${{github.workspace}}/.github/workflows/cmake-macos-cache.cmake | |
cmake ${{github.workspace}}/cisst-saw | |
- name: Build | |
working-directory: ${{github.workspace}}/build | |
shell: bash | |
run: | | |
cmake --build . --config Release |