Skip to content

Commit

Permalink
no need to run tests when we make a release.
Browse files Browse the repository at this point in the history
  • Loading branch information
antony-jr committed Dec 10, 2023
1 parent c340a55 commit 37c5c2c
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,33 @@ env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
jobs:
check:
runs-on: ubuntu-latest
outputs:
deploy: ${{ steps.git.outputs.deploy }}
steps:
- uses: actions/checkout@v3

- name: Install Python3
run: |
sudo apt install -y python3
- id: git
name: Check Commit Message
run: |
git clone https://github.com/antony-jr/QArchive qarc
cd qarc
git tag > /tmp/tags.txt
cd ..
rm -rf qarc
cat /tmp/tags.txt
result=$(python3 scripts/check.py "$(git log -1 --pretty=%B)" "/tmp/tags.txt")
echo "deploy=$result" >> $GITHUB_OUTPUT
ubuntu:
needs: check
if: needs.check.outputs.deploy == 'false'
runs-on: ubuntu-${{ matrix.ubuntu_version }}
name: Ubuntu-${{ matrix.ubuntu_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
strategy:
Expand Down Expand Up @@ -65,6 +90,8 @@ jobs:
run: "ctest --verbose"

macos:
needs: check
if: needs.check.outputs.deploy == 'false'
runs-on: macos-${{ matrix.macos_version }}
name: macos-${{ matrix.macos_version }}-Qt6-${{ matrix.qt6 }}-${{ matrix.shared }}
strategy:
Expand All @@ -90,6 +117,8 @@ jobs:
- name: Run tests
run: meson test -C "${{github.workspace}}/build" --verbose
MSYS2:
needs: check
if: needs.check.outputs.deploy == 'false'
runs-on: windows-latest
name: MSYS2-${{matrix.platform}}
strategy:
Expand Down Expand Up @@ -120,6 +149,8 @@ jobs:
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
Ubuntu-meson:
needs: check
if: needs.check.outputs.deploy == 'false'
runs-on: ubuntu-20.04
name: Linux-GCC${{matrix.cxx}}
strategy:
Expand All @@ -140,6 +171,8 @@ jobs:
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
Ubuntu-meson-clang:
needs: check
if: needs.check.outputs.deploy == 'false'
runs-on: ubuntu-20.04
name: Linux-Clang${{matrix.cxx}}
strategy:
Expand Down

0 comments on commit 37c5c2c

Please sign in to comment.