ci: replace softprops/action-gh-release with GitHub CLI #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
env: | |
GH_TOKEN: ${{ github.token }} | |
RUSTUP_TOOLCHAIN: 1.76.0 | |
jobs: | |
dist: | |
name: Build rust-std-hermit distribution artifacts | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Checkout rust | |
uses: actions/checkout@v4 | |
with: | |
repository: rust-lang/rust | |
ref: ${{ env.RUSTUP_TOOLCHAIN }} | |
path: rust | |
- name: Build rust-std distribution artifacts | |
run: ./x.py dist --config ../rust-config.toml rust-std | |
working-directory: ./rust | |
- name: Create distribution artifacts | |
run: | | |
./dist.sh ${{ env.RUSTUP_TOOLCHAIN }} aarch64-unknown-hermit | |
./dist.sh ${{ env.RUSTUP_TOOLCHAIN }} riscv64gc-unknown-hermit | |
./dist.sh ${{ env.RUSTUP_TOOLCHAIN }} x86_64-unknown-hermit | |
- run: gh release create ${{ env.RUSTUP_TOOLCHAIN }} rust/build/dist/*.tar.gz |