From e603f2089d9c152445fec958191c2733cec5bcb2 Mon Sep 17 00:00:00 2001 From: hahahrfool <75717694+hahahrfool@users.noreply.github.com> Date: Tue, 5 Apr 2022 09:50:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E8=AE=A2workflows=E6=96=87=E4=BB=B6,?= =?UTF-8?q?=E4=BA=89=E5=8F=96=E8=BE=93=E5=87=BA=E6=AD=A3=E7=A1=AE=E7=9A=84?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_release.yml | 6 +++++- .github/workflows/test.yml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 3ed1808..4f2dc49 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -18,9 +18,13 @@ jobs: with: go-version: 1.18 + - name: Get version + id: get_version + run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + - name: Build run: | - make -f Makefile_release PACK=1 BUILD_VERSION=${GITHUB_REF} + make -f Makefile_release PACK=1 BUILD_VERSION=${{ steps.get_version.outputs.VERSION }} - name: touch xz archive shell: bash diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6551fb2..c8ade48 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ on: jobs: - build: + test: runs-on: ${{ matrix.os }} strategy: fail-fast: false