Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/installer-check.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Test installer by building template projects

env:
xtensa-toolchain-version: "1.62.1.0"
xtensa-toolchain-version: "1.64.0.0"

on:
push:
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
- name: Build template project
run: |
source ${HOME}/export-esp.sh
cargo generate --git https://github.com/esp-rs/esp-template --name test-${{ matrix.board }} --vcs none --silent -d mcu=${{ matrix.board }} -d devcontainer=false
cargo generate --git https://github.com/esp-rs/esp-template --name test-${{ matrix.board }} --vcs none --silent -d mcu=${{ matrix.board }} -d devcontainer=false -d alloc=false
cd test-${{ matrix.board }}
cargo build
crate-check:
Expand Down
97 changes: 97 additions & 0 deletions .github/workflows/nigthly-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: Nightly checks

on:
schedule:
- cron: "50 7 * * *"
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
current-nightly:
name: Current nightly
runs-on: ubuntu-latest
steps:
- name: Setup | Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt, clippy
- name: Setup | Std
run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: Setup | Default to nightly
run: rustup default nightly
- name: Setup | cargo-generate (binary)
id: binaries
continue-on-error: true
run: |
sudo curl -L "https://github.com/cargo-generate/cargo-generate/releases/latest/download/cargo-generate-$(git ls-remote --refs --sort="version:refname" --tags "https://github.com/cargo-generate/cargo-generate" | cut -d/ -f3- | tail -n1)-x86_64-unknown-linux-gnu.tar.gz" -o "/home/runner/.cargo/bin/cargo-generate.tar.gz"
tar xf "/home/runner/.cargo/bin/cargo-generate.tar.gz" -C /home/runner/.cargo/bin
chmod u+x /home/runner/.cargo/bin/cargo-generate
- name: Setup | cargo-generate (cargo)
if: steps.binaries.outcome != 'success'
run: cargo install cargo-generate
- uses: Swatinem/rust-cache@v1
- name: Generate
run: cargo generate --git https://github.com/esp-rs/esp-template --name test --vcs none --silent -d mcu=esp32c3 -d devcontainer=false -d alloc=false
- name: Build Project
run: cd test; cargo build
prior-nightly:
name: Prior nightly
runs-on: ubuntu-latest
steps:
- name: Set env
run: echo "NIGHTLY_VERSION=nightly-$(date -d '-1 day' '+%Y-%m-%d')" >> $GITHUB_ENV
- name: Setup | Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.NIGHTLY_VERSION }}
- name: Setup | Std
run: rustup component add rust-src --toolchain ${{ env.NIGHTLY_VERSION }}-x86_64-unknown-linux-gnu
- name: Setup | Default to nightly
run: rustup default ${{ env.NIGHTLY_VERSION }}
- name: Setup | cargo-generate (binary)
id: binaries
continue-on-error: true
run: |
sudo curl -L "https://github.com/cargo-generate/cargo-generate/releases/latest/download/cargo-generate-$(git ls-remote --refs --sort="version:refname" --tags "https://github.com/cargo-generate/cargo-generate" | cut -d/ -f3- | tail -n1)-x86_64-unknown-linux-gnu.tar.gz" -o "/home/runner/.cargo/bin/cargo-generate.tar.gz"
tar xf "/home/runner/.cargo/bin/cargo-generate.tar.gz" -C /home/runner/.cargo/bin
chmod u+x /home/runner/.cargo/bin/cargo-generate
- name: Setup | cargo-generate (cargo)
if: steps.binaries.outcome != 'success'
run: cargo install cargo-generate
- uses: Swatinem/rust-cache@v1
- name: Generate
run: cargo generate --git https://github.com/esp-rs/esp-template --name test --vcs none --silent -d mcu=esp32c3 -d devcontainer=false -d alloc=false
- name: Build Project
run: cd test; cargo +${{ env.NIGHTLY_VERSION }} build
next-prior-nightly:
name: Next prior nightly
runs-on: ubuntu-latest
steps:
- name: Set env
run: echo "NIGHTLY_VERSION=nightly-$(date -d '-2 day' '+%Y-%m-%d')" >> $GITHUB_ENV
- name: Setup | Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.NIGHTLY_VERSION }}
- name: Setup | Std
run: rustup component add rust-src --toolchain ${{ env.NIGHTLY_VERSION }}-x86_64-unknown-linux-gnu
- name: Setup | Default to nightly
run: rustup default ${{ env.NIGHTLY_VERSION }}
- name: Setup | cargo-generate (binary)
id: binaries
continue-on-error: true
run: |
sudo curl -L "https://github.com/cargo-generate/cargo-generate/releases/latest/download/cargo-generate-$(git ls-remote --refs --sort="version:refname" --tags "https://github.com/cargo-generate/cargo-generate" | cut -d/ -f3- | tail -n1)-x86_64-unknown-linux-gnu.tar.gz" -o "/home/runner/.cargo/bin/cargo-generate.tar.gz"
tar xf "/home/runner/.cargo/bin/cargo-generate.tar.gz" -C /home/runner/.cargo/bin
chmod u+x /home/runner/.cargo/bin/cargo-generate
- name: Setup | cargo-generate (cargo)
if: steps.binaries.outcome != 'success'
run: cargo install cargo-generate
- uses: Swatinem/rust-cache@v1
- name: Generate
run: cargo generate --git https://github.com/esp-rs/esp-template --name test --vcs none --silent -d mcu=esp32c3 -d devcontainer=false -d alloc=false
- name: Build Project
run: cd test; cargo +${{ env.NIGHTLY_VERSION }} build
2 changes: 1 addition & 1 deletion build-template-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ source /home/esp/export-esp.sh
if [[ "$1" == 'esp-idf-template' ]]; then
cargo generate --git https://github.com/esp-rs/esp-idf-template cargo --name test-$2 --vcs none --silent -d mcu=$2 -d std=true -d espidfver=$3 -d devcontainer=false
elif [[ "$1" == 'esp-template' ]]; then
cargo generate --git https://github.com/esp-rs/esp-template --name test-$2 --vcs none --silent -d mcu=$2 -d devcontainer=false
cargo generate --git https://github.com/esp-rs/esp-template --name test-$2 --vcs none --silent -d mcu=$2 -d devcontainer=false -d alloc=false
fi
cd test-$2
cargo build