From 8bab3a06db9199efc1ee3f23d86328627d47a99e Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Thu, 4 Jul 2024 04:12:28 +0200 Subject: [PATCH] Try to run again --- .github/actions/setup-go/action.yml | 14 ++++++++------ .github/workflows/system-test.yml | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/actions/setup-go/action.yml b/.github/actions/setup-go/action.yml index 8b6c3aac..321995dc 100644 --- a/.github/actions/setup-go/action.yml +++ b/.github/actions/setup-go/action.yml @@ -1,10 +1,10 @@ name: 'Setup the Go environment' description: 'Installs go and restores/saves the build/module cache' inputs: - git-repo-dirs: - description: "Go code git repository directories (for mtime-restoration). Note that this requires cloning the repo's full history" + git-dir: + description: "Git repository directory (for mtime-restoration). Note that this requires cloning the repo's full history" required: false - default: '["."]' + default: '.' runs: using: "composite" steps: @@ -23,9 +23,11 @@ runs: # recent commit that modified them as mtimes affect the Go test cache. # See https://github.com/golang/go/issues/58571 for details # Note that this requires checking out the repos with fetch-depth: 0 - - name: Restore modification time of checkout files - uses: chetan/git-restore-mtime-action@075f9bc9d159805603419d50f794bd9f33252ebe - + - if: inputs.git-dir != '' + name: Restore modification time of checkout files + uses: chetan/git-restore-mtime-action@301991bb840275c304501780b55c4cc0ba7450ba + with: + working-directory: ${{ inputs.git-dir }} # KEY_PREFIX must uniquely identify the specific instance of a job executing. - shell: bash diff --git a/.github/workflows/system-test.yml b/.github/workflows/system-test.yml index f701d218..15b58ccb 100644 --- a/.github/workflows/system-test.yml +++ b/.github/workflows/system-test.yml @@ -90,7 +90,7 @@ jobs: - uses: stellar/actions/rust-cache@main - uses: ./soroban-rpc/.github/actions/setup-go with: - working-directory: ./soroban-rpc/ + git-dir: ./soroban-rpc/ - name: Build system test with component versions run: | cd $GITHUB_WORKSPACE/system-test