From 958bfd1dbe78df49b223c49a66d4f8d66838562b Mon Sep 17 00:00:00 2001 From: krau <71133316+krau@users.noreply.github.com> Date: Thu, 18 Dec 2025 17:55:24 +0800 Subject: [PATCH] ci: update build-release workflow to include asset name and additional build flags --- .github/workflows/build-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 8e123e2..86b8f04 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -41,6 +41,7 @@ jobs: exclude: - goos: windows goarch: arm64 + variant: [full, micro, pico] steps: - name: Checkout uses: actions/checkout@v4 @@ -61,11 +62,13 @@ jobs: extra_files: | LICENSE README.md + build_flags: ${{ matrix.variant == 'full' && '' || (matrix.variant == 'micro' && '-tags=no_jsparser,no_minio' || '-tags=no_jsparser,no_minio,sqlite_glebarez') }} ldflags: >- -s -w -X "github.com/krau/SaveAny-Bot/config.Version=${{ env.VERSION }}" -X "github.com/krau/SaveAny-Bot/config.BuildTime=${{ format(github.event.repository.updated_at, 'yyyy-MM-dd HH:mm:ss') }}" -X "github.com/krau/SaveAny-Bot/config.GitCommit=${{ github.sha }}" binary_name: saveany-bot + asset_name: saveany-bot-${{ matrix.variant }}-${{ env.VERSION }}-${{ matrix.goos }}-${{ matrix.goarch }} env: VERSION: ${{ env.VERSION }}