@@ -127,19 +127,14 @@ jobs:
127
127
command : build
128
128
129
129
- release_for : macOS-x86_64
130
- os : macOS-latest
130
+ os :
131
+ - self-hosted
132
+ - Darwin
131
133
target : x86_64-apple-darwin
132
134
bin : ${{ needs.release.outputs.bin-name }}
133
135
name : ${{ needs.release.outputs.pkg-name }}-Darwin-x86_64.tar.gz
134
136
command : build
135
137
136
- - release_for : RaspberryPi
137
- os : ubuntu-20.04
138
- target : arm-unknown-linux-gnueabihf
139
- bin : ${{ needs.release.outputs.bin-name }}
140
- name : ${{ needs.release.outputs.pkg-name }}-RaspberryPi.tar.gz
141
- command : build
142
-
143
138
name : Upload asset for ${{ matrix.platform.release_for }}
144
139
runs-on : ${{ matrix.platform.os }}
145
140
permissions :
@@ -157,7 +152,6 @@ jobs:
157
152
printf '*%.0s' {1..60} && printf "\n"
158
153
echo "Updated rust version: $(rustc --version)"
159
154
printf '*%.0s' {1..60} && printf "\n"
160
- shell : bash
161
155
162
156
- name : Install OpenSSL static for Windows
163
157
# https://github.com/sfackler/rust-openssl/issues/1086
@@ -170,7 +164,6 @@ jobs:
170
164
echo ("vcpkg_dir=" + $pwd) >> $env:GITHUB_ENV
171
165
.\bootstrap-vcpkg.bat
172
166
.\vcpkg.exe install openssl:x64-windows-static
173
- shell : bash
174
167
175
168
- name : Build
176
169
run : |
@@ -189,15 +182,13 @@ jobs:
189
182
mkdir -p ${{ needs.release.outputs.pkg-name }}
190
183
cp target/release/${{ matrix.platform.bin }} ${{ needs.release.outputs.pkg-name }}/${{ matrix.platform.bin }}
191
184
Compress-Archive -DestinationPath ${{ matrix.platform.name }} -Path ${{ needs.release.outputs.pkg-name }}/
192
- shell : pwsh
193
185
194
186
- name : Copy Artifacts (macOS/Ubuntu)
195
187
if : ${{ matrix.platform.os != 'windows-latest' }}
196
188
run : |
197
189
mkdir -p ${{ needs.release.outputs.pkg-name }}
198
190
cp target/release/${{ matrix.platform.bin }} ${{ needs.release.outputs.pkg-name }}/${{ matrix.platform.bin }}
199
191
tar -zcvf ${{ matrix.platform.name }} ${{ needs.release.outputs.pkg-name }}/
200
- shell : bash
201
192
202
193
- name : Upload Asset to Release
203
194
run : |
0 commit comments