Skip to content

Commit 65533ee

Browse files
georgikstevecheckowaySergioGasquezdcolessvenstaro
authored
Build of toolchain 1.63.0.1 (#135)
* ci: bump up version to 1.63.0.1 * Build without linking to homebrew libs (#128) * Use cargo install for `cargo-generate` * Change PowerShell `source` references to `.` (#133) * Fix README link to releases (#112) * ci: msys build using shallow repo * ci: cargo on Linux - use static linking due to ssl issues (#68) Co-authored-by: Stephen Checkoway <[email protected]> Co-authored-by: Sergio Gasquez Arcos <[email protected]> Co-authored-by: David Coles <[email protected]> Co-authored-by: Sven-Hendrik Haase <[email protected]>
1 parent 5c9e32d commit 65533ee

27 files changed

+95
-51
lines changed

.github/workflows/build-rust-aarch64-apple-darwin-self-hosted-dispatch.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
release_version:
1616
description: 'Release Version for generation'
1717
required: true
18-
default: '1.62.1.0'
18+
default: '1.63.0.1'
1919
rust_version:
2020
description: 'Version of esp rust to use'
2121
required: true
@@ -71,7 +71,7 @@ jobs:
7171
submodules: true
7272
- name: Prepare build
7373
run: |
74-
arch -arm64 python3 src/bootstrap/configure.py --experimental-targets=Xtensa --release-channel=nightly --enable-extended --tools=clippy,cargo,rustfmt --dist-compression-formats='xz' --set rust.jemalloc
74+
arch -arm64 python3 src/bootstrap/configure.py --experimental-targets=Xtensa --release-channel=nightly --enable-extended --enable-cargo-native-static --tools=clippy,cargo,rustfmt --dist-compression-formats='xz' --set rust.jemalloc
7575
- name: Build with x.py - dist packages - with cached LLVM
7676
run: arch -arm64 python3 x.py dist --stage 2 || echo "silence pkg build error"
7777
- name: Upload Release Asset

.github/workflows/build-rust-aarch64-unknown-linux-gnu-self-hosted-dispatch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
release_version:
1616
description: 'Release Version for generation'
1717
required: true
18-
default: '1.62.1.0'
18+
default: '1.63.0.1'
1919
rust_version:
2020
description: 'Version of esp rust to use'
2121
required: true

.github/workflows/build-rust-src-dispatch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
release_version:
1515
description: 'Release Version for generation'
1616
required: true
17-
default: '1.62.1.0'
17+
default: '1.63.0.1'
1818
rust_version:
1919
description: 'Version of esp rust to use'
2020
required: true

.github/workflows/build-rust-x86_64-apple-darwin-self-hosted-dispatch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
release_version:
1616
description: 'Release Version for generation'
1717
required: true
18-
default: '1.62.1.0'
18+
default: '1.63.0.1'
1919
rust_version:
2020
description: 'Version of esp rust to use'
2121
required: true

.github/workflows/build-rust-x86_64-pc-windows-msvc-self-hosted-dispatch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
release_version:
1616
description: 'Release Version for generation'
1717
required: true
18-
default: '1.62.1.0'
18+
default: '1.63.0.1'
1919
rust_version:
2020
description: 'Version of esp rust to use'
2121
required: true

.github/workflows/build-rust-x86_64-unknown-linux-gnu-self-hosted-dispatch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
release_version:
1616
description: 'Release Version for generation'
1717
required: true
18-
default: '1.62.1.0'
18+
default: '1.63.0.1'
1919
rust_version:
2020
description: 'Version of esp rust to use'
2121
required: true

.github/workflows/installer-check.yaml

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Test installer by building template projects
22

3+
env:
4+
xtensa-toolchain-version: '1.62.1.0'
5+
36
on:
47
push:
58
paths:
@@ -104,10 +107,12 @@ jobs:
104107
cd test-${{ matrix.board }}
105108
cargo build
106109
crate-check:
110+
if: github.event_name == 'workflow_dispatch'
107111
strategy:
108112
fail-fast: false
109113
matrix:
110114
os: [ubuntu-latest, macos-latest]
115+
extra-crates: ["", "ldproxy", "espflash cargo-espflash ldproxy cargo-generate wokwi-server web-flash"]
111116
runs-on: ${{ matrix.os }}
112117
defaults:
113118
run:
@@ -118,10 +123,9 @@ jobs:
118123
with:
119124
ref: ${{ github.event.inputs.rust-build-branch }}
120125
- name: Install toolchain
121-
run: |
122-
./install-rust-toolchain.sh \
123-
--extra-crates "espflash cargo-espflash ldproxy cargo-generate wokwi-server web-flash"
126+
run: ./install-rust-toolchain.sh --extra-crates "${{ matrix.extra-crates }}"
124127
minified-llvm:
128+
if: github.event_name == 'workflow_dispatch'
125129
strategy:
126130
fail-fast: false
127131
matrix:
@@ -140,3 +144,42 @@ jobs:
140144
run: |
141145
./install-rust-toolchain.sh \
142146
--minified-llvm "${{ matrix.minified-llvm }}"
147+
installation-modes:
148+
if: github.event_name == 'workflow_dispatch'
149+
strategy:
150+
fail-fast: false
151+
matrix:
152+
os: [ubuntu-latest, macos-latest]
153+
runs-on: ${{ matrix.os }}
154+
defaults:
155+
run:
156+
shell: bash
157+
steps:
158+
- name: Checkout
159+
uses: actions/checkout@v2
160+
- name: Install toolchain
161+
run: |
162+
./install-rust-toolchain.sh --installation-mode "install"
163+
- name: Reinstall toolchain
164+
run: |
165+
./install-rust-toolchain.sh --installation-mode "reinstall"
166+
- name: Uninstall toolchain
167+
run: |
168+
./install-rust-toolchain.sh --installation-mode "uninstall"
169+
test-arguments:
170+
if: github.event_name == 'workflow_dispatch'
171+
strategy:
172+
fail-fast: false
173+
matrix:
174+
os: [ubuntu-latest, macos-latest]
175+
arguments: ["", "--toolchain-version $xtensa-toolchain-version --export-file export-esp-rust.sh", "--build-target all"]
176+
runs-on: ${{ matrix.os }}
177+
defaults:
178+
run:
179+
shell: bash
180+
steps:
181+
- name: Checkout
182+
uses: actions/checkout@v2
183+
- name: Install toolchain
184+
run: |
185+
./install-rust-toolchain.sh "${{ matrix.arguments }}"

.github/workflows/publish-idf-rust-examples-image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ on:
1010
release_version:
1111
description: 'Release version - long 4 places for tag'
1212
required: true
13-
default: '1.62.1.0'
13+
default: '1.63.0.1'
1414
rust_patch_version:
1515
description: 'Release patch version for generation - 3 places for tag'
1616
required: true
17-
default: '1.62.1'
17+
default: '1.63.0'
1818
rust_minor_version:
1919
description: 'Release minor version - 2 places for tag'
2020
required: true

.github/workflows/publish-idf-rust-image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ on:
1010
release_version:
1111
description: 'Release version - long 4 places for tag'
1212
required: true
13-
default: '1.62.1.0'
13+
default: '1.63.0.1'
1414
rust_patch_version:
1515
description: 'Release patch version for generation - 3 places for tag'
1616
required: true
17-
default: '1.62.1'
17+
default: '1.63.0'
1818
rust_minor_version:
1919
description: 'Release minor version - 2 places for tag'
2020
required: true

.github/workflows/publish-idf-rust-tags.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
toolchain-version:
1111
description: "Version of Rust toolchain"
1212
required: true
13-
default: '1.62.1.0'
13+
default: '1.63.0.1'
1414

1515
jobs:
1616
esp-idf:

.github/workflows/release-installer-dispatch.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ on:
1010
release_version:
1111
description: 'Release Version for generation'
1212
required: true
13-
default: '1.62.1.0'
13+
default: '1.63.0.1'
1414
rust_version:
1515
description: 'Version of esp rust to use'
1616
required: true
17-
default: '1.62.1'
17+
default: '1.63.0'
1818

1919

2020
# We Break this down into individual jobs to avoid disk space issues

.github/workflows/test-rust-aarch64-apple-darwin-dispatch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
toolchain_version:
1111
description: 'Version of Rust IDF toolchain'
1212
required: true
13-
default: '1.62.1.0'
13+
default: '1.63.0.1'
1414
target:
1515
description: 'Target to build (e.g. xtensa-esp32-espidf)'
1616
required: true

.github/workflows/test-rust-x86_64-apple-darwin-dispatch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
toolchain_version:
1111
description: 'Version of Rust IDF toolchain'
1212
required: true
13-
default: '1.62.1.0'
13+
default: '1.63.0.1'
1414

1515
jobs:
1616
build-idf-rust-examples:

.github/workflows/test-rust-x86_64-pc-windows-msvc-dispatch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
toolchain_version:
1111
description: 'Version of Rust IDF toolchain'
1212
required: true
13-
default: '1.62.1.0'
13+
default: '1.63.0.1'
1414

1515
jobs:
1616
build-idf-rust-examples:

.github/workflows/test-rust-x86_64-pc-windows-msvc-self-hosted-dispatch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
ARCH: ''
2121
TARGET: win-x64
2222
ASSET_PATH: 'build/dist/esp.zip'
23-
ASSET_NAME: 'rust-1.62.1.0-x86_64-pc-windows-msvc.zip'
23+
ASSET_NAME: 'rust-1.63.0.1-x86_64-pc-windows-msvc.zip'
2424
ASSET_CONTENT_TYPE: 'application/zip'
2525
LLVM_ROOT_OPTION: '--llvm-root=C:/llvm-project'
2626
steps:

.github/workflows/test-rust-x86_64-unknown-linux-gnu-dispatch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
toolchain_version:
1111
description: 'Version of Rust IDF toolchain'
1212
required: true
13-
default: '1.62.1.0'
13+
default: '1.63.0.1'
1414
esp_idf_version:
1515
description: 'Version of ESP-IDF for the build'
1616
required: true

Install-RustToolchain.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ param (
77
[String]
88
$ExportFile = '',
99
[String]
10-
$ToolchainVersion = '1.62.1.0',
10+
$ToolchainVersion = '1.63.0.1',
1111
[String]
1212
$ToolchainDestination = "${HOME}/.rustup/toolchains/esp",
1313
[String]

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ This repository contains:
3232

3333
## Xtensa Installation
3434

35-
Download installer from Release section: [https://github.com/esp-rs/rust-build/releases/tag/v1.62.1.0]
35+
Download the installer from the [Release section](https://github.com/esp-rs/rust-build/releases).
3636

3737
### Download installer
3838

3939
#### Download installer in Bash
4040

4141
```bash
42-
curl -LO https://github.com/esp-rs/rust-build/releases/download/v1.62.1.0/install-rust-toolchain.sh
42+
curl -LO https://github.com/esp-rs/rust-build/releases/download/v1.63.0.1/install-rust-toolchain.sh
4343
chmod a+x install-rust-toolchain.sh
4444
```
4545

4646
#### Download installer in PowerShell
4747

4848
```powershell
49-
Invoke-WebRequest 'https://github.com/esp-rs/rust-build/releases/download/v1.62.1.0/Install-RustToolchain.ps1' -OutFile .\Install-RustToolchain.ps1
49+
Invoke-WebRequest 'https://github.com/esp-rs/rust-build/releases/download/v1.63.0.1/Install-RustToolchain.ps1' -OutFile .\Install-RustToolchain.ps1
5050
```
5151

5252
### Linux and macOS
@@ -83,7 +83,7 @@ Export variables are displayed at the end of the script.
8383
Installation of different version of the toolchain:
8484

8585
```
86-
./install-rust-toolchain.sh --toolchain-version 1.62.1.0 --export-file export-esp-rust.sh
86+
./install-rust-toolchain.sh --toolchain-version 1.63.0.1 --export-file export-esp-rust.sh
8787
source export-esp-rust.sh
8888
```
8989
@@ -94,13 +94,14 @@ source export-esp-rust.sh
9494
- `-e|--extra-crates`: Extra crates to install. Defaults to: `ldproxy cargo-espflash`
9595
- `-f|--export-file`: Destination of the export file generated.
9696
- `-i|--installation-mode`: Installation mode: [`install, reinstall, uninstall`]. Defaults to: `install`
97+
- `-k|--minified-llvm`: Use minified LLVM. Possible values: [`YES, NO`]. Defaults to: `YES`
9798
- `-l|--llvm-version`: LLVM version.
98-
- `-m|--minified-esp-idf`: [Only applies if using `-s|--esp-idf-version`]. Deletes some idf folders to save space. Possible values [`YES, NO`]
99+
- `-m|--minified-esp-idf`: [Only applies if using `-s|--esp-idf-version`]. Deletes some idf folders to save space. Possible values [`YES, NO`]. Defaults to: `NO`
99100
- `-n|--nightly-version`: Nightly Rust toolchain version. Defaults to: `nightly`
100101
- `-r|--rustup-home`: Path to .rustup. Defaults to: `~/.rustup`
101102
- `-s|--esp-idf-version`: [ESP-IDF branch](https://github.com/espressif/esp-idf/branches) to install. When empty, no esp-idf is installed. Default: `""`
102103
- `-t|--toolchain-version`: Xtensa Rust toolchain version
103-
- `-x|--clear-cache`: Removes cached distribution files. Possible values: [`YES, NO`]
104+
- `-x|--clear-cache`: Removes cached distribution files. Possible values: [`YES, NO`]. Defaults to: `YES`
104105
105106
### Windows x86_64 GNU
106107
@@ -125,8 +126,8 @@ Activate ESP-IDF PowerShell and enter following command:
125126
```powershell
126127
git clone https://github.com/esp-rs/rust-build.git
127128
cd rust-build
128-
./Install-RustToolchain.ps1 -DefaultHost x86_64-pc-windows-gnu -ExportFile Export-EspRust.ps1
129-
source Export-EspRust.ps1
129+
./Install-RustToolchain.ps1 -DefaultHost x86_64-pc-windows-gnu -ExportFile Export-EspRust.ps1
130+
. ./Export-EspRust.ps1
130131
```
131132

132133
### Windows x86_64 MSVC
@@ -161,8 +162,8 @@ Export variables are displayed at the end of the output from the script.
161162
Installation of different versions of toolchain:
162163

163164
```sh
164-
./Install-RustToolchain.ps1 -ToolchainVersion 1.62.1.0 -ExportFile Export-EspRust.ps1
165-
source ./Export-EspRust.ps1
165+
./Install-RustToolchain.ps1 -ToolchainVersion 1.63.0.1 -ExportFile Export-EspRust.ps1
166+
. ./Export-EspRust.ps1
166167
```
167168

168169
## RISC-V Installation

Test-RustToolchain.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ param (
55
[ValidateSet("x86_64-pc-windows-msvc", "x86_64-pc-windows-gnu")]
66
$DefaultHost = "x86_64-pc-windows-msvc",
77
[String]
8-
$ToolchainVersion = '1.62.1.0',
8+
$ToolchainVersion = '1.63.0.1',
99
[String]
1010
[ValidateSet("xtensa-esp32-espidf", "xtensa-esp32s2-espidf", "xtensa-esp32s3-espidf", "riscv32imc-esp-espidf")]
1111
$Target = "xtensa-esp32-espidf",

idf-rust.Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ENV LANG=C.UTF-8
88
ARG CONTAINER_USER=esp
99
ARG CONTAINER_GROUP=esp
1010
ARG NIGHTLY_TOOLCHAIN_VERSION=nightly
11-
ARG XTENSA_TOOLCHAIN_VERSION=1.62.1.0
11+
ARG XTENSA_TOOLCHAIN_VERSION=1.63.0.1
1212
ARG ESP_IDF_VERSION=""
1313
ARG ESP_BOARD=esp32,esp32s2,esp32s3
1414
ARG INSTALL_RUST_TOOLCHAIN=install-rust-toolchain.sh

install-rust-toolchain.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -eu
44
#set -v
55

66
# Default values
7-
TOOLCHAIN_VERSION="1.62.1.0"
7+
TOOLCHAIN_VERSION="1.63.0.1"
88
RUSTUP_HOME="${RUSTUP_HOME:-${HOME}/.rustup}"
99
CARGO_HOME="${CARGO_HOME:-${HOME}/.cargo}"
1010
TOOLCHAIN_DESTINATION_DIR="${RUSTUP_HOME}/toolchains/esp"
@@ -535,10 +535,10 @@ elif [[ ${ARCH} == "x86_64-unknown-linux-gnu" ]]; then
535535
ESPFLASH_BIN="${CARGO_HOME}/bin/espflash"
536536
LDPROXY_URL="https://github.com/esp-rs/embuild/releases/latest/download/ldproxy-${ARCH}.zip"
537537
LDPROXY_BIN="${CARGO_HOME}/bin/ldproxy"
538-
if [[ "${EXTRA_CRATES}" =~ "cargo-generate" ]]; then
539-
GENERATE_URL="https://github.com/cargo-generate/cargo-generate/releases/latest/download/cargo-generate-${GENERATE_VERSION}-${ARCH}.tar.gz"
540-
fi
541-
GENERATE_BIN="${CARGO_HOME}/bin/cargo-generate"
538+
# if [[ "${EXTRA_CRATES}" =~ "cargo-generate" ]]; then
539+
# GENERATE_URL="https://github.com/cargo-generate/cargo-generate/releases/latest/download/cargo-generate-${GENERATE_VERSION}-${ARCH}.tar.gz"
540+
# fi
541+
# GENERATE_BIN="${CARGO_HOME}/bin/cargo-generate"
542542
WOKWI_SERVER_URL="https://github.com/MabezDev/wokwi-server/releases/latest/download/wokwi-server-${ARCH}.zip"
543543
WOKWI_SERVER_BIN="${CARGO_HOME}/bin/wokwi-server"
544544
WEB_FLASH_URL="https://github.com/bjoernQ/esp-web-flash-server/releases/latest/download/web-flash-${ARCH}.zip"
@@ -547,10 +547,10 @@ elif [[ ${ARCH} == "aarch64-unknown-linux-gnu" ]]; then
547547
GCC_ARCH="linux-arm64"
548548
MINIFIED_LLVM="YES"
549549
SYSTEM_PACKAGES=""
550-
if [[ "${EXTRA_CRATES}" =~ "cargo-generate" ]]; then
551-
GENERATE_URL="https://github.com/cargo-generate/cargo-generate/releases/latest/download/cargo-generate-${GENERATE_VERSION}-${ARCH}.tar.gz"
552-
fi
553-
GENERATE_BIN="${CARGO_HOME}/bin/cargo-generate"
550+
# if [[ "${EXTRA_CRATES}" =~ "cargo-generate" ]]; then
551+
# GENERATE_URL="https://github.com/cargo-generate/cargo-generate/releases/latest/download/cargo-generate-${GENERATE_VERSION}-${ARCH}.tar.gz"
552+
# fi
553+
# GENERATE_BIN="${CARGO_HOME}/bin/cargo-generate"
554554
CARGO_ESPFLASH_URL="https://github.com/esp-rs/espflash/releases/latest/download/cargo-espflash-${ARCH}.zip"
555555
CARGO_ESPFLASH_BIN="${CARGO_HOME}/bin/cargo-espflash"
556556
ESPFLASH_URL="https://github.com/esp-rs/espflash/releases/latest/download/espflash-${ARCH}.zip"

support/rust-build/Repackage-RustRelease.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ param (
1111
$ErrorActionPreference = "Stop"
1212

1313
$RustVersion="nightly"
14-
$ReleaseVersion="1.62.1.0"
14+
$ReleaseVersion="1.63.0.1"
1515

1616
if (Test-Path -Path esp -PathType Container) {
1717
Remove-Item -Recurse -Force -Path esp

support/rust-build/aarch64-unknown-linux-gnu/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ set -e
44

55
git clone --recursive --depth 1 --shallow-submodules https://github.com/esp-rs/rust.git
66
cd rust
7-
python3 src/bootstrap/configure.py --experimental-targets=Xtensa --release-channel=nightly --enable-extended --tools=clippy,cargo,rustfmt --dist-compression-formats='xz'
7+
python3 src/bootstrap/configure.py --experimental-targets=Xtensa --release-channel=nightly --enable-extended --enable-cargo-native-static --tools=clippy,cargo,rustfmt --dist-compression-formats='xz'
88
python3 x.py dist --stage 2
99

0 commit comments

Comments
 (0)