From 789ddb1be163ff2e500caa9307e967535a20ef2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Fri, 24 Feb 2023 21:08:00 +0100 Subject: [PATCH] CI: Use precompiled tools if possible --- .github/workflows/build.yml | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 64044c5beb..262ce71d81 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -172,8 +172,8 @@ jobs: run: rustup component add llvm-tools-preview # Use precompiled binutils - - name: cargo install cargo-binutils - run: cargo install cargo-binutils + - name: Install cargo-binutils + uses: taiki-e/install-action@cargo-binutils - name: Cache Dependencies uses: Swatinem/rust-cache@v2 @@ -320,14 +320,14 @@ jobs: # Build documentation, check links docs: - name: Build docs + name: build docs runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v3 - name: Install lychee - run: cargo install lychee + uses: taiki-e/install-action@lychee - name: Remove cargo-config run: rm -f .cargo/config @@ -358,10 +358,10 @@ jobs: uses: actions/checkout@v3 - name: Install lychee - run: cargo install lychee + uses: taiki-e/install-action@lychee - name: Install mdbook-mermaid - run: cargo install mdbook-mermaid + uses: taiki-e/install-action@mdbook-mermaid - name: mdBook Action uses: peaceiris/actions-mdbook@v1 @@ -443,18 +443,11 @@ jobs: # steps: # - uses: actions/checkout@v3 # -# - name: Set up Python 3.x -# uses: actions/setup-python@v4 -# with: -# # Semantic version range syntax or exact version of a Python version -# python-version: '3.x' -# -# # You can test your matrix by printing the current Python version -# - name: Display Python version -# run: python -c "import sys; print(sys.version)" +# - name: Install lychee +# uses: taiki-e/install-action@lychee # # - name: Install mdbook-mermaid -# run: cargo install mdbook-mermaid +# uses: taiki-e/install-action@mdbook-mermaid # # - name: mdBook Action # uses: peaceiris/actions-mdbook@v1 @@ -542,7 +535,7 @@ jobs: # # pushd $src # rm -f .cargo/config -# cargo doc || cargo doc --features timer-queue +# cargo doc --features thumbv7-backend || cargo doc --features thumbv7-backend,timer-queue # cp -r target/doc $td/$prefix/api # sed 's|URL|rtic/index.html|g' $root/redirect.html > $td/$prefix/api/index.html # for lang in ${langs[@]}; do