From a27a2226ba55691a6ad0f4987c60029b92e9c6d7 Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Tue, 22 Oct 2024 10:46:32 -0400 Subject: [PATCH] Fix go cache --- .github/workflows/release.yml | 11 ++++++----- .github/workflows/smoke.yml | 21 ++++++++++++--------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ae5e68..4c2789d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,10 +11,16 @@ jobs: runs-on: macos-latest steps: + - name: Check out code + uses: actions/checkout@v4 + with: + progress: false + - name: Set up Go 1.22 uses: actions/setup-go@v5 with: go-version: "1.22" + cache-dependency-path: nebula/go.sum - uses: actions/setup-java@v2 with: @@ -26,11 +32,6 @@ jobs: with: flutter-version: '3.24.1' - - name: Check out code - uses: actions/checkout@v4 - with: - progress: false - - name: Install the appstore connect key material env: AC_API_KEY_SECRET_BASE64: ${{ secrets.AC_API_KEY_SECRET_BASE64 }} diff --git a/.github/workflows/smoke.yml b/.github/workflows/smoke.yml index 8c8b0e7..56e6e88 100644 --- a/.github/workflows/smoke.yml +++ b/.github/workflows/smoke.yml @@ -12,10 +12,16 @@ jobs: name: Android runs-on: macos-latest steps: + - name: Check out code + uses: actions/checkout@v4 + with: + progress: false + - name: Set up Go 1.22 uses: actions/setup-go@v5 with: go-version: "1.22" + cache-dependency-path: nebula/go.sum - uses: actions/setup-java@v2 with: @@ -27,10 +33,6 @@ jobs: with: flutter-version: '3.24.1' - - name: Check out code - uses: actions/checkout@v4 - with: - progress: false - name: install dependencies env: TOKEN: ${{ secrets.MACHINE_USER_PAT }} @@ -86,21 +88,22 @@ jobs: runs-on: macos-latest steps: + - name: Check out code + uses: actions/checkout@v4 + with: + progress: false + - name: Set up Go 1.22 uses: actions/setup-go@v5 with: go-version: "1.22" + cache-dependency-path: nebula/go.sum - name: Install flutter uses: subosito/flutter-action@v2 with: flutter-version: '3.24.1' - - name: Check out code - uses: actions/checkout@v4 - with: - progress: false - - name: install dependencies run: | go install golang.org/x/mobile/cmd/gomobile@latest