Skip to content

Commit

Permalink
Fix broken main build
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-jung committed Sep 5, 2022
1 parent 62b090d commit eb297f8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ctest_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,15 @@ jobs:
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get install -y gcc-11 g++-11 clang-14 libclang-cpp14-dev libclang-14-dev ninja-build
sudo apt-get install curl zip unzip tar pkg-config python3.10-venv flex bison git
- name: Set SHA to fetch
run: echo "SHA=${{github.event.pull_request.head.sha}}" >> $GITHUB_ENV
if: ${{ github.event_name == 'pull_request'}}

- name: Set SHA to fetch
run: echo "SHA=${{github.sha}}" >> $GITHUB_ENV
if: ${{ github.event_name == 'push'}}

- name: Create CMakeLists.txt
run: |
cat <<EOF > CMakeLists.txt
Expand All @@ -68,7 +76,7 @@ jobs:
FetchContent_Declare(
tsmp
GIT_REPOSITORY https://github.com/fabian-jung/tsmp.git
GIT_TAG $GITHUB_HEAD_REF
GIT_TAG ${SHA}
)
FetchContent_Declare(
catch2
Expand All @@ -86,6 +94,9 @@ jobs:
catch_discover_tests(main)
EOF
- name: Cat CMakeLists.txt
run: cat CMakeLists.txt

- name: Create Test
run: |
cat <<EOF > main.cpp
Expand Down

0 comments on commit eb297f8

Please sign in to comment.