-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (58 loc) · 1.64 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: release
on:
workflow_call:
workflow_dispatch:
push:
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: macos-14
triple: aarch64-apple-darwin
- os: macos-13
triple: x86_64-apple-darwin
- os: buildjet-32vcpu-ubuntu-2004
triple: x86_64-unknown-linux-gnu
- os: buildjet-32vcpu-ubuntu-2204-arm
triple: aarch64-unknown-linux-gnu
runs-on: ${{ matrix.os }}
steps:
- name: Install nightly toolchain
id: rustc-toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2024-01-25
default: true
- uses: lukka/[email protected]
- name: Show rust version
run: |
cargo version
rustup toolchain list
- name: Check out a16z/rust
uses: actions/checkout@v3
with:
repository: a16z/rust
submodules: "recursive"
path: rust
fetch-depth: 0
ref: ci
- name: Build
run: make build-toolchain
working-directory: rust
- name: Archive
run: tar -czvf rust-toolchain-${{ matrix.triple }}.tar.gz rust/build/host/stage2
- name: Generate tag name
id: tag
run: |
echo "::set-output name=release_tag::nightly-${GITHUB_SHA}"
- 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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}