Skip to content

ci: replace softprops/action-gh-release with GitHub CLI #39

ci: replace softprops/action-gh-release with GitHub CLI

ci: replace softprops/action-gh-release with GitHub CLI #39

Workflow file for this run

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