From a32c07cbb78f65d8527642b96474a83b413f8108 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Tue, 8 Nov 2022 11:33:25 +1100 Subject: [PATCH] Run vm startup and shutdown from runner temp dir. Should work even if the github workspace dir is on a stale sshfs mount. --- .github/workflows/selfhosted.yml | 2 ++ .github/workflows/upstream.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/selfhosted.yml b/.github/workflows/selfhosted.yml index f761f5bfb..8044a2fb0 100644 --- a/.github/workflows/selfhosted.yml +++ b/.github/workflows/selfhosted.yml @@ -74,6 +74,7 @@ jobs: steps: - name: shutdown VM if running run: vmshutdown + working-directory: ${{ runner.temp }} - uses: actions/checkout@main - name: autoreconf run: autoreconf @@ -106,3 +107,4 @@ jobs: - name: shutdown VM if: always() run: vmshutdown + working-directory: ${{ runner.temp }} diff --git a/.github/workflows/upstream.yml b/.github/workflows/upstream.yml index 46672d6fc..1be6c2ee3 100644 --- a/.github/workflows/upstream.yml +++ b/.github/workflows/upstream.yml @@ -20,6 +20,7 @@ jobs: - uses: actions/checkout@main - name: shutdown VM if running run: vmshutdown + working-directory: ${{ runner.temp }} - name: startup VM run: vmstartup - name: update source @@ -45,3 +46,4 @@ jobs: - name: shutdown VM if: always() run: vmshutdown + working-directory: ${{ runner.temp }}