Skip to content

test github workflow #14

test github workflow

test github workflow #14

Workflow file for this run

name: Build Wheels
on:
push:
branches:
# temp
- TestGithubActions
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build wheel for {{ matrix.os }}, CPython${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
# If true, Github will cancel all other jobs in the matrix if any of them fails
fail-fast: false
matrix:
include:
- os: ubuntu-latest
build_type: [Release]
python: [3.10, 3.11, 3.12]
# MacOS x86_64
#- os: macos-13
# python: [3.10, 3.11, 3.12]
# MacOS ARM64
#- os: macos-14
# python: [3.10, 3.11, 3.12]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-tags: true
- name: Install Conan
run: pip install conan==2.8.1
- name: Get Conan cache path
id: conan-cache-path
run: echo "conan_cache=$(conan config home)" >> $GITHUB_OUTPUT
- name: Cache Conan dependencies
id: cache-conan
uses: actions/cache@v4
env:
cache-name: conan2-cache
with:
path: ${{ steps.conan-cache-path.outputs.conan_cache }}
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/conanfile.txt') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
# Create new Conan profile only if we didn't hit cache
- if: ${{ steps.cache-conan.outputs.cache-hit != 'true' }}
name: Create new Conan profile if no cache was hit
run: conan profile detect
- name: Install dependencies with Conan
run: conan install . --build=missing --output-folder=build
- name: Configure CMake
run: |
cmake -B build -DCMAKE_TOOLCHAIN_FILE=build/conan_toolchain.cmake
- name: Build WallGoCollision
run: |
cmake --build build --config ${{ matrix.build_type }}