49 lines
1.1 KiB
YAML

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
#DISABLED
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-notifer-go
run: |
cd wazuh-notifer-go
go build -o wazuh-notifier-go .
- name: Upload wazuh-notifer-go artifact
uses: actions/upload-artifact@v4
with:
name: wazuh-notifier-go-binary
path: wazuh-notifer-go/wazuh-notifier-go
- name: Build wazuh-notifer-go-v2
run: |
cd wazuh-notifer-go-v2
go build -o wazuh-notifier-go-v2 .
- name: Upload wazuh-notifer-go-v2 artifact
uses: actions/upload-artifact@v4
with:
name: wazuh-notifier-go-v2-binary
path: wazuh-notifer-go-v2/wazuh-notifier-go-v2