Skip to content

Commit 929bb50

Browse files
committed
add goreleaser config, release workflow, remove manual release script
Cross-compile for linux, darwin, windows on amd64 and arm64. Produce tar.gz, zip, deb, rpm, and archlinux packages. Release workflow triggers on tag push.
1 parent 0daf59d commit 929bb50

5 files changed

Lines changed: 69 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ jobs:
1717
- uses: actions/setup-go@v5
1818
with:
1919
go-version: ${{ matrix.go-version }}
20+
- run: go build ./...
2021
- run: go vet ./...
2122
- run: go test -v -race ./...

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: actions/setup-go@v5
19+
with:
20+
go-version: stable
21+
- uses: goreleaser/goreleaser-action@v6
22+
with:
23+
version: latest
24+
args: release --clean
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/

.goreleaser.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
version: 2
2+
3+
project_name: wsdl2go
4+
5+
builds:
6+
- main: .
7+
binary: wsdl2go
8+
ldflags:
9+
- -s -w -X main.version={{.Version}}
10+
goos:
11+
- linux
12+
- darwin
13+
- windows
14+
goarch:
15+
- amd64
16+
- arm64
17+
18+
archives:
19+
- formats:
20+
- tar.gz
21+
format_overrides:
22+
- goos: windows
23+
formats:
24+
- zip
25+
26+
nfpms:
27+
- vendor: fiorix
28+
homepage: https://github.com/fiorix/wsdl2go
29+
maintainer: Alexandre Fiori
30+
description: Generate Go code from WSDL
31+
license: Apache-2.0
32+
formats:
33+
- deb
34+
- rpm
35+
- archlinux
36+
37+
checksum:
38+
name_template: checksums.txt
39+
40+
changelog:
41+
use: github-native

contrib/release.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)