build(deps): bump styfle/cancel-workflow-action from 0.11.0 to 0.12.1 #58
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: mac-x64 | |
on: [push, pull_request] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
BUILD_DIR: mac-x64 | |
GITHUB_ACTION: true | |
jobs: | |
build: | |
runs-on: ${{ matrix.image }} | |
strategy: | |
matrix: | |
image: [ 'macos-latest' ] | |
steps: | |
- name: cancel-previous-runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Install Ninja | |
id: ninja | |
uses: turtlesec-no/get-ninja@main | |
- name: cache-deps | |
id: cache-deps | |
uses: actions/[email protected] | |
with: | |
path: deps | |
key: deps-mac-x64-v2 | |
- name: checkout-and-build-deps | |
if: steps.cache-deps.outputs.cache-hit != 'true' | |
shell: bash | |
run: | | |
pip3 install -r requirements.txt | |
python3 sledpkg_run.py | |
- name: Configure the project | |
working-directory: ${{github.workspace}}/build | |
run: cmake -S .. -B ${{env.BUILD_DIR}} -G Ninja | |
- name: Build | |
working-directory: ${{github.workspace}}/build | |
run: cmake --build ${{env.BUILD_DIR}} | |
- name: Test | |
working-directory: ${{github.workspace}}/build/${{env.BUILD_DIR}} | |
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure | |
- name: Install | |
working-directory: ${{github.workspace}}/build | |
run: cmake --install ${{env.BUILD_DIR}} | |
- name: Upload | |
uses: actions/upload-artifact@v3 | |
with: | |
name: KantuCompareApp-${{runner.os}}-x64 | |
path: ${{github.workspace}}/build/${{env.BUILD_DIR}}/install |