Browse Source

feat: generate version in build workflows

Hintay 3 months ago
parent
commit
c774359531
1 changed files with 12 additions and 6 deletions
  1. 12 6
      .github/workflows/build.yml

+ 12 - 6
.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