Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
triple: x86_64-unknown-linux-gnu
- os: ubuntu-22.04-arm
triple: aarch64-unknown-linux-gnu
channel:
- stable
- nightly
runs-on: ${{ matrix.os }}
steps:
- name: Install nightly toolchain
Expand All @@ -40,24 +43,31 @@ jobs:
submodules: "recursive"
path: rust

- name: Configure channel
run: |
sed -i.bak 's/channel = "stable"/channel = "${{ matrix.channel }}"/' config.toml
echo "Building with channel: ${{ matrix.channel }}"
cat config.toml
working-directory: rust

- name: Build
run: make build-toolchain
working-directory: rust

- name: Archive
run: tar -czvf rust-toolchain-${{ matrix.triple }}.tar.gz rust/build/host/stage2
run: tar -czvf rust-toolchain-${{ matrix.channel }}-${{ matrix.triple }}.tar.gz rust/build/host/stage2

- name: Generate tag name
id: tag
run: |
echo "::set-output name=release_tag::stable-${GITHUB_SHA}"
echo "release_tag=${{ matrix.channel }}-${GITHUB_SHA}" >> $GITHUB_OUTPUT

- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag.outputs.release_tag }}
prerelease: true
files: |
rust-toolchain-${{ matrix.triple }}.tar.gz
rust-toolchain-${{ matrix.channel }}-${{ matrix.triple }}.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading