Skip to content

Commit d7807e6

Browse files
authored
Merge pull request #81 from dscho/add-timeouts
workflows: add timeouts, address linter issues
2 parents f10aa93 + edb3303 commit d7807e6

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ jobs:
124124
run: git clone --depth 1 --single-branch -b main https://github.com/git-for-windows/build-extra /usr/src/build-extra
125125

126126
- name: update the SDK ("pacman -Syyu")
127+
timeout-minutes: 20
127128
shell: powershell
128129
run: |
129130
& ("${{ steps.setup-sdk.outputs.result }}\update-via-pacman.ps1")
@@ -162,6 +163,7 @@ jobs:
162163
bash -lc "set -x && rebase -v -i /usr/lib/perl5/core_perl/auto/Cwd/Cwd.dll"
163164
164165
- name: Get GPG key(s)
166+
timeout-minutes: 5
165167
shell: bash
166168
env:
167169
CARCH: x86_64 # dummy, to allow sourcing cv2pdb's PKGBUILD as-is
@@ -203,6 +205,7 @@ jobs:
203205
echo "SIGNTOOL=git signtool" >>$GITHUB_ENV
204206
205207
- name: Build ${{env.PACKAGE_TO_BUILD}}
208+
timeout-minutes: ${{ env.PACKAGE_TO_BUILD== 'mingw-w64-llvm' && 360 || 150 }}
206209
env:
207210
GPGKEY: ${{secrets.GPGKEY}}
208211
MAKEPKG: ${{ env.REPO != 'MSYS2-packages' && env.PACKAGE_TO_BUILD != 'git-for-windows-keyring' && 'makepkg-mingw' || 'makepkg' }}

.github/workflows/create-azure-self-hosted-runners.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
type: string
2424
required: true
2525
description: Deallocate the runner immediately after creating it (useful for spinning up runners preemptively)
26-
default: false
26+
default: "false"
2727

2828
env:
2929
ACTIONS_RUNNER_SCOPE: ${{ github.event.inputs.runner_scope }}
@@ -157,6 +157,7 @@ jobs:
157157
deploymentName: deploy-${{ steps.generate-vm-name.outputs.vm_name }}
158158
template: ./azure-self-hosted-runners/azure-arm-template.json
159159
parameters: ./azure-self-hosted-runners/azure-arm-template-example-parameters.json ${{ env.AZURE_ARM_PARAMETERS }}
160+
scope: resourcegroup
160161

161162
- name: Show post-deployment script output
162163
env:

.github/workflows/git-artifacts.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ jobs:
261261
echo -n "$CODESIGN_PASS" >.sig/codesign.pass
262262
git config --global alias.signtool '!sh "/usr/src/build-extra/signtool.sh"'
263263
- name: Prepare home directory for GPG signing
264+
timeout-minutes: 5
264265
if: env.GPGKEY != '' && steps.restore-cached-git-pkg.outputs.cache-hit != 'true'
265266
run: |
266267
echo '${{secrets.PRIVGPGKEY}}' | tr % '\n' | gpg $GPG_OPTIONS --import &&
@@ -277,6 +278,7 @@ jobs:
277278
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
278279
append-text: 'About to build the `${{env.MINGW_PACKAGE_PREFIX}}-git` package'
279280
- name: Build ${{env.MINGW_PACKAGE_PREFIX}}-git
281+
timeout-minutes: 60
280282
if: steps.restore-cached-git-pkg.outputs.cache-hit != 'true'
281283
env:
282284
GPGKEY: "${{secrets.GPGKEY}}"

0 commit comments

Comments
 (0)