build: fix sanity GitHub action (#3316)

* build: fix Sanity GitHub action

* build: CI triggers now look for xcode changes
This commit is contained in:
Charles Kerr 2022-06-17 16:52:39 -05:00 committed by GitHub
parent 25fdb5805c
commit eb36788253
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 15 deletions

View File

@ -43,19 +43,19 @@ jobs:
id: check-diffs
run: |
set +e
git -C "${GITHUB_WORKSPACE}/src" diff --quiet origin/main -- CMakeLists.txt third-party libtransmission cli
git -C "${GITHUB_WORKSPACE}/src" diff --quiet origin/main -- CMakeLists.txt Transmission.xcodeproj third-party libtransmission cli
echo "::set-output name=cli-changed::$?"
git -C "${GITHUB_WORKSPACE}/src" diff --quiet origin/main -- CMakeLists.txt third-party libtransmission cli daemon gtk macos qt utils tests web
git -C "${GITHUB_WORKSPACE}/src" diff --quiet origin/main -- CMakeLists.txt Transmission.xcodeproj libtransmission cli daemon gtk macos qt utils tests web third-party
echo "::set-output name=any-code-changed::$?"
git -C "${GITHUB_WORKSPACE}/src" diff --quiet origin/main -- CMakeLists.txt libtransmission cli daemon gtk macos qt utils tests web
git -C "${GITHUB_WORKSPACE}/src" diff --quiet origin/main -- CMakeLists.txt Transmission.xcodeproj libtransmission cli daemon gtk macos qt utils tests web
echo "::set-output name=our-code-changed::$?"
git -C "${GITHUB_WORKSPACE}/src" diff --quiet origin/main -- CMakeLists.txt third-party libtransmission daemon
git -C "${GITHUB_WORKSPACE}/src" diff --quiet origin/main -- CMakeLists.txt Transmission.xcodeproj third-party libtransmission daemon
echo "::set-output name=daemon-changed::$?"
git -C "${GITHUB_WORKSPACE}/src" diff --quiet origin/main -- docs
echo "::set-output name=docs-changed::$?"
git -C "${GITHUB_WORKSPACE}/src" diff --quiet origin/main -- CMakeLists.txt third-party libtransmission gtk
echo "::set-output name=gtk-changed::$?"
git -C "${GITHUB_WORKSPACE}/src" diff --quiet origin/main -- CMakeLists.txt third-party libtransmission macosx Transmission.xcodeproj
git -C "${GITHUB_WORKSPACE}/src" diff --quiet origin/main -- CMakeLists.txt Transmission.xcodeproj third-party libtransmission macosx Transmission.xcodeproj
echo "::set-output name=mac-changed::$?"
git -C "${GITHUB_WORKSPACE}/src" diff --quiet origin/main -- CMakeLists.txt third-party libtransmission qt
echo "::set-output name=qt-changed::$?"
@ -222,11 +222,11 @@ jobs:
path: pfx/**/*
alpine-musl:
needs: [ what-to-build ]
needs: [ what-to-make ]
runs-on: ubuntu-22.04
container:
image: radupopescu/musl-builder
if: ${{ needs.what-to-build.outputs.build-cli == 'true' || needs.what-to-build.outputs.build-daemon == 'true' || needs.what-to-build.outputs.build-gtk == 'true' || needs.what-to-build.outputs.build-qt == 'true' || needs.what-to-build.outputs.build-tests == 'true' || needs.what-to-build.outputs.build-utils == 'true' }}
if: ${{ needs.what-to-make.outputs.build-cli == 'true' || needs.what-to-make.outputs.build-daemon == 'true' || needs.what-to-make.outputs.build-gtk == 'true' || needs.what-to-make.outputs.build-qt == 'true' || needs.what-to-make.outputs.build-tests == 'true' || needs.what-to-make.outputs.build-utils == 'true' }}
steps:
- name: Show Configuration
run: |
@ -252,10 +252,10 @@ jobs:
pkgconfig \
xz
- name: Get Dependencies (GTK)
if: ${{ needs.what-to-build.outputs.build-gtk == 'true' }}
if: ${{ needs.what-to-make.outputs.build-gtk == 'true' }}
run: apk add --upgrade glibmm-dev gtkmm3-dev
- name: Get Dependencies (Qt)
if: ${{ needs.what-to-build.outputs.build-qt == 'true' }}
if: ${{ needs.what-to-make.outputs.build-qt == 'true' }}
run: apk add --upgrade qt5-qtbase-dev qt5-qttools-dev
- name: Get Source
uses: actions/checkout@v3
@ -271,19 +271,19 @@ jobs:
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=pfx \
-DCMAKE_PREFIX_PATH=`brew --prefix`/opt/qt@5 \
-DENABLE_CLI=${{ (needs.what-to-build.outputs.build-cli == 'true') && 'ON' || 'OFF' }} \
-DENABLE_DAEMON=${{ (needs.what-to-build.outputs.build-daemon == 'true') && 'ON' || 'OFF' }} \
-DENABLE_GTK=${{ (needs.what-to-build.outputs.build-gtk == 'true') && 'ON' || 'OFF' }} \
-DENABLE_CLI=${{ (needs.what-to-make.outputs.build-cli == 'true') && 'ON' || 'OFF' }} \
-DENABLE_DAEMON=${{ (needs.what-to-make.outputs.build-daemon == 'true') && 'ON' || 'OFF' }} \
-DENABLE_GTK=${{ (needs.what-to-make.outputs.build-gtk == 'true') && 'ON' || 'OFF' }} \
-DENABLE_MAC=OFF \
-DENABLE_QT=${{ (needs.what-to-build.outputs.build-qt == 'true') && 'ON' || 'OFF' }} \
-DENABLE_QT=${{ (needs.what-to-make.outputs.build-qt == 'true') && 'ON' || 'OFF' }} \
-DENABLE_TESTS=OFF \
-DENABLE_UTILS=${{ (needs.what-to-build.outputs.build-utils == 'true') && 'ON' || 'OFF' }} \
-DENABLE_UTILS=${{ (needs.what-to-make.outputs.build-utils == 'true') && 'ON' || 'OFF' }} \
-DENABLE_WEB=OFF \
-DRUN_CLANG_TIDY=OFF
- name: Make
run: cmake --build obj --config RelWithDebInfo
- name: Test
if: ${{ needs.what-to-build.outputs.build-tests == 'true' }}
if: ${{ needs.what-to-make.outputs.build-tests == 'true' }}
env:
TMPDIR: /private/tmp
run: cmake -E chdir obj ctest --build-config RelWithDebInfo --output-on-failure