ci: renaming files
This commit is contained in:
42
.github/workflows/amd64_macos_cmake_python.yml
vendored
Normal file
42
.github/workflows/amd64_macos_cmake_python.yml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: amd64 MacOS CMake Python
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
# Building using the github runner environement directly.
|
||||
macos:
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
matrix:
|
||||
build: [
|
||||
["Xcode", "Release", "ALL_BUILD", "RUN_TESTS", "install"],
|
||||
["Unix Makefiles", "Release", "all", "test", "install"]
|
||||
]
|
||||
fail-fast: false
|
||||
env:
|
||||
GENERATOR: ${{ matrix.build[0] }}
|
||||
BUILD_TYPE: ${{ matrix.build[1] }}
|
||||
BUILD_TARGET: ${{ matrix.build[2] }}
|
||||
TEST_TARGET: ${{ matrix.build[3] }}
|
||||
INSTALL_TARGET: ${{ matrix.build[4] }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Swig install
|
||||
run: brew install swig
|
||||
- name: Check swig
|
||||
run: swig -version
|
||||
- name: Update Path
|
||||
run: echo "$HOME/Library/Python/3.11/bin" >> $GITHUB_PATH
|
||||
- name: Check cmake
|
||||
run: cmake --version
|
||||
- name: Configure
|
||||
run: >
|
||||
cmake -S. -Bbuild -G "$GENERATOR" -DCMAKE_BUILD_TYPE="$BUILD_TYPE" -DCMAKE_INSTALL_PREFIX=install
|
||||
-DBUILD_CXX_SAMPLES=OFF -DBUILD_CXX_EXAMPLES=OFF
|
||||
-DBUILD_PYTHON=ON
|
||||
- name: Build
|
||||
run: cmake --build build --config "$BUILD_TYPE" --target "$BUILD_TARGET" -v
|
||||
- name: Test
|
||||
run: CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --config "$BUILD_TYPE" --target "$TEST_TARGET" -v
|
||||
- name: Install
|
||||
run: cmake --build build --config "$BUILD_TYPE" --target "$INSTALL_TARGET" -v
|
||||
Reference in New Issue
Block a user