Skip to content

Move some files to root directory #56

Move some files to root directory

Move some files to root directory #56

Workflow file for this run

# GitHub Actions workflow to build Go CLI for Windows and Linux
name: Build Go CLI
on:
push:
paths:
- 'cli/**'
- '.github/workflows/build-cli.yml'
pull_request:
paths:
- 'cli/**'
- '.github/workflows/build-cli.yml'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [windows, linux]
goarch: [amd64]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25'
- name: Build CLI (${{ matrix.goos }})
run: |
cd cli
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -v -o build/cli-${{ matrix.goos }}-${{ matrix.goarch }}
- name: Upload artifact
uses: actions/upload-artifact@v6
with:
name: cli-${{ matrix.goos }}-${{ matrix.goarch }}
path: cli/build/cli-${{ matrix.goos }}-${{ matrix.goarch }}