File tree 2 files changed +42
-3
lines changed
2 files changed +42
-3
lines changed Original file line number Diff line number Diff line change @@ -218,3 +218,43 @@ jobs:
218
218
with :
219
219
name : cg_clif-${{ runner.os }}-cross-x86_64-mingw
220
220
path : cg_clif.tar.xz
221
+
222
+ release :
223
+ runs-on : ubuntu-latest
224
+ timeout-minutes : 10
225
+ if : ${{ github.ref == 'refs/heads/master' }}
226
+ needs : [rustfmt, test, bench, dist]
227
+
228
+ concurrency :
229
+ group : release-dev
230
+ cancel-in-progress : true
231
+
232
+ steps :
233
+ - uses : actions/checkout@v3
234
+
235
+ - name : Download all built artifacts
236
+ uses : actions/download-artifact@v3
237
+ with :
238
+ path : artifacts/
239
+
240
+ - run : |
241
+ ls -R artifacts/
242
+ mkdir release/
243
+ pushd artifacts/
244
+ for dir in *; do
245
+ mv $dir/cg_clif.tar.xz ../release/$dir.tar.xz
246
+ rmdir $dir/ # verify $dir is empty
247
+ done
248
+ popd
249
+ rmdir artifacts/ # verify all artifacts are represented in release/
250
+ ls -R release/
251
+
252
+ - run : npm install --production
253
+ working-directory : .github/actions/github-release
254
+
255
+ - name : Publish Release
256
+ uses : ./.github/actions/github-release
257
+ with :
258
+ files : " release/*"
259
+ token : ${{ github.token }}
260
+ continue-on-error : true
Original file line number Diff line number Diff line change @@ -22,10 +22,9 @@ $ ./test.sh
22
22
23
23
For more docs on how to build and test see [ build_system/usage.txt] ( build_system/usage.txt ) or the help message of ` ./y.rs ` .
24
24
25
- Alternatively you can download a pre built version from [ Github Actions] . It is listed in the artifacts section
26
- of workflow runs. Unfortunately due to GHA restrictions you need to be logged in to access it.
25
+ Alternatively you can download a pre built version from the [ releases] page.
27
26
28
- [ Github Actions ] : https://github.com/bjorn3/rustc_codegen_cranelift/actions?query=branch%3Amaster+event%3Apush+is%3Asuccess
27
+ [ releases ] : https://github.com/bjorn3/rustc_codegen_cranelift/releases/tag/dev
29
28
30
29
## Usage
31
30
You can’t perform that action at this time.
0 commit comments