23 lines
638 B
YAML
23 lines
638 B
YAML
name: Build Test 2
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
run: git clone --depth=1 https://git.wellspr.ing/wellspring/ody-agent.git /build && ls /build
|
|
|
|
- name: Install Go
|
|
run: |
|
|
curl -fsSL https://go.dev/dl/go1.22.3.linux-amd64.tar.gz -o /tmp/go.tar.gz
|
|
tar -C /usr/local -xzf /tmp/go.tar.gz
|
|
/usr/local/go/bin/go version
|
|
|
|
- name: Build Linux
|
|
run: |
|
|
cd /build
|
|
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 /usr/local/go/bin/go build -o /tmp/ody-agent-linux .
|
|
ls -lh /tmp/ody-agent-linux
|