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 }}