Skip to content

Commit

Permalink
ci: pull submoudules before build
Browse files Browse the repository at this point in the history
  • Loading branch information
Zncl2222 committed Jun 9, 2024
1 parent 8bf3e05 commit a8b9862
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: sudo apt-get update && sudo apt-get install -y valgrind
- run: git submodule update --init --recursive

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
Expand All @@ -42,6 +43,8 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Pull Submodule
run: git submodule update --init --recursive
- name: build and test
run: |
.\cmake_build.bat
2 changes: 2 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Pull Submodule
run: git submodule update --init --recursive
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- name: Pull Submodule
run: git submodule update --init --recursive
- name: Build DLL & Set file name windows
if: matrix.runs-on == 'windows-latest'
shell: pwsh
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- name: Pull Submodule
run: git submodule update --init --recursive
- name: Build DLL & Set file name windows
if: matrix.runs-on == 'windows-latest'
shell: pwsh
Expand Down Expand Up @@ -111,6 +113,8 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Pull Submodule
run: git submodule update --init --recursive
- name: Set up Python 3.8 for gcovr
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -165,6 +169,8 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Pull Submodule
run: git submodule update --init --recursive
- name: build and test
run: |
.\cmake_build.bat
Expand Down Expand Up @@ -212,6 +218,8 @@ jobs:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Install sonar-scanner and build-wrapper
uses: SonarSource/sonarcloud-github-c-cpp@v2
- name: Pull Submodule
run: git submodule update --init --recursive
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Run build-wrapper
Expand Down

0 comments on commit a8b9862

Please sign in to comment.