-
Notifications
You must be signed in to change notification settings - Fork 8
86 lines (84 loc) · 2.44 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: release
on:
push:
tags:
- '*'
jobs:
linux-amd64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: docker build -o linux-amd64 -f build/Dockerfile .
- uses: actions/upload-artifact@v4
with:
name: linux-amd64
path: linux-amd64
linux-arm64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- run: docker buildx build --platform linux/arm64 -o linux-arm64 -f build/Dockerfile --load .
- uses: actions/upload-artifact@v4
with:
name: linux-arm64
path: linux-arm64
darwin-amd64:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- run: |
uname -a
sw_vers
system_profiler SPHardwareDataType
- run: bash build/github-actions.sh mac_prepare_tools
- run: bash build/github-actions.sh mac_build_perl
- run: bash build/github-actions.sh mac_create_artifacts
- uses: actions/upload-artifact@v4
with:
name: darwin-amd64
path: darwin-amd64
darwin-arm64:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- run: |
uname -a
sw_vers
system_profiler SPHardwareDataType
- run: bash build/github-actions.sh mac_prepare_tools
- run: bash build/github-actions.sh mac_build_perl
- run: bash build/github-actions.sh mac_create_artifacts
- uses: actions/upload-artifact@v4
with:
name: darwin-arm64
path: darwin-arm64
release:
runs-on: ubuntu-latest
needs:
- linux-amd64
- linux-arm64
- darwin-amd64
- darwin-arm64
steps:
- uses: actions/download-artifact@v4
with:
name: linux-amd64
path: linux-amd64
- uses: actions/download-artifact@v4
with:
name: linux-arm64
path: linux-arm64
- uses: actions/download-artifact@v4
with:
name: darwin-amd64
path: darwin-amd64
- uses: actions/download-artifact@v4
with:
name: darwin-arm64
path: darwin-arm64
- name: create release and upload release assets
run: gh release create --repo ${{ github.repository }} ${{ github.ref }} linux-*/*.gz linux-*/*.xz darwin-*/*.gz darwin-*/*.xz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}