From 1628d95e76de79d0bc14df1a24010d1136ae8876 Mon Sep 17 00:00:00 2001 From: Giorgio Azzinnaro Date: Tue, 20 Sep 2022 20:42:13 +0200 Subject: [PATCH] ci: single-target run on test, build lib on release --- .github/workflows/release.yml | 4 ++++ .github/workflows/test.yml | 11 +---------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 122ecb1..24a3d9f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,10 +18,14 @@ jobs: uses: actions/setup-go@v2 - name: Setup Android NDK + id: setup-ndk uses: nttld/setup-ndk@v1.0.6 with: ndk-version: r25b + - name: Add NDK toolchain path to system + run: echo "${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin" >> $GITHUB_PATH + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2f01e56..fa9244b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,21 +14,12 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 - - name: Setup Android NDK - id: setup-ndk - uses: nttld/setup-ndk@v1.0.6 - with: - ndk-version: r25b - - - name: Add NDK toolchain path to system - run: echo "${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin" >> $GITHUB_PATH - - name: Build via GoReleaser uses: goreleaser/goreleaser-action@v2 with: distribution: goreleaser version: latest - args: build --rm-dist --snapshot + args: build --rm-dist --snapshot --single-target env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}