GitHub kdevops workflow fixes #174
Workflow file for this run
This file contains hidden or 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: Run kdevops linux-ab tests on self-hosted runner | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| workflow_dispatch: # Add this for manual triggering of the workflow | |
| jobs: | |
| run-kdevops: | |
| name: Run kdevops CI | |
| runs-on: [self-hosted, Linux, X64] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set CI metadata for kdevops-results-archive | |
| run: | | |
| echo "$(basename ${{ github.repository }})" > ci.trigger | |
| git log -1 --pretty=format:"%s" > ci.subject | |
| # Start out pessimistic | |
| echo "not ok" > ci.result | |
| echo "Nothing to write home about." > ci.commit_extra | |
| - name: Set kdevops path | |
| run: echo "KDEVOPS_PATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
| - name: Configure git | |
| run: | | |
| git config --global --add safe.directory '*' | |
| git config --global user.name "kdevops" | |
| git config --global user.email "[email protected]" | |
| - name: Run kdevops check-linux-ab | |
| run: | | |
| make check-linux-ab | |
| echo "ok" > ci.result | |
| # Ensure make destroy always runs, even on failure | |
| - name: Run kdevops make destroy | |
| if: always() # This ensures the step runs even if previous steps failed | |
| run: | | |
| make destroy | |
| make mrproper |