From 8b0b3cba3cbf669cfa02b2e6777f589e23c3a4d4 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Mon, 18 Mar 2024 10:33:01 +1300 Subject: [PATCH] CICD: Add Downloader Build to the CI Pipeline. Add a build for subsurface-downloader to the CI pipeline. The artifact is currently not used, but this will ensure pull requests breaking the downloader are spotted before they are merged. Signed-off-by: Michael Keller --- .github/workflows/linux-jammy-5.15.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/linux-jammy-5.15.yml b/.github/workflows/linux-jammy-5.15.yml index f904126ef..c88e76afa 100644 --- a/.github/workflows/linux-jammy-5.15.yml +++ b/.github/workflows/linux-jammy-5.15.yml @@ -22,6 +22,8 @@ jobs: uses: actions/checkout@v1 - name: get container ready for build + env: + SUBSURFACE_REPO_PATH: ${{ github.workspace }} run: | echo "--------------------------------------------------------------" echo "update distro and install dependencies" @@ -39,21 +41,20 @@ jobs: qtpositioning5-dev qtscript5-dev qttools5-dev qttools5-dev-tools \ qtquickcontrols2-5-dev xvfb libbluetooth-dev libmtp-dev + git config --global user.email "ci@subsurface-divelog.org" + git config --global user.name "Subsurface CI" + git config --global --add safe.directory ${SUBSURFACE_REPO_PATH} + git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}/libdivecomputer + - name: store dummy version and build number for test build run: | echo "100" > latest-subsurface-buildnumber echo "CICD-test-build" > latest-subsurface-buildnumber-extension - - name: build Subsurface-mobile - env: - SUBSURFACE_REPO_PATH: ${{ github.workspace }} + - name: build subsurface-mobile run: | echo "--------------------------------------------------------------" echo "building mobile" - git config --global user.email "ci@subsurface-divelog.org" - git config --global user.name "Subsurface CI" - git config --global --add safe.directory ${SUBSURFACE_REPO_PATH} - git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}/libdivecomputer cd .. bash -e -x subsurface/scripts/build.sh -mobile @@ -83,3 +84,10 @@ jobs: # xvfb-run --auto-servernum ./TestGitStorage -v2 xvfb-run --auto-servernum make check + - name: build subsurface-downloader + run: | + echo "--------------------------------------------------------------" + echo "building downloader" + cd .. + bash -e -x subsurface/scripts/build.sh -downloader +