From 720a1e0db854022fe8befd9f2fc233dae321a8b5 Mon Sep 17 00:00:00 2001 From: Sergey Hovakimyan Date: Wed, 10 Jul 2024 13:14:31 +0400 Subject: [PATCH] adds submodules cloning for github actions --- .../workflows/nightly_Linux_distributions.yml | 2 ++ .github/workflows/on_PR_linux_matrix.yml | 2 ++ .github/workflows/on_PR_linux_special_builds.yml | 9 +++++++++ .github/workflows/on_PR_linux_staticAnalysis.yml | 1 + .github/workflows/on_PR_mac_matrix.yml | 2 ++ .github/workflows/on_PR_mac_special_builds.yml | 2 ++ .github/workflows/on_PR_meson.yaml | 16 ++++++++++++++++ .github/workflows/on_PR_windows_matrix.yml | 6 ++++++ .github/workflows/on_push_BasicWinLinMac.yml | 6 ++++++ .github/workflows/on_push_ExtraJobsForMain.yml | 2 ++ .github/workflows/on_push_clang_format.yml | 2 ++ .github/workflows/release.yml | 6 ++++++ 12 files changed, 56 insertions(+) diff --git a/.github/workflows/nightly_Linux_distributions.yml b/.github/workflows/nightly_Linux_distributions.yml index 0f1ae1c978..eb2dc3917f 100644 --- a/.github/workflows/nightly_Linux_distributions.yml +++ b/.github/workflows/nightly_Linux_distributions.yml @@ -34,6 +34,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Install dependencies run: ./ci/install_dependencies.sh - name: Build and install diff --git a/.github/workflows/on_PR_linux_matrix.yml b/.github/workflows/on_PR_linux_matrix.yml index 1cffe14d59..96cd49394b 100644 --- a/.github/workflows/on_PR_linux_matrix.yml +++ b/.github/workflows/on_PR_linux_matrix.yml @@ -22,6 +22,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Install dependencies run: | diff --git a/.github/workflows/on_PR_linux_special_builds.yml b/.github/workflows/on_PR_linux_special_builds.yml index 64d9864d85..566b99c3a2 100644 --- a/.github/workflows/on_PR_linux_special_builds.yml +++ b/.github/workflows/on_PR_linux_special_builds.yml @@ -18,6 +18,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + submodules: true fetch-depth: 2 # Trying to deal with warning: -> Issue detecting commit SHA. Please run actions/checkout with fetch-depth > 1 or set to 0 @@ -65,6 +66,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Install dependencies run: | @@ -100,6 +103,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Install dependencies run: | @@ -134,6 +139,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Install dependencies run: | @@ -156,6 +163,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Install dependencies run: | diff --git a/.github/workflows/on_PR_linux_staticAnalysis.yml b/.github/workflows/on_PR_linux_staticAnalysis.yml index fa77859c9a..0c71e2682f 100644 --- a/.github/workflows/on_PR_linux_staticAnalysis.yml +++ b/.github/workflows/on_PR_linux_staticAnalysis.yml @@ -18,6 +18,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + submodules: true fetch-depth: 2 # Trying to deal with warning: -> Issue detecting commit SHA. Please run actions/checkout with fetch-depth > 1 or set to 0 diff --git a/.github/workflows/on_PR_mac_matrix.yml b/.github/workflows/on_PR_mac_matrix.yml index ef5d2286d7..d1bcb0d4ba 100644 --- a/.github/workflows/on_PR_mac_matrix.yml +++ b/.github/workflows/on_PR_mac_matrix.yml @@ -22,6 +22,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Install dependencies run: | diff --git a/.github/workflows/on_PR_mac_special_builds.yml b/.github/workflows/on_PR_mac_special_builds.yml index f03bf0b02c..2461acf2c5 100644 --- a/.github/workflows/on_PR_mac_special_builds.yml +++ b/.github/workflows/on_PR_mac_special_builds.yml @@ -17,6 +17,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Install dependencies run: | diff --git a/.github/workflows/on_PR_meson.yaml b/.github/workflows/on_PR_meson.yaml index d859195d12..71bd7fcf69 100644 --- a/.github/workflows/on_PR_meson.yaml +++ b/.github/workflows/on_PR_meson.yaml @@ -16,6 +16,8 @@ jobs: deps: ['forcefallback', 'default'] steps: - uses: actions/checkout@v4 + with: + submodules: true - uses: egor-tensin/setup-gcc@v1 with: version: ${{matrix.cxx}} @@ -35,6 +37,8 @@ jobs: deps: ['forcefallback', 'default'] steps: - uses: actions/checkout@v4 + with: + submodules: true - uses: egor-tensin/setup-clang@v1 with: version: ${{matrix.cxx}} @@ -58,6 +62,8 @@ jobs: platform: ['x64', 'x86'] steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Install packages run: | @@ -80,6 +86,8 @@ jobs: deps: ['forcefallback', 'default'] steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Install packages run: | @@ -107,6 +115,8 @@ jobs: shell: msys2 {0} steps: - uses: actions/checkout@v4 + with: + submodules: true - uses: msys2/setup-msys2@v2 with: @@ -134,6 +144,8 @@ jobs: deps: ['enabled', 'disabled'] steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Install packages run: | @@ -148,6 +160,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + submodules: true - uses: vmactions/freebsd-vm@v1 with: prepare: | @@ -160,6 +174,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Install packages run: | python3 -m pip install meson ninja diff --git a/.github/workflows/on_PR_windows_matrix.yml b/.github/workflows/on_PR_windows_matrix.yml index ebdee20809..93c9727d90 100644 --- a/.github/workflows/on_PR_windows_matrix.yml +++ b/.github/workflows/on_PR_windows_matrix.yml @@ -30,6 +30,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Set up Visual Studio shell uses: ilammy/msvc-dev-cmd@v1 @@ -94,6 +96,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Set up MSYS2 uses: msys2/setup-msys2@v2 @@ -150,6 +154,8 @@ jobs: - run: git config --global core.autocrlf input shell: pwsh - uses: actions/checkout@v4 + with: + submodules: true - name: Set up Cygwin uses: cygwin/cygwin-install-action@v4 diff --git a/.github/workflows/on_push_BasicWinLinMac.yml b/.github/workflows/on_push_BasicWinLinMac.yml index 533cb614de..447a83a2ba 100644 --- a/.github/workflows/on_push_BasicWinLinMac.yml +++ b/.github/workflows/on_push_BasicWinLinMac.yml @@ -21,6 +21,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Set up Visual Studio shell uses: ilammy/msvc-dev-cmd@v1 @@ -57,6 +59,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Install dependencies run: | @@ -91,6 +95,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Install dependencies run: | diff --git a/.github/workflows/on_push_ExtraJobsForMain.yml b/.github/workflows/on_push_ExtraJobsForMain.yml index a40a9ff4bd..8145e6e67a 100644 --- a/.github/workflows/on_push_ExtraJobsForMain.yml +++ b/.github/workflows/on_push_ExtraJobsForMain.yml @@ -21,6 +21,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Install dependencies run: | diff --git a/.github/workflows/on_push_clang_format.yml b/.github/workflows/on_push_clang_format.yml index 3516d6804d..858ecd02d0 100644 --- a/.github/workflows/on_push_clang_format.yml +++ b/.github/workflows/on_push_clang_format.yml @@ -8,6 +8,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + submodules: true - uses: DoozyX/clang-format-lint-action@v0.17 with: source: '.' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 375bae91d7..596d84805e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,6 +21,8 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Install dependencies run: | @@ -58,6 +60,8 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Install dependencies run: | @@ -96,6 +100,8 @@ jobs: runs-on: windows-2022 steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Set up Visual Studio shell uses: ilammy/msvc-dev-cmd@v1