Skip to content

GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.

ci: update workflows with ARM runner and formatting fixes

Aldino Kemal06b51ad96491
diff --git a/.github/workflows/build-docker-image.yaml b/.github/workflows/build-docker-image.yaml
index 2c8369d5..7743b1c6 100644
--- a/.github/workflows/build-docker-image.yaml
+++ b/.github/workflows/build-docker-image.yaml
@@ -4,9 +4,9 @@ on:
workflow_dispatch:
push:
tags:
- - 'v[0-9]+.[0-9]+.[0-9]+'
+ - "v[0-9]+.[0-9]+.[0-9]+"
branches-ignore:
- - '*'
+ - "*"
jobs:
build-and-push-amd:
@@ -44,7 +44,7 @@ jobs:
build-and-push-arm:
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
environment: production
- runs-on: [ARM64]
+ runs-on: ubuntu-24.04-arm
permissions:
contents: read
packages: write
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 0215ef25..de445d95 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
tags:
- - 'v[0-9]+.[0-9]+.[0-9]+'
+ - "v[0-9]+.[0-9]+.[0-9]+"
jobs:
build-linux-windows:
@@ -18,7 +18,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
- go-version: '1.25'
+ go-version: "1.25"
- name: Install cross-compilation toolchains
run: |
@@ -39,7 +39,7 @@ jobs:
run: |
cat > /tmp/.goreleaser-linux-windows.yml << 'EOF'
project_name: whatsapp
-
+
builds:
- id: linux-amd64
dir: ./src
@@ -105,7 +105,7 @@ jobs:
- "386"
ldflags: -s -w
binary: "{{ .Os }}-{{ .Arch }}"
-
+
archives:
- id: binaries
builds:
@@ -116,10 +116,10 @@ jobs:
- windows-386
format: zip
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
-
+
checksum:
name_template: "checksums.txt"
-
+
release:
draft: false
github:
@@ -143,7 +143,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
- go-version: '1.25'
+ go-version: "1.25"
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v5
@@ -155,7 +155,7 @@ jobs:
run: |
cat > /tmp/.goreleaser-macos.yml << 'EOF'
project_name: whatsapp
-
+
builds:
- id: darwin-amd64
dir: ./src
@@ -180,7 +180,7 @@ jobs:
- arm64
ldflags: -s -w
binary: "{{ .Os }}-{{ .Arch }}"
-
+
archives:
- id: binaries
builds:
@@ -188,10 +188,10 @@ jobs:
- darwin-arm64
format: zip
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
-
+
checksum:
name_template: "checksums-macos.txt"
-
+
release:
draft: false
github:
@@ -202,4 +202,4 @@ jobs:
- name: Run GoReleaser for macOS
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: goreleaser release --config /tmp/.goreleaser-macos.yml --timeout 60m --skip-validate
\ No newline at end of file
+ run: goreleaser release --config /tmp/.goreleaser-macos.yml --timeout 60m --skip-validate
diff --git a/.github/workflows/set-latest-tag.yaml b/.github/workflows/set-latest-tag.yaml
index 40126388..f9f058f2 100644
--- a/.github/workflows/set-latest-tag.yaml
+++ b/.github/workflows/set-latest-tag.yaml
@@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
tag:
- description: 'Tag version to promote to latest (e.g., v7.0.0)'
+ description: "Tag version to promote to latest (e.g., v7.0.0)"
required: true
type: string
@@ -55,4 +55,3 @@ jobs:
docker buildx imagetools create \
-t ghcr.io/${{ github.repository_owner }}/go-whatsapp-web-multidevice:latest \
ghcr.io/${{ github.repository_owner }}/go-whatsapp-web-multidevice:${{ inputs.tag }}
-