Merge pull request #1011 from dkorolev/fix_gen_current_build #146
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: cmake | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, synchronize] | |
push: | |
branches: | |
- stable | |
jobs: | |
try-cmake: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: git clone | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: run test | |
run: | | |
export TESTDIR="cmake_test_$(date +%s)/deeply/nested/dir" | |
echo "Running in ${TESTDIR}" | |
mkdir -p "${TESTDIR}" | |
cp cmake/Makefile "${TESTDIR}/" | |
cp cmake/CMakeLists.txt "${TESTDIR}/" | |
cp cmake/run-cmake-test.sh "${TESTDIR}/" | |
(cd "${TESTDIR}"; ./run-cmake-test.sh) |