diff --git a/.github/workflows/installer-check.yaml b/.github/workflows/installer-check.yaml index 1c3be9c1..e7345ccf 100644 --- a/.github/workflows/installer-check.yaml +++ b/.github/workflows/installer-check.yaml @@ -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: @@ -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: diff --git a/.github/workflows/nigthly-check.yaml b/.github/workflows/nigthly-check.yaml new file mode 100644 index 00000000..0052b872 --- /dev/null +++ b/.github/workflows/nigthly-check.yaml @@ -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 diff --git a/build-template-project.sh b/build-template-project.sh index dc52fafc..2be037f0 100644 --- a/build-template-project.sh +++ b/build-template-project.sh @@ -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