about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2020-11-02 18:24:21 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2020-11-02 18:24:21 +0100
commit831573089555f8f7b6f7fbf021a92c95ad4a98a9 (patch)
tree80cb4ccdb8f5e4c0d74e3a7f7de3dc97b0bd4fcc
parent0c34f5aba8544e2319c1587ac067c188a2d97877 (diff)
downloadrust-831573089555f8f7b6f7fbf021a92c95ad4a98a9.tar.gz
rust-831573089555f8f7b6f7fbf021a92c95ad4a98a9.zip
Upload prebuilt cg_clif
-rw-r--r--.github/workflows/main.yml11
-rw-r--r--Readme.md5
2 files changed, 15 insertions, 1 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 841e1a0870e..e6d3375fb1b 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -51,4 +51,13 @@ jobs:
         export COMPILE_RUNS=2
         export RUN_RUNS=2
 
-        ./test.sh --release
+        ./test.sh
+
+    - name: Package prebuilt cg_clif
+      run: tar cvfJ cg_clif.tar.xz build
+
+    - name: Upload prebuilt cg_clif
+      uses: actions/upload-artifact@v2
+      with:
+        name: cg_clif-${{ runner.os }}
+        path: cg_clif.tar.xz
diff --git a/Readme.md b/Readme.md
index 151334877a0..f8a5e13ed54 100644
--- a/Readme.md
+++ b/Readme.md
@@ -25,6 +25,11 @@ $ ./test.sh
 This will implicitly build cg_clif too. Both `build.sh` and `test.sh` accept a `--debug` argument to
 build in debug mode.
 
+Alternatively you can download a pre built version from [GHA]. It is listed in the artifacts section
+of workflow runs. Unfortunately due to GHA restrictions you need to be logged in to access it.
+
+[GHA]: https://github.com/bjorn3/rustc_codegen_cranelift/actions?query=branch%3Amaster+event%3Apush+is%3Asuccess
+
 ## Usage
 
 rustc_codegen_cranelift can be used as a near-drop-in replacement for `cargo build` or `cargo run` for existing projects.