Skip to content

Commit

Permalink
ci: upload native binaries as artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
axxel committed Feb 2, 2024
1 parent 66b47cc commit 5700739
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,19 @@ jobs:
- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all subsequent commands
run: cmake -E make_directory ${{runner.workspace}}/build
run: |
cmake -E make_directory ${{runner.workspace}}/build
cmake -E make_directory ${{runner.workspace}}/install
- name: Configure CMake
working-directory: ${{runner.workspace}}/build
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_BLACKBOX_TESTS=ON -DBUILD_UNIT_TESTS=ON -DBUILD_PYTHON_MODULE=ON -DBUILD_C_API=ON
run: >
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_BLACKBOX_TESTS=ON
-DBUILD_UNIT_TESTS=ON -DBUILD_PYTHON_MODULE=ON -DBUILD_C_API=ON
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install
- name: Build
working-directory: ${{runner.workspace}}/build
Expand All @@ -54,6 +59,16 @@ jobs:
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -V -C $BUILD_TYPE

- name: Install
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --install . --config $BUILD_TYPE

- uses: actions/upload-artifact@v4
with:
name: ${{matrix.os}}-artifacts
path: ${{runner.workspace}}/install

build-ubuntu-sanitize:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 5700739

Please sign in to comment.