Skip to content

Commit

Permalink
Clear previous go setup from system
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Litvinov <[email protected]>
  • Loading branch information
Zensey committed Jul 29, 2024
1 parent 3720840 commit 6c0a604
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Clean previous go installation
run: |
rm -rf /opt/hostedtoolcache/go
- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand Down Expand Up @@ -102,6 +106,10 @@ jobs:
- PackageAndroidProvider

steps:
- name: Clean previous go installation
run: |
rm -rf /opt/hostedtoolcache/go
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
Expand All @@ -128,6 +136,10 @@ jobs:
needs: [setup-env, build-packages]

steps:
- name: Clean previous go installation
run: |
rm -rf /opt/hostedtoolcache/go
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
Expand Down Expand Up @@ -165,6 +177,10 @@ jobs:
(github.ref == 'refs/heads/master' || github.ref_type == 'tag')
steps:
- name: Clean previous go installation
run: |
rm -rf /opt/hostedtoolcache/go
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
NIGHTLY_BUILD: true

steps:
- name: Clean previous go installation
run: |
rm -rf /opt/hostedtoolcache/go
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
Expand Down Expand Up @@ -55,6 +59,10 @@ jobs:
- ReleaseDebianPPASnapshot

steps:
- name: Clean previous go installation
run: |
rm -rf /opt/hostedtoolcache/go
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
Expand Down Expand Up @@ -104,6 +112,10 @@ jobs:
- ReleaseAndroidProviderSDK

steps:
- name: Clean previous go installation
run: |
rm -rf /opt/hostedtoolcache/go
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
Expand Down Expand Up @@ -140,6 +152,10 @@ jobs:
needs: [release-tag]

steps:
- name: Clean previous go installation
run: |
rm -rf /opt/hostedtoolcache/go
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/tests-and-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Clean previous go installation
run: |
rm -rf /opt/hostedtoolcache/go
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
Expand Down Expand Up @@ -37,6 +41,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Clean previous go installation
run: |
rm -rf /opt/hostedtoolcache/go
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
Expand All @@ -56,6 +64,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Clean previous go installation
run: |
rm -rf /opt/hostedtoolcache/go
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
Expand Down

0 comments on commit 6c0a604

Please sign in to comment.