Skip to content

fix: set log level to default, debug is for local dev #40

fix: set log level to default, debug is for local dev

fix: set log level to default, debug is for local dev #40

Workflow file for this run

on:
pull_request:
branches: ["*"]
tags-ignore:
- "release-please--*" # Exclude tags containing "staging"
name: test build
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
- uses: actions/setup-go@v5
with:
go-version: "^1.23.3"
- name: Build project and prepare release artifact
run: |
env GOOS=darwin GOARCH=arm64 go build -ldflags "-X cpenv/cmd.Version=${{ steps.release.outputs.tag_name }}" -o ./compile/cpenv-darwin-arm64 ./main.go
env GOOS=darwin GOARCH=amd64 go build -ldflags "-X cpenv/cmd.Version=${{ steps.release.outputs.tag_name }}" -o ./compile/cpenv-darwin-amd64 ./main.go