Update update_meta_core_test.yaml

This commit is contained in:
juewuy
2024-01-29 16:01:45 +08:00
committed by GitHub
parent 446d1718a9
commit 55ff0d4444

View File

@@ -51,11 +51,6 @@ jobs:
with: with:
go-version: ${{needs.go.outputs.version}} go-version: ${{needs.go.outputs.version}}
- name: get meta version
id: meta
run: |
echo version=${{ github.event.inputs.tag2 }} >> $GITHUB_OUTPUT
cross: cross:
strategy: strategy:
matrix: matrix:
@@ -103,7 +98,6 @@ jobs:
GOMIPS: ${{ matrix.gomips }} GOMIPS: ${{ matrix.gomips }}
CGO_ENABLED: 0 CGO_ENABLED: 0
TAGS: ${{needs.meta.outputs.tags}} TAGS: ${{needs.meta.outputs.tags}}
VERSION: ${{needs.meta.outputs.version}}
steps: steps:
- name: Checkout meta - name: Checkout meta
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
@@ -119,7 +113,7 @@ jobs:
- name: build core - name: build core
id: build id: build
run: go build -v -trimpath -ldflags "-X 'github.com/sagernet/meta/constant.Version=${VERSION}' -s -w -buildid=" --tags="${TAGS}" run: go build -v -trimpath -ldflags "-X 'github.com/sagernet/meta/constant.Version=${{ github.event.inputs.tag2 }}' -s -w -buildid=" --tags="${TAGS}"
- name: Upload file to workspace - name: Upload file to workspace
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4