Skip to content

Commit 057145b

Browse files
authored
Merge pull request #1 from mobiuscode-de/Release-Ci
Create basic CI script for building release
2 parents dbb2389 + a0c7513 commit 057145b

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Basic action to build all relevant binaries for release
2+
# This action is based on examples given in:
3+
# https://github.com/wangyoucao577/go-release-action
4+
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
releases-matrix:
12+
name: Release Go Binary
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
17+
goos: [linux, windows, darwin]
18+
goarch: ["386", amd64, arm64]
19+
exclude:
20+
- goarch: "386"
21+
goos: darwin
22+
- goarch: arm64
23+
goos: windows
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: wangyoucao577/go-release-action@v1.25
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
goos: ${{ matrix.goos }}
30+
goarch: ${{ matrix.goarch }}
31+
binary_name: "imap-extractor"
32+
extra_files: LICENSE README.md

0 commit comments

Comments
 (0)