Skip to content

Commit

Permalink
Make googletest not be a git submodule, and instead clone it separate…
Browse files Browse the repository at this point in the history
…ly in the CI script (#745)
  • Loading branch information
reunanen authored Dec 9, 2023
1 parent 3e3e3dc commit 69e00c6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/actions_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:
with:
node-version: '16'
- name: Get GoogleTest
run: git submodule update --init
run: |
cd CPP/Tests
git clone https://github.com/google/googletest
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Build
Expand All @@ -32,7 +34,9 @@ jobs:
with:
node-version: '16'
- name: Get GoogleTest
run: git submodule update --init
run: |
cd CPP/Tests
git clone https://github.com/google/googletest
- name: Build
run: |
mkdir CPP/build
Expand All @@ -51,7 +55,9 @@ jobs:
with:
node-version: '16'
- name: Get GoogleTest
run: git submodule update --init
run: |
cd CPP/Tests
git clone https://github.com/google/googletest
- name: Install gcc 11
run: |
sudo apt update
Expand All @@ -75,7 +81,9 @@ jobs:
with:
node-version: '16'
- name: Get GoogleTest
run: git submodule update --init
run: |
cd CPP/Tests
git clone https://github.com/google/googletest
- name: Build
run: |
export CC=/usr/bin/clang
Expand All @@ -96,7 +104,9 @@ jobs:
with:
node-version: '16'
- name: Get GoogleTest
run: git submodule update --init
run: |
cd CPP/Tests
git clone https://github.com/google/googletest
- name: Install clang 13
run: |
wget https://apt.llvm.org/llvm.sh
Expand All @@ -122,7 +132,9 @@ jobs:
with:
node-version: '16'
- name: Get GoogleTest
run: git submodule update --init
run: |
cd CPP/Tests
git clone https://github.com/google/googletest
- name: Build
run: |
mkdir CPP/build
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "CPP/Tests/googletest"]
path = CPP/Tests/googletest
url = https://github.com/google/googletest
1 change: 0 additions & 1 deletion CPP/Tests/googletest
Submodule googletest deleted from 5e6a53

0 comments on commit 69e00c6

Please sign in to comment.