Update test.yml #2
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
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Set up MSYS2 | |
uses: msys2/setup-msys2@v2 | |
- name: Run script with signal handling | |
timeout-minutes: 1 # kil job instead of workflow | |
run: | | |
bash -c ' | |
trap "echo SIGTERM catched && ps -aef && top" SIGTERM; | |
echo "starting process..."; | |
sleep 10000; | |
echo "Process ended." | |
' |