Temporarily switch to older nightly Rust

This commit is contained in:
ivmarkov 2022-03-26 20:58:19 +02:00
parent 3a313d2e2e
commit e433bf6de1
4 changed files with 24 additions and 14 deletions

View File

@ -4,6 +4,9 @@ on:
schedule:
- cron: '50 5 * * *'
env:
rust_toolchain: nightly-2022-03-23
jobs:
compile:
name: Compile
@ -14,12 +17,12 @@ jobs:
- name: Setup | Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: ${{ env.rust_toolchain }}
components: rustfmt, clippy
- name: Setup | Std
run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
run: rustup component add rust-src --toolchain ${{ env.rust_toolchain }}-x86_64-unknown-linux-gnu
- name: Setup | Default to nightly
run: rustup default nightly
run: rustup default ${{ env.rust_toolchain }}
- name: Build | Fmt Check
run: cargo fmt -- --check
- name: Build | Compile Native ESP-IDF master no_std

View File

@ -8,6 +8,9 @@ on:
schedule:
- cron: '50 4 * * *'
env:
rust_toolchain: nightly-2022-03-23
jobs:
compile:
name: Compile
@ -18,12 +21,12 @@ jobs:
- name: Setup | Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: ${{ env.rust_toolchain }}
components: rustfmt, clippy
- name: Setup | Std
run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
run: rustup component add rust-src --toolchain ${{ env.rust_toolchain }}-x86_64-unknown-linux-gnu
- name: Setup | Default to nightly
run: rustup default nightly
run: rustup default ${{ env.rust_toolchain }}
- name: Build | Fmt Check
run: cargo fmt -- --check
- name: Build | Clippy

View File

@ -3,6 +3,9 @@ name: PublishDryRun
on:
workflow_dispatch
env:
rust_toolchain: nightly-2022-03-23
jobs:
publishdryrun:
name: Publish Dry Run
@ -13,10 +16,10 @@ jobs:
- name: Setup | Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: ${{ env.rust_toolchain }}
- name: Setup | Std
run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
run: rustup component add rust-src --toolchain ${{ env.rust_toolchain }}-x86_64-unknown-linux-gnu
- name: Setup | Default to nightly
run: rustup default nightly
run: rustup default ${{ env.rust_toolchain }}
- name: Build | Publish Dry Run
run: export ESP_IDF_TOOLS_INSTALL_DIR=out; export ESP_IDF_SDKCONFIG_DEFAULTS=$(pwd)/.github/configs/sdkconfig.defaults; cargo publish --dry-run --target riscv32imc-esp-espidf -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort

View File

@ -3,6 +3,9 @@ name: Publish
on:
workflow_dispatch
env:
rust_toolchain: nightly-2022-03-23
jobs:
publish:
name: Publish
@ -13,13 +16,11 @@ jobs:
- name: Setup | Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: ${{ env.rust_toolchain }}
- name: Setup | Std
run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
run: rustup component add rust-src --toolchain ${{ env.rust_toolchain }}-x86_64-unknown-linux-gnu
- name: Setup | Default to nightly
run: rustup default nightly
- name: Setup | Default to nightly
run: rustup default nightly
run: rustup default ${{ env.rust_toolchain }}
- name: Login
run: cargo login ${{ secrets.crates_io_token }}
- name: Build | Publish