Test4Updates Qt6 #813
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test4Updates Qt6 | |
# Controls when the action will run. Triggers the workflow on cron like time | |
on: | |
schedule: | |
# This is UTC in crontab format, minutes hours etc.... | |
- cron: '35 10 * * *' | |
# - cron: '35 10,22 * * *' # no, twice a day is silly, I cannot respond that quickly. | |
#workflow_dispatch | |
# issues: | |
# types: [opened, edited] # only do edited so we dont retrigger ourself | |
# types: [edited] | |
env: | |
SOURCE: 'libQtPas_src' | |
jobs: | |
build: | |
name: ${{ matrix.config.name }} | |
runs-on: ${{ matrix.config.os }} | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- os: ubuntu-20.04 | |
name: 'Linux 64' | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
with: | |
path: '${{ env.SOURCE }}' | |
- name: Test if Qt updated | |
id: test_updated | |
run: ${{ env.SOURCE }}/cbindings/package/scripts/check4update.bash | |
# run: | | |
# This will, if the above script returned an error, assume we need to raise | |
# an issue because the versions no longer match | |
- name: create an issue | |
uses: dacbd/create-issue-action@main | |
if: ${{ failure() }} | |
with: | |
token: ${{ github.token }} | |
title: Update Required | |
body: This library needs to be updated | |
- name: decide | |
if: ${{ failure() }} | |
# apparently next line contains deprecated use of nodejs 12 ?? | |
uses: actions/upload-artifact@v4 | |
with: | |
name: libQtPas | |
path: result.text | |
#${{ env.SOURCE }}/result.text |