44 lines
962 B
YAML
44 lines
962 B
YAML
name: Go
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.25'
|
|
|
|
- name: Build wazuh-notify-go
|
|
run: |
|
|
cd wazuh-notify-go
|
|
go build -o wazuh-notifier-go .
|
|
|
|
- name: Upload wazuh-notify-go artifact
|
|
uses: christopherhx/gitea-upload-artifact@v4
|
|
with:
|
|
name: wazuh-notifier-go-binary
|
|
path: wazuh-notify-go/wazuh-notifier-go
|
|
|
|
- name: Build wazuh-notify-go-v2
|
|
run: |
|
|
cd wazuh-notify-go-v2
|
|
go build -o wazuh-notifier-go-v2 .
|
|
|
|
- name: Upload wazuh-notify-go-v2 artifact
|
|
uses: christopherhx/gitea-upload-artifact@v4
|
|
with:
|
|
name: wazuh-notifier-go-v2-binary
|
|
path: wazuh-notify-go-v2/wazuh-notifier-go-v2
|