Skip to content

Commit

Permalink
ci: single-target run on test, build lib on release
Browse files Browse the repository at this point in the history
  • Loading branch information
borgoat committed Sep 20, 2022
1 parent d0dbb89 commit 1628d95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit 1628d95

Please sign in to comment.