Skip to content

No caching please

No caching please #6

on: push
jobs:
missing-git-executable:
runs-on: dennis-windows-arm64
steps:
# This will use the GitHub API since Git isn't installed on the runner
- name: clone git-for-windows-automation
uses: actions/checkout@v4
# This will fail because Git isn't installed on the runner
- uses: dennisameling/setup-git-for-windows-sdk@595e4089435f600d796caba79869e864be4aeece
continue-on-error: true
with:
flavor: build-installers
architecture: aarch64
cache: false
- name: install GfW
shell: powershell
run: |
& ./azure-self-hosted-runners/post-deployment-script.ps1
Add-Content $env:GITHUB_PATH "C:\Program Files\Git\bin"
$currentPath = [System.Environment]::GetEnvironmentVariable("PATH", "Machine")
$newPath = 'C:\Program Files\Git\bin;' + $currentPath
[Environment]::SetEnvironmentVariable("PATH", $newPath, "Machine")
- name: try installing the SDK again
uses: dennisameling/setup-git-for-windows-sdk@595e4089435f600d796caba79869e864be4aeece
with:
flavor: build-installers
architecture: aarch64
cache: false
should-work-on-hosted-runner:
runs-on: windows-latest
steps:
# This should work because the hosted runner has Git installed. Let's see what it logs as its PATH.
- uses: dennisameling/setup-git-for-windows-sdk@595e4089435f600d796caba79869e864be4aeece
continue-on-error: true
with:
flavor: build-installers
architecture: aarch64
cache: false