-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (75 loc) · 2.29 KB
/
pre-release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: prerelease-supermake
run-name: Pre-release ${{ github.ref_name }}
on:
push:
tags:
- v*.*.*-pre
jobs:
build_windows:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.21.6'
- run: |
GOOS=windows GOARCH=amd64 go build -buildvcs=false -o bin/supermake_windows_x64.exe
GOOS=windows GOARCH=386 go build -buildvcs=false -o bin/supermake_windows_x32.exe
- name: 'Upload build artifacts'
uses: actions/upload-artifact@v4
with:
name: windows-builds
path: bin/*
retention-days: 3
build_mac:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.21.6'
- run: |
GOOS=darwin GOARCH=amd64 go build -buildvcs=false -o bin/supermake_darwin_x64
GOOS=darwin GOARCH=arm64 go build -buildvcs=false -o bin/supermake_mac_arm64
- name: 'Upload build artifacts'
uses: actions/upload-artifact@v4
with:
name: mac-builds
path: bin/*
retention-days: 3
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.21.6'
- run: |
GOOS=linux GOARCH=amd64 go build -buildvcs=false -o bin/supermake_linux_x64
GOOS=linux GOARCH=386 go build -buildvcs=false -o bin/supermake_linux_x32
- name: 'Upload build artifacts'
uses: actions/upload-artifact@v4
with:
name: linux-builds
path: bin/*
retention-days: 3
release:
runs-on: ubuntu-latest
permissions:
contents: write
needs:
- build_windows
- build_mac
- build_linux
steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
- uses: ncipollo/release-action@v1
with:
artifacts: "windows-builds/*,mac-builds/*,linux-builds/*"
allowUpdates: true
makeLatest: false
prerelease: true
replacesArtifacts: true
artifactErrorsFailBuild: true
generateReleaseNotes: true