Fix: action setup go should be done after checkout to enable package caching

pull/67/head
zijiren233 1 year ago
parent 0f2b2ef3f2
commit 84bb090352

@ -43,14 +43,14 @@ jobs:
matrix:
target: ${{ fromJson(needs.get_all_targets.outputs.TARGETS) }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
bash script/build.sh -sp "${{ matrix.target }}"

@ -37,14 +37,14 @@ jobs:
matrix:
target: ${{ fromJson(needs.get_all_targets.outputs.TARGETS) }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Checkout
uses: actions/checkout@v4
- name: Get version
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT

@ -35,14 +35,14 @@ jobs:
matrix:
target: ${{ fromJson(needs.get_all_targets.outputs.TARGETS) }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
bash script/build.sh -v dev -p "${{ matrix.target }}"

Loading…
Cancel
Save