Skip to content

Bump version

Bump version #1

name: Fontconvert-bin
on:
push:
tags:
- 'fontconvert-bin-v*'
paths:
- 'tools/fontconvert-bin/**'
pull_request:
branches: [main, master]
paths:
- 'tools/fontconvert-bin/**'
defaults:
run:
working-directory: tools/fontconvert-bin
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: tools/fontconvert-bin/go.mod
- name: Run tests
run: go test -v -race -coverprofile=coverage.out ./...
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage
path: tools/fontconvert-bin/coverage.out
build:
needs: test
runs-on: ubuntu-latest
strategy:
matrix:
include:
- goos: linux
goarch: amd64
- goos: linux
goarch: arm64
- goos: darwin
goarch: amd64
- goos: darwin
goarch: arm64
- goos: windows
goarch: amd64
ext: .exe
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: tools/fontconvert-bin/go.mod
- name: Build
env:
CGO_ENABLED: 0
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
go build -ldflags="-s -w" -o fontconvert-bin-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.ext }} .
- uses: actions/upload-artifact@v4
with:
name: fontconvert-bin-${{ matrix.goos }}-${{ matrix.goarch }}
path: tools/fontconvert-bin/fontconvert-bin-${{ matrix.goos }}-${{ matrix.goarch }}*
release:
needs: build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- uses: softprops/action-gh-release@v2
with:
files: artifacts/*