Skip to content

ci: cross compile to windows #4

ci: cross compile to windows

ci: cross compile to windows #4

Workflow file for this run

name: release
on:
pull_request:
push:
# run only against tags
tags:
- "*"
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install MinGW for cross-compiling to Windows
run: |
sudo apt-get update
sudo apt-get install -y gcc-mingw-w64 g++-mingw-w64
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23.1
cache: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}