Skip to content

Commit

Permalink
Add a global success marker
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jan 13, 2025
1 parent 6175b33 commit 4f8e554
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/qgis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
strategy:
fail-fast: false
matrix:
# The versions should be set everywhere we have a == QGIS version == comment
version:
# Last LTR
- '3.28'
Expand All @@ -59,6 +60,19 @@ jobs:
- latest
- lr-debug

# == QGIS version ==
outputs:
success-3-28: ${{ steps.success.outputs.success-3-28 }}
success-3-28-gdal3-6: ${{ steps.success.outputs.success-3-28-gdal3-6 }}
success-3-28-gdal3-7: ${{ steps.success.outputs.success-3-28-gdal3-7 }}
success-3-34: ${{ steps.success.outputs.success-3-34 }}
success-3-34-gdal3-7: ${{ steps.success.outputs.success-3-34-gdal3-7 }}
success-3-34-gdal3-8: ${{ steps.success.outputs.success-3-34-gdal3-8 }}
success-ltr: ${{ steps.success.outputs.success-ltr }}
success-lr: ${{ steps.success.outputs.success-lr }}
success-lr-debug: ${{ steps.success.outputs.success-lr-debug }}
success-latest: ${{ steps.success.outputs.latest }}

steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -120,3 +134,28 @@ jobs:
if: >
env.HAS_SECRETS == 'HAS_SECRETS'
&& steps.version.outputs.versions != ''
# Mark as success
- id: success
run: |
version=${{ matrix.version }}
echo "success_${version//\./-}=true" >> $GITHUB_OUTPUT
success:
runs-on: ubuntu-24.04
name: QGIS build success
timeout-minutes: 15
needs: main
if: always()

# == QGIS version ==
steps:
- run: '[[ "${{ needs.main.outputs.success-3-28 }}" == "true" ]]'
- run: '[[ "${{ needs.main.outputs.success-3-28-gdal3-6 }}" == "true" ]]'
- run: '[[ "${{ needs.main.outputs.success-3-28-gdal3-7 }}" == "true" ]]'
- run: '[[ "${{ needs.main.outputs.success-3-34 }}" == "true" ]]'
- run: '[[ "${{ needs.main.outputs.success-3-34-gdal3-7 }}" == "true" ]]'
- run: '[[ "${{ needs.main.outputs.success-3-34-gdal3-8 }}" == "true" ]]'
- run: '[[ "${{ needs.main.outputs.success-ltr }}" == "true" ]]'
- run: '[[ "${{ needs.main.outputs.success-lr }}" == "true" ]]'
- run: '[[ "${{ needs.main.outputs.success-lr-debug }}" == "true" ]]'
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ repos:
hooks:
- id: git-check
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.21.0
rev: 0.30.0
hooks:
- id: check-github-workflows
- id: check-renovate
Expand Down

0 comments on commit 4f8e554

Please sign in to comment.