Skip to content

build(deps): bump github.com/bytedance/sonic from 1.12.0 to 1.12.3 in the go-modules group across 1 directory #14

build(deps): bump github.com/bytedance/sonic from 1.12.0 to 1.12.3 in the go-modules group across 1 directory

build(deps): bump github.com/bytedance/sonic from 1.12.0 to 1.12.3 in the go-modules group across 1 directory #14

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
goarch: [ amd64, arm64 ]
fail-fast: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
cache: true
go-version: '1.22'
- name: Install dependencies
run: go mod tidy
- name: Build ${{ matrix.goarch }}
env:
CGO_ENABLED: 0
GOOS: linux
GOARCH: ${{ matrix.goarch }}
run: go build -ldflags '-s -w --extldflags "-static"' -o hitokoto-${{ matrix.goarch }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: hitokoto-${{ matrix.goarch }}
path: hitokoto-${{ matrix.goarch }}