From c774359531f44b65b087173ce8466ef659691e28 Mon Sep 17 00:00:00 2001 From: Hintay Date: Mon, 3 Feb 2025 22:04:35 +0900 Subject: [PATCH] feat: generate version in build workflows --- .github/workflows/build.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dbcd4710..c3b16c5b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -142,6 +142,18 @@ jobs: with: go-version: ^1.23.0 + - name: Download app artifacts + uses: actions/download-artifact@v4 + with: + name: app-dist + path: app/dist + + - name: Generate files + env: + GOOS: linux + GOARCH: amd64 + run: go generate + - name: Setup compiler environment id: info run: | @@ -182,12 +194,6 @@ jobs: echo "CXX=${{ env.ARCH_NAME }}-clang++" >> $GITHUB_ENV echo "LD_FLAGS=-w" >> $GITHUB_ENV - - name: Download app artifacts - uses: actions/download-artifact@v4 - with: - name: app-dist - path: app/dist - - name: Build run: | mkdir -p dist