dip/.github/workflows/build.yml
2025-12-13 17:00:02 +01:00

38 lines
832 B
YAML

---
name: build & test
'on':
push:
branches:
- '*'
jobs:
build:
runs-on:
- linux
- amd64
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
container:
image: ghcr.io/catthehacker/ubuntu:act-24.04
steps:
- name: Checkout
uses: actions/checkout@v6
with:
lfs: true
- name: Cache
id: dip-cache
uses: actions/cache@v4
with:
path: go-build
key: dip-${{ hashFiles('**/go.mod','**/go.sum') }}
- name: Build
uses: ./.github/actions/builder
with:
steps: |
go build -o dip -v cmd/dip/*.go
env:
GOOS: linux
GOARCH: amd64
GOCACHE: ${{ forgejo.workspace }}/go-build
VERSION: ${{ forgejo.ref_name }}