diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-06 14:01:39 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-07 15:21:40 +0200 |
commit | a2ba9119c6b20d227f75e9a3427df06b4923ee89 (patch) | |
tree | e646807d3bb8cb735c7d0928f80adfe699620c0d /.github | |
parent | f10259aa3b5051e4b36b4e0fd2f2d0db06fb7c20 (diff) | |
download | libquotient-a2ba9119c6b20d227f75e9a3427df06b4923ee89.tar.gz libquotient-a2ba9119c6b20d227f75e9a3427df06b4923ee89.zip |
CI: use GTAD submodule
Also: make all cloning for update-api shallow, for optimisation.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dac67b3b..9c777cbc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -175,14 +175,13 @@ jobs: cmake -S qtkeychain -B qtkeychain/build $CMAKE_ARGS cmake --build qtkeychain/build --target install - - name: Pull CS API and build GTAD + - name: get CS API definitions; clone and build GTAD if: matrix.update-api - working-directory: ${{ runner.workspace }} run: | - git clone https://github.com/quotient-im/matrix-spec.git - git clone --recursive https://github.com/KitsuneRal/gtad.git - cmake -S gtad -B build/gtad $CMAKE_ARGS -DBUILD_SHARED_LIBS=OFF - cmake --build build/gtad + git clone --depth=1 https://github.com/quotient-im/matrix-spec.git ../matrix-spec + git submodule update --init --recursive --depth=1 + cmake -S gtad/gtad -B ../build/gtad $CMAKE_ARGS -DBUILD_SHARED_LIBS=OFF + cmake --build ../build/gtad echo "CMAKE_ARGS=$CMAKE_ARGS -DMATRIX_SPEC_PATH=${{ runner.workspace }}/matrix-spec \ -DGTAD_PATH=${{ runner.workspace }}/build/gtad/gtad" \ >>$GITHUB_ENV |