CI: Use precompiled tools if possible

This commit is contained in:
Henrik Tjäder 2023-02-24 21:08:00 +01:00
parent 115fc3e212
commit 789ddb1be1

View file

@ -172,8 +172,8 @@ jobs:
run: rustup component add llvm-tools-preview run: rustup component add llvm-tools-preview
# Use precompiled binutils # Use precompiled binutils
- name: cargo install cargo-binutils - name: Install cargo-binutils
run: cargo install cargo-binutils uses: taiki-e/install-action@cargo-binutils
- name: Cache Dependencies - name: Cache Dependencies
uses: Swatinem/rust-cache@v2 uses: Swatinem/rust-cache@v2
@ -320,14 +320,14 @@ jobs:
# Build documentation, check links # Build documentation, check links
docs: docs:
name: Build docs name: build docs
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install lychee - name: Install lychee
run: cargo install lychee uses: taiki-e/install-action@lychee
- name: Remove cargo-config - name: Remove cargo-config
run: rm -f .cargo/config run: rm -f .cargo/config
@ -358,10 +358,10 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install lychee - name: Install lychee
run: cargo install lychee uses: taiki-e/install-action@lychee
- name: Install mdbook-mermaid - name: Install mdbook-mermaid
run: cargo install mdbook-mermaid uses: taiki-e/install-action@mdbook-mermaid
- name: mdBook Action - name: mdBook Action
uses: peaceiris/actions-mdbook@v1 uses: peaceiris/actions-mdbook@v1
@ -443,18 +443,11 @@ jobs:
# steps: # steps:
# - uses: actions/checkout@v3 # - uses: actions/checkout@v3
# #
# - name: Set up Python 3.x # - name: Install lychee
# uses: actions/setup-python@v4 # uses: taiki-e/install-action@lychee
# 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 mdbook-mermaid # - name: Install mdbook-mermaid
# run: cargo install mdbook-mermaid # uses: taiki-e/install-action@mdbook-mermaid
# #
# - name: mdBook Action # - name: mdBook Action
# uses: peaceiris/actions-mdbook@v1 # uses: peaceiris/actions-mdbook@v1
@ -542,7 +535,7 @@ jobs:
# #
# pushd $src # pushd $src
# rm -f .cargo/config # 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 # cp -r target/doc $td/$prefix/api
# sed 's|URL|rtic/index.html|g' $root/redirect.html > $td/$prefix/api/index.html # sed 's|URL|rtic/index.html|g' $root/redirect.html > $td/$prefix/api/index.html
# for lang in ${langs[@]}; do # for lang in ${langs[@]}; do