forked from sleeyax/burp-awesome-tls
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (46 loc) · 1.35 KB
/
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
# To test this workflow locally, run the following command:
# act --use-gitignore=false
name: Release binaries
on:
push:
tags:
- 'v*'
jobs:
build:
name: Build and release binaries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Execute CGO builds using XGO
uses: crazy-max/ghaction-xgo@v2
# docs: https://github.com/marketplace/actions/golang-cgo-cross-compiler#inputs
with:
xgo_version: latest
go_version: 1.20.0
dest: build
pkg: cmd
prefix: server
targets: windows/386,windows/amd64,linux/386,linux/amd64,darwin/amd64
# Prints the build commands as compilation progresses (default false)
x: true
ldflags: -w
buildmode: c-shared
working_dir: ./src-go/server
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build cross-platform jar files
shell: sh
run: ./build.sh
- name: Upload binaries
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "./build/libs/*.jar"
tags: true
draft: true