forked from nvim-telescope/telescope-fzf-native.nvim
-
Notifications
You must be signed in to change notification settings - Fork 1
203 lines (159 loc) · 4.53 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
name: Release
on:
push:
tags:
- "*"
branches:
- "main"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linux_x64:
name: make-linux_x64-binaries
strategy:
matrix:
include:
- os: ubuntu-22.04
compiler: gcc
- os: ubuntu-22.04
compiler: clang
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/compile-unix-x64
with:
compiler: ${{ matrix.compiler }}
- uses: actions/upload-artifact@v3
with:
name: linux-x64-${{ matrix.compiler }}
path: build/*.so
linux_arm:
name: make-linux_arm-binaries
strategy:
matrix:
include:
- dockerimage: ubuntu22.04
compiler: gcc
- dockerimage: ubuntu22.04
compiler: clang
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/compile-linux-arm
with:
compiler: ${{ matrix.compiler }}
dockerimage: ${{ matrix.dockerimage }}
- uses: actions/upload-artifact@v3
with:
name: linux-arm-${{ matrix.compiler }}
path: build/*.so
osx_x64:
name: make-osx_x64-binaries
strategy:
matrix:
include:
- os: macos-12
compiler: gcc
- os: macos-12
compiler: clang
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/compile-unix-x64
with:
compiler: ${{ matrix.compiler }}
- uses: actions/upload-artifact@v3
with:
name: osx-x64-${{ matrix.compiler }}
path: build/*.so
windows_x64:
name: make-windows_x64-binaries
strategy:
matrix:
include:
- os: windows-2019
compiler: cc
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/compile-windows-x64
- uses: actions/upload-artifact@v3
with:
name: windows-x64-${{ matrix.compiler }}
path: build/*.dll
experimental_zig:
name: make-${{matrix.arch}}-binaries-with-zig
strategy:
matrix:
include:
# windows
- target: arm-windows-gnu
os: windows
- target: aarch64-windows-gnu
os: windows
- target: x86_64-windows-gnu
os: windows
# linux
- target: x86_64-linux-gnu
os: linux
- target: x86_64-linux-musl
os: linux
- target: aarch64-linux-gnu
os: linux
- target: aarch64-linux-musl
os: linux
- target: arm-linux-gnueabi
os: linux
- target: arm-linux-gnueabihf
os: linux
- target: arm-linux-musleabi
os: linux
- target: arm-linux-musleabihf
os: linux
# osx
- target: aarch64-macos-none
os: osx
- target: aarch64-macos-none
os: osx
- target: aarch64-macos-none
os: osx
- target: x86_64-macos-none
os: osx
- target: x86_64-macos-none
os: osx
- target: x86_64-macos-none
os: osx
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/compile-with-zig
with:
arch: ${{ matrix.target }}
- uses: actions/upload-artifact@v3
with:
name: ${{matrix.os}}-${{ matrix.target }}-zig
path: build/*
release:
needs:
- linux_x64
- linux_arm
- osx_x64
- windows_x64
name: upload-binaries-to-release-page
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download artifacts from previous jobs
id: artifacts
uses: ./.github/actions/prepare-artifacts
- name: Upload release binaries
uses: ./.github/actions/release-binaries
with:
source: ${{ steps.artifacts.outputs.staging_area }}
is_development_release: ${{ !startsWith(github.ref, 'refs/tags') }}
is_production_release: ${{ startsWith(github.ref, 'refs/tags') }}
development_tag: dev
development_title: "dev (unstable)"
production_tag: ${{ github.ref_name }} # if we only consider tagged runs to be prod, then this will be the tag name
production_title: "Release: ${{ github.ref_name }}"