From c6421992e5acd3da3500a6326e848fe0e4f66c8b Mon Sep 17 00:00:00 2001 From: zijiren233 Date: Wed, 20 Nov 2024 14:14:32 +0800 Subject: [PATCH] feat: build args --- .github/workflows/build.yml | 5 ++++- .github/workflows/release.yml | 5 ++++- .github/workflows/release_dev.yml | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2b138b4..c310438 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,9 +48,12 @@ jobs: - name: Build targets uses: zijiren233/go-build-action@v1 + env: + ARM_SUBMICRO_DISABLED: true + ARM64_MICRO_DISABLED: true with: targets: ${{ matrix.target }} - enable-micro: ${{ !endsWith(matrix.target, '/arm64') }} + enable-micro: true config-args: --skip-init-web - name: Get artifact name diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 39a0a35..33d83d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,9 +45,12 @@ jobs: - name: Build targets uses: zijiren233/go-build-action@v1 + env: + ARM_SUBMICRO_DISABLED: true + ARM64_MICRO_DISABLED: true with: targets: ${{ matrix.target }} - enable-micro: ${{ !endsWith(matrix.target, '/arm64') }} + enable-micro: true config-args: --version="v${{ steps.get_version.outputs.VERSION }}" - name: Release diff --git a/.github/workflows/release_dev.yml b/.github/workflows/release_dev.yml index 2f45b13..7b431c2 100644 --- a/.github/workflows/release_dev.yml +++ b/.github/workflows/release_dev.yml @@ -39,9 +39,12 @@ jobs: - name: Build targets uses: zijiren233/go-build-action@v1 + env: + ARM_SUBMICRO_DISABLED: true + ARM64_MICRO_DISABLED: true with: targets: ${{ matrix.target }} - enable-micro: ${{ !endsWith(matrix.target, '/arm64') }} + enable-micro: true - name: Release uses: softprops/action-gh-release@v2