Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
ci: attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
markjoshwel committed Nov 6, 2023
1 parent e40c455 commit 3b29ee1
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,33 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: checkout
uses: actions/checkout@v3
with:
ref: main
- uses: uraimo/run-on-arch-action@v2
name: Run commands
id: runcmd

- name: build
uses: crazy-max/ghaction-xgo@v3
with:
arch: aarch64
distro: alpine_latest
githubToken: ${{ github.token }}
run: |
pkg install go
go build -o dist/s+ow-whatsapp-bridge
xgo_version: latest
go_version: latest
dest: dist
targets: windows/amd64,linux/amd64,linux/arm64,darwin/arm64
v: true
x: false
race: false
ldflags: -s -w
buildmode: default
trimpath: true

- uses: actions/upload-artifact@v3
with:
name: wheels
path: dist/

- name: release
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/*.whl

0 comments on commit 3b29ee1

Please sign in to comment.