chore(deps): bump golang.org/x/image from 0.22.0 to 0.23.0 #123
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Golang CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
name: Build | |
strategy: | |
matrix: | |
go-version: [ 1.23 ] | |
platform: [ ubuntu-latest, macos-latest, windows-latest ] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Cache Go | |
uses: actions/cache@v2 | |
with: | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
# In order: | |
# * Module download cache | |
# * Build cache (Linux) | |
# * Build cache (Mac) | |
# * Build cache (Windows) | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
~/Library/Caches/go-build | |
'%LocalAppData%\go-build' | |
- name: Test Go | |
run: go test ./... | |
- name: Build Go | |
run: | | |
go build -o bin/grafana-plot cmd/grafana-plot/main.go | |
go build -o bin/prometheus-plot cmd/prometheus-plot/main.go | |
- name: Upload Go Binary | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ runner.os }}-app | |
path: bin/*-plot | |
if-no-files-found: error |