Added CMakeLists.txt
and Makefile
for clean & fast builds of external projects that use Current.
#9
Workflow file for this run
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] | |
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)" | |
echo "Running in ${TESTDIR}" | |
mkdir "${TESTDIR}" | |
cp cmake/Makefile "${TESTDIR}/" | |
cp cmake/CMakeLists.txt "${TESTDIR}/" | |
cp cmake/run-cmake-test.sh "${TESTDIR}/" | |
(cd "${TESTDIR}"; ./run-cmake-test.sh) |