diff --git a/.github/workflows/publish-idf-rust-tags.yml b/.github/workflows/publish-idf-rust-tags.yml index 26c14fe..e9afa67 100644 --- a/.github/workflows/publish-idf-rust-tags.yml +++ b/.github/workflows/publish-idf-rust-tags.yml @@ -30,11 +30,6 @@ jobs: run: | docker image build --tag idf-rust:${{ matrix.board }}_${{ github.event.inputs.toolchain-version }} \ --file idf-rust.Containerfile --build-arg ESP_BOARD=${{ matrix.board }} --build-arg XTENSA_VERSION=${{ github.event.inputs.toolchain-version }} --build-arg GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} . - - name: Build template projects using generated tag - if: matrix.board != 'all' - run: | - docker run --user esp --mount type=bind,source="$(pwd)/build-template-project.sh",target=/workspace/build-template-project.sh,consistency=cached \ - --rm idf-rust:${{ matrix.board }}_${{ github.event.inputs.toolchain-version }} /bin/bash /workspace/build-template-project.sh ${{ matrix.board }} - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx diff --git a/build-template-project.sh b/build-template-project.sh deleted file mode 100644 index 7715f17..0000000 --- a/build-template-project.sh +++ /dev/null @@ -1,19 +0,0 @@ -set -ef - -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)-$($HOME/.cargo/bin/rustup show | grep "Default host" | sed -e 's/.* //').tar.gz" -o "${HOME}/.cargo/bin/cargo-generate.tar.gz" -tar -xf "${HOME}/.cargo/bin/cargo-generate.tar.gz" -C ${HOME}/.cargo/bin -chmod u+x ${HOME}/.cargo/bin/cargo-generate - -export USER=esp -source /home/esp/export-esp.sh - -# Build esp-idf-template -cd /home/esp -cargo generate esp-rs/esp-idf-template cargo --name test-std-$1 --vcs none --silent -d mcu=$1 -d advanced=false -cd test-std-$1 -cargo build -# Build esp-tempalte -cd /home/esp -cargo generate esp-rs/esp-template --name test-nostd-$1 --vcs none --silent -d mcu=$1 -d advanced=false -cd test-nostd-$1 -cargo build