memories/.github/workflows/amd64.yml

31 lines
565 B
YAML
Raw Normal View History

2022-11-11 04:26:21 +00:00
name: amd64
on:
push:
tags:
2023-02-24 08:29:50 +00:00
- "*"
2022-11-11 04:26:21 +00:00
jobs:
build-amd64:
name: amd64
runs-on: ubuntu-latest
container:
2023-02-24 08:29:50 +00:00
image: golang:1.20-bullseye
2022-11-11 04:26:21 +00:00
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
2023-02-24 08:35:24 +00:00
run: CGO_ENABLED=0 go build -buildvcs=false -ldflags="-s -w"
2022-11-11 04:26:21 +00:00
- name: Upload to releases
uses: svenstaro/upload-release-action@v2
id: attach_to_release
with:
file: go-vod
asset_name: go-vod-amd64
tag: ${{ github.ref }}
2023-02-24 08:29:50 +00:00
overwrite: true