Darius klein c307c8c7a4
Some checks failed
build and deploy docs / build (pull_request) Failing after 4s
Go / build (pull_request) Failing after 54s
updated pipeline
2025-11-15 23:00:58 +01:00

44 lines
946 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-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