Skip to content

Commit

Permalink
Update cmake-multi-platform.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SunBeau authored Apr 11, 2024
1 parent 1d288eb commit 342138b
Showing 1 changed file with 7 additions and 28 deletions.
35 changes: 7 additions & 28 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest --build-config ${{ matrix.build_type }}

build-test-on-centos7:
build-test-on-centos7-latest:
name: centos:7-latest
runs-on: ubuntu-latest
container:
Expand All @@ -66,38 +66,17 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: intall deps
- name: Intall Deps
run: |
yum install -y wget tar gcc automake autoconf libtool make cmake
- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Configure CMake
- name: Configure CMake And Build
working-directory: ${{ github.workspace }}
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: |
mkdir build
cd build
cmake ..
make
make install
mkdir build && cd build
cmake .. && make && make install
- name: Build
- name: Test
working-directory: ${{ github.workspace }}
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: |
cd build
make
make install
- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest --build-config ${{ matrix.build_type }}
echo "TODO"

0 comments on commit 342138b

Please sign in to comment.