Skip to content

Commit

Permalink
Publish a dev release on every commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Mar 24, 2023
1 parent ccab9b0 commit cc570ae
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,43 @@ jobs:
with:
name: cg_clif-${{ runner.os }}-cross-x86_64-mingw
path: cg_clif.tar.xz

release:
runs-on: ubuntu-latest
timeout-minutes: 10
if: ${{ github.ref == 'refs/heads/master' }}
needs: [rustfmt, test, bench, dist]

concurrency:
group: release-dev
cancel-in-progress: true

steps:
- uses: actions/checkout@v3

- name: Download all built artifacts
uses: actions/download-artifact@v3
with:
path: artifacts/

- run: |
ls -R artifacts/
mkdir release/
pushd artifacts/
for dir in *; do
mv $dir/cg_clif.tar.xz ../release/$dir.tar.xz
rmdir $dir/ # verify $dir is empty
done
popd
rmdir artifacts/ # verify all artifacts are represented in release/
ls -R release/
- run: npm install --production
working-directory: .github/actions/github-release

- name: Publish Release
uses: ./.github/actions/github-release
with:
files: "release/*"
token: ${{ github.token }}
continue-on-error: true
5 changes: 2 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ $ ./test.sh

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

Alternatively you can download a pre built version from [Github Actions]. It is listed in the artifacts section
of workflow runs. Unfortunately due to GHA restrictions you need to be logged in to access it.
Alternatively you can download a pre built version from the [releases] page.

[Github Actions]: https://github.com/bjorn3/rustc_codegen_cranelift/actions?query=branch%3Amaster+event%3Apush+is%3Asuccess
[releases]: https://github.com/bjorn3/rustc_codegen_cranelift/releases/tag/dev

## Usage

Expand Down

0 comments on commit cc570ae

Please sign in to comment.