Skip to content

Commit

Permalink
Build/1.76.0.1 (#255)
Browse files Browse the repository at this point in the history
* ci: bump version to 1.76.0.1
* ci: switch to runner - self-hosted, Windows
* ci: windows gnu remove matrix
* ci: update Windows MSVC build

---------

Co-authored-by: Sergio Gasquez <[email protected]>
  • Loading branch information
georgik and SergioGasquez authored Feb 19, 2024
1 parent ac3203f commit 8aac641
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 62 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-aarch64-apple-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
release_version:
description: "Xtensa Rust release version to build"
required: true
default: '1.75.0.0'
default: '1.76.0.1'
release_tag:
description: "Release tag where artifacts will be stored (e.g. v1.75.0.0, untagged-00000)"
description: "Release tag where artifacts will be stored (e.g. v1.76.0.1, untagged-00000)"
required: true
default: "untagged-3ecdd54e672f465cad2e"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-aarch64-unknown-linux-gnu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
release_version:
description: "Xtensa Rust release version to build"
required: true
default: '1.75.0.0'
default: '1.76.0.1'
release_tag:
description: "Release tag where artifacts will be stored (e.g. v1.75.0.0, untagged-00000)"
description: "Release tag where artifacts will be stored (e.g. v1.76.0.1, untagged-00000)"
required: true
default: "untagged-3ecdd54e672f465cad2e"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-rust-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
release_version:
description: "Xtensa Rust release version to build"
required: true
default: '1.75.0.0'
default: '1.76.0.1'
release_tag:
description: "Release tag where artifacts will be stored (e.g. v1.75.0.0, untagged-00000)"
description: "Release tag where artifacts will be stored (e.g. v1.76.0.1, untagged-00000)"
required: true
default: "untagged-3ecdd54e672f465cad2e"
aarch64-apple-darwin:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-rust-src.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
release_version:
description: "Xtensa Rust release version to build"
required: true
default: '1.75.0.0'
default: '1.76.0.1'
release_tag:
description: "Release tag where artifacts will be stored (e.g. v1.75.0.0, untagged-00000)"
description: "Release tag where artifacts will be stored (e.g. v1.76.0.1, untagged-00000)"
required: true
default: "untagged-3ecdd54e672f465cad2e"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-x86_64-apple-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
release_version:
description: "Xtensa Rust release version to build"
required: true
default: '1.75.0.0'
default: '1.76.0.1'
release_tag:
description: "Release tag where artifacts will be stored (e.g. v1.75.0.0, untagged-00000)"
description: "Release tag where artifacts will be stored (e.g. v1.76.0.1, untagged-00000)"
required: true
default: "untagged-3ecdd54e672f465cad2e"

Expand Down
30 changes: 6 additions & 24 deletions .github/workflows/build-x86_64-pc-windows-gnu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
release_version:
description: "Xtensa Rust release version to build"
required: true
default: '1.75.0.0'
default: '1.76.0.1'
release_tag:
description: "Release tag where artifacts will be stored (e.g. v1.75.0.0, untagged-00000)"
description: "Release tag where artifacts will be stored (e.g. v1.76.0.1, untagged-00000)"
required: true
default: "untagged-3ecdd54e672f465cad2e"

Expand Down Expand Up @@ -36,15 +36,7 @@ jobs:
build-xtensa-rust:
name: Build Xtensa Rust
needs: get_release
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [x86_64-pc-windows-gnu-self-hosted]
include:
- os: x86_64-pc-windows-gnu-self-hosted
ASSET_PATH: "rust/build/dist/rust-${{ github.event.inputs.release_version }}-x86_64-pc-windows-gnu.zip"
ASSET_NAME: "rust-${{ github.event.inputs.release_version }}-x86_64-pc-windows-gnu.zip"
ASSET_CONTENT_TYPE: "application/x-tar"
runs-on: [self-hosted, Windows]
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -72,14 +64,6 @@ jobs:
working-directory: "R:"
continue-on-error: true
run: C:\msys64\usr\bin\env.exe MSYSTEM=MINGW64 /usr/bin/bash -lc "cd /r; python3 x.py dist --stage 2"
# This step make sense only on Azure runners with 8 cores and 16 GB RAM,
# because LLVM OOMs. Either increase memory or decrease number of parallel processes.
#- name: Retry build with x.py - dist packages - in case of failure on LLVM OOM
# id: retry-build-rust
# if: steps.build-rust.outcome == 'failure'
# working-directory: "R:"
# continue-on-error: true
# run: C:\msys64\usr\bin\env.exe MSYSTEM=MINGW64 /usr/bin/bash -lc "cd /r; python3 x.py dist --stage 2"
- name: Repackage binary
id: repackage-binary
continue-on-error: true
Expand All @@ -89,16 +73,14 @@ jobs:
&"$env:GITHUB_WORKSPACE/support/rust-build/Repackage-RustRelease.ps1" -DefaultHost x86_64-pc-windows-gnu
- name: Upload Release Asset
if: steps.repackage-binary.outcome != 'failure'
id: upload-release-asset
continue-on-error: true
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.get_release.outputs.upload_url }}
asset_path: ${{ matrix.ASSET_PATH }}
asset_name: ${{ matrix.ASSET_NAME }}
asset_content_type: ${{ matrix.ASSET_CONTENT_TYPE }}
asset_path: rust/build/dist/rust-${{ github.event.inputs.release_version }}-x86_64-pc-windows-gnu.zip
asset_name: rust-${{ github.event.inputs.release_version }}-x86_64-pc-windows-gnu.zip
asset_content_type: application/x-tar
- name: Unmount local drive
id: unount_path
continue-on-error: true
Expand Down
32 changes: 11 additions & 21 deletions .github/workflows/build-x86_64-pc-windows-msvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
release_version:
description: "Xtensa Rust release version to build"
required: true
default: '1.75.0.0'
default: '1.76.0.1'
release_tag:
description: "Release tag where artifacts will be stored (e.g. v1.75.0.0, untagged-00000)"
description: "Release tag where artifacts will be stored (e.g. v1.76.0.1, untagged-00000)"
required: true
default: "untagged-3ecdd54e672f465cad2e"

Expand Down Expand Up @@ -36,21 +36,8 @@ jobs:
build-xtensa-rust:
name: Build Xtensa Rust
needs: get_release
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [x86_64-pc-windows-msvc-self-hosted]
# os: [windows-latest]
include:
- os: x86_64-pc-windows-msvc-self-hosted
ASSET_PATH: "rust/build/dist/rust-${{ github.event.inputs.release_version }}-x86_64-pc-windows-msvc.zip"
ASSET_NAME: "rust-${{ github.event.inputs.release_version }}-x86_64-pc-windows-msvc.zip"
ASSET_CONTENT_TYPE: "application/x-tar"
runs-on: [self-hosted, Windows]
steps:
# - name: Setup Ninja
# uses: ashutoshvarma/setup-ninja@master
# with:
# version: 1.10.0
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout repository - esp-rs/rust
Expand All @@ -70,27 +57,30 @@ jobs:
run: subst "R:" "$env:GITHUB_WORKSPACE\rust"
- name: Prepare build
working-directory: "R:"
shell: powershell
run: |
python src/bootstrap/configure.py --experimental-targets=Xtensa --release-channel=nightly --release-description="${{ github.event.inputs.release_version }}" --enable-extended --tools=clippy,cargo,rustfmt,rust-analyzer-proc-macro-srv --dist-compression-formats='xz' --enable-lld
- name: Build with x.py - dist packages
working-directory: "R:"
continue-on-error: true
run: python x.py dist --stage 2
shell: powershell
run: |
python x.py dist --stage 2
- name: Repackage binary
shell: powershell
working-directory: "R:/build/dist"
run: |
&"$env:GITHUB_WORKSPACE/support/rust-build/Repackage-RustRelease.ps1"
&"$env:GITHUB_WORKSPACE/support/rust-build/Repackage-RustRelease.ps1" -DefaultHost x86_64-pc-windows-msvc
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.get_release.outputs.upload_url }}
asset_path: ${{ matrix.ASSET_PATH }}
asset_name: ${{ matrix.ASSET_NAME }}
asset_content_type: ${{ matrix.ASSET_CONTENT_TYPE }}
asset_path: rust/build/dist/rust-${{ github.event.inputs.release_version }}-x86_64-pc-windows-msvc.zip
asset_name: rust-${{ github.event.inputs.release_version }}-x86_64-pc-windows-msvc.zip
asset_content_type: application/x-tar
- name: Unmount local drive
id: unount_path
continue-on-error: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-x86_64-unknown-linux-gnu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
release_version:
description: "Xtensa Rust release version to build"
required: true
default: "1.75.0.0"
default: "1.76.0.1"
release_tag:
description: "Release tag where artifacts will be stored (e.g. v1.75.0.0, untagged-00000)"
description: "Release tag where artifacts will be stored (e.g. v1.76.0.1, untagged-00000)"
required: true
default: "untagged-3ecdd54e672f465cad2e"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prepare-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ on:
last_release:
description: "Previous Xtensa Rust release version"
required: true
default: '1.75.0.0'
default: '1.76.0.1'
next_release:
description: "Next Xtensa Rust release version"
required: true
default: "1.75.0.0"
default: "1.76.0.1"

jobs:
prepare-release:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-idf-rust-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
toolchain-version:
description: "Version of Rust toolchain"
required: true
default: "1.75.0.0"
default: "1.76.0.1"
publish:
description: "Publish the tags to Dockehub?"
required: true
Expand Down
2 changes: 1 addition & 1 deletion support/rust-build/Repackage-RustRelease.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ param (
$ErrorActionPreference = "Stop"

$RustVersion="nightly"
$ReleaseVersion="1.75.0.0"
$ReleaseVersion="1.76.0.1"

if (Test-Path -Path esp -PathType Container) {
Remove-Item -Recurse -Force -Path esp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ winget install --id Git.Git --accept-source-agreements
winget install --id 7zip.7zip
winget install --id Python.Python.3.12 --scope machine
winget install --id Kitware.CMake
winget install --id Ninja-build.Ninja
winget install --id Ninja-build.Ninja --scope machine

wget https://aka.ms/vs/17/release/vs_buildtools.exe -OutFile vs_buildtools.exe
.\vs_buildtools.exe --passive --wait --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows11SDK.22621
Expand All @@ -16,3 +16,6 @@ wget https://aka.ms/vs/17/release/vs_buildtools.exe -OutFile vs_buildtools.exe
#winget install Microsoft.VisualStudio.2022.BuildTools --silent --override "--wait --quiet --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64"

setx /M PATH "$env:PATH;C:\Program Files\7-Zip"

# Register path to system wide Ninja
setx /M PATH="$env:PATH;C:\Program Files\WinGet\Links"

0 comments on commit 8aac641

Please sign in to comment.