Skip to content

Commit 8315730

Browse files
committed
Upload prebuilt cg_clif
1 parent 0c34f5a commit 8315730

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,13 @@ jobs:
5151
export COMPILE_RUNS=2
5252
export RUN_RUNS=2
5353
54-
./test.sh --release
54+
./test.sh
55+
56+
- name: Package prebuilt cg_clif
57+
run: tar cvfJ cg_clif.tar.xz build
58+
59+
- name: Upload prebuilt cg_clif
60+
uses: actions/upload-artifact@v2
61+
with:
62+
name: cg_clif-${{ runner.os }}
63+
path: cg_clif.tar.xz

Readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ $ ./test.sh
2525
This will implicitly build cg_clif too. Both `build.sh` and `test.sh` accept a `--debug` argument to
2626
build in debug mode.
2727

28+
Alternatively you can download a pre built version from [GHA]. It is listed in the artifacts section
29+
of workflow runs. Unfortunately due to GHA restrictions you need to be logged in to access it.
30+
31+
[GHA]: https://github.com/bjorn3/rustc_codegen_cranelift/actions?query=branch%3Amaster+event%3Apush+is%3Asuccess
32+
2833
## Usage
2934

3035
rustc_codegen_cranelift can be used as a near-drop-in replacement for `cargo build` or `cargo run` for existing projects.

0 commit comments

Comments
 (0)