-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (55 loc) · 1.92 KB
/
release.yml
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
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
build-linux-x86_64:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install tools
run: |
sudo curl -fLo /usr/local/bin/bazel "https://github.com/bazelbuild/bazel/releases/download/6.5.0/bazel-6.5.0-linux-x86_64"
sudo chmod +x /usr/local/bin/bazel
- name: Build
run: |
bazel build -c opt net/tools:miracle-proxy
ln bazel-bin/net/tools/miracle-proxy miracle-proxy-${GITHUB_REF_NAME}-linux-x86_64
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
miracle-proxy-v*.*.*-linux-x86_64
build-linux-arm64:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install tools
run: |
sudo apt-get update
sudo apt-get install crossbuild-essential-arm64 -y
sudo curl -fLo /usr/local/bin/bazel "https://github.com/bazelbuild/bazel/releases/download/6.5.0/bazel-6.5.0-linux-x86_64"
sudo chmod +x /usr/local/bin/bazel
- name: Build
run: |
bazel build -c opt --cpu=aarch64 --crosstool_top=@org_iceboy_trunk//third_party/linux_crosstool net/tools:miracle-proxy
ln bazel-bin/net/tools/miracle-proxy miracle-proxy-${GITHUB_REF_NAME}-linux-arm64
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
miracle-proxy-v*.*.*-linux-arm64
build-windows-x86_64:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Build
run: |
bazel build -c opt net/tools:miracle-proxy
Copy-Item bazel-bin\net\tools\miracle-proxy.exe -Destination miracle-proxy-$Env:GITHUB_REF_NAME-windows-x86_64.exe
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
miracle-proxy-v*.*.*-windows-x86_64.exe