Skip to content

Commit cc570ae

Browse files
committed
Publish a dev release on every commit
1 parent ccab9b0 commit cc570ae

File tree

2 files changed

+42
-3
lines changed

2 files changed

+42
-3
lines changed

.github/workflows/main.yml

+40
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,43 @@ jobs:
218218
with:
219219
name: cg_clif-${{ runner.os }}-cross-x86_64-mingw
220220
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

Readme.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ $ ./test.sh
2222

2323
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`.
2424

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.
2726

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
2928

3029
## Usage
3130

0 commit comments

Comments
 (0)