Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
b44fed0
docs: Updated docs
zhangxuan2011 Feb 22, 2026
045255c
refactor(bootstrap): Updated bootstrap
zhangxuan2011 Feb 22, 2026
b4eb5f9
fix(bootstrap): Fixed encoding issue
zhangxuan2011 Feb 22, 2026
cda3e51
ci: Added auto-build workflow
zhangxuan2011 Feb 22, 2026
b011bfc
chore: Removed submodules recursive (because bootstrap will do!)
zhangxuan2011 Feb 22, 2026
6ef9b9a
fix(config): Fixed some error of bootstrap cfg
zhangxuan2011 Feb 22, 2026
b4367a8
ci(build-target): Add a upstream in building repo
zhangxuan2011 Feb 22, 2026
7654919
chore(ci): :fire: Removed unnessary workflows
zhangxuan2011 Feb 22, 2026
5db6b1a
fix(build-target): :ambulance: Fixed the issue about "build failed"
zhangxuan2011 Feb 22, 2026
ac75b63
fix(build-target): :green_heart: Fixed the packing issue
zhangxuan2011 Feb 23, 2026
141cf5c
chore: :zap: Optimized the bootstrap docs to approve the build-time
zhangxuan2011 Feb 23, 2026
2e6cde5
refactor(ci): Changed the workflow filename
zhangxuan2011 Feb 23, 2026
8a7eb05
fix(ci): :bug: Fixed the uploading issue
zhangxuan2011 Feb 23, 2026
2c90e7a
chore(readme): :memo: Fixed the display of README.md
zhangxuan2011 Feb 23, 2026
63d7f9f
chore(bootstrap): Added the `src` tools to support `rust-analyzer`check
zhangxuan2011 Feb 23, 2026
2dfe01d
ci(build-target): :art: Removed unnessary steps to save time
zhangxuan2011 Feb 24, 2026
1dd868b
fix(build-target): Fix that the toolchain won't work on i686
zhangxuan2011 Feb 24, 2026
e549de4
fix(build-target): :bug: Fixed the format error
zhangxuan2011 Feb 24, 2026
4d92a9d
ci: updated build-toolchain.yml
zhangxuan2011 Feb 24, 2026
dd57e8b
chore(build-target): :fire: Disabled the i686 compiling temporary
zhangxuan2011 Feb 24, 2026
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
92 changes: 92 additions & 0 deletions .github/workflows/build-toolchain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# This workflow will build the current toolchain automatically, and
# push it into release.
#
# It will also built-in an install script, which can scan it as a rustup toolchain, so
# that we can manage them easily.
#
# If we can, we will add multiple platform support (e.g. Windows, macOS, Linux)
# so that you can do cross-compile by using this toolchain.
#
# Workflow file by "zhangxuan2011 <zx20110412@outlook.com>"

---

name: Build Rust9x Toolchain

on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
version:
description: "The version to release, which must start with `v`"
required: true
default: "v1.93.0-rust9x"

permissions:
contents: write

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
# Windows, x86_64
- os: windows-latest
arch: x64
target: x86_64-pc-windows-msvc
target_short: x86_64-windows

# Windows, i686
# - os: windows-latest
# arch: x64
# target: i686-pc-windows-msvc
# target_short: i686-windows

defaults:
run:
shell: cmd

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: false

- name: Activate MSVC environment
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}

- name: Build toolchain
env:
# If this env exists, the commit hash is wrong and just return 404.
GITHUB_ACTIONS:
run: |
:: Avoid failed to unset
set GITHUB_ACTIONS=

:: Build & install in dist/rust9x
python x.py install --config bootstrap.rust9x.toml --set build.host=[\"${{ matrix.target }}\"] --stage 2
if %errorlevel% neq 0 exit /b 1

- name: Pack toolchain
run: |
set VERSION=${{ github.ref_name }}
set ARCHIVE_NAME=rust9x-toolchain-%VERSION%-${{ matrix.target_short }}.tar.gz

:: Pack everything inside build
tar -czvf "%ARCHIVE_NAME%" -C dist/rust9x .

- name: Upload to release
uses: softprops/action-gh-release@v2
with:
files: rust9x-toolchain-*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75 changes: 0 additions & 75 deletions .github/workflows/ghcr.yml

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/post-merge.yml

This file was deleted.

3 changes: 0 additions & 3 deletions CODE_OF_CONDUCT.md

This file was deleted.

Loading