Skip to content

Commit

Permalink
use taiki-e/install-action
Browse files Browse the repository at this point in the history
  • Loading branch information
ameknite committed Mar 22, 2024
1 parent 70d8ce7 commit 110ec9a
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 13 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install taplo
run: cargo install taplo-cli --locked
uses: taiki-e/install-action@v2
with:
tool: taplo-cli
- name: Run Taplo
id: taplo
run: taplo fmt --check --diff
Expand Down Expand Up @@ -270,7 +272,9 @@ jobs:
# This currently report a lot of false positives
# Enable it again once it's fixed - https://github.com/bevyengine/bevy/issues/1983
# - name: Installs cargo-deadlinks
# run: cargo install --force cargo-deadlinks
# uses: taiki-e/install-action@v2
# with:
# tool: cargo-deadlinks
# - name: Checks dead links
# run: cargo deadlinks --dir target/doc/bevy
# continue-on-error: true
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ jobs:
run: rustup target add aarch64-linux-android armv7-linux-androideabi

- name: Install Cargo APK
run: cargo install --force cargo-apk
uses: taiki-e/install-action
with:
tool: cargo-apk

- name: Build app for Android
run: ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME cargo apk build --package bevy_mobile_example
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install cargo-deny
run: cargo install cargo-deny
uses: taiki-e/install-action
with:
tool: cargo-deny
- name: Check for security advisories and unmaintained crates
run: cargo deny check advisories

Expand All @@ -36,7 +38,9 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install cargo-deny
run: cargo install cargo-deny
uses: taiki-e/install-action
with:
tool: cargo-deny
- name: Check for banned and duplicated dependencies
run: cargo deny check bans

Expand All @@ -46,7 +50,9 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install cargo-deny
run: cargo install cargo-deny
uses: taiki-e/install-action
with:
tool: cargo-deny
- name: Check for unauthorized licenses
run: cargo deny check licenses

Expand All @@ -56,6 +62,8 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install cargo-deny
run: cargo install cargo-deny
uses: taiki-e/install-action
with:
tool: cargo-deny
- name: Checked for unauthorized crate sources
run: cargo deny check sources
4 changes: 3 additions & 1 deletion .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:
- uses: actions/checkout@v4

- name: Install cargo-release
run: cargo install cargo-release
uses: taiki-e/install-action
with:
tool: cargo-release

- name: Setup post-release version bump
run: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:
- uses: actions/checkout@v4

- name: Install cargo-release
run: cargo install cargo-release
uses: taiki-e/install-action
with:
tool: cargo-release

- name: Setup release
run: |
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/validation-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ jobs:
run: rustup target add aarch64-linux-android armv7-linux-androideabi

- name: Install Cargo APK
run: cargo install --force cargo-apk
uses: taiki-e/install-action
with:
tool: cargo-apk

- name: Build APK
run: ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME cargo apk build --package bevy_mobile_example
Expand Down Expand Up @@ -202,7 +204,9 @@ jobs:
sudo apt install -y xvfb libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
- name: Install wasm-bindgen
run: cargo install --force wasm-bindgen-cli
uses: taiki-e/install-action
with:
tool: wasm-bindgen-cli

- name: Setup playwright
run: |
Expand Down Expand Up @@ -281,7 +285,9 @@ jobs:
with:
toolchain: ${{ env.NIGHTLY_TOOLCHAIN }}
- name: Installs cargo-udeps
run: cargo install --force cargo-udeps
uses: taiki-e/install-action@v2
with:
tool: cargo-udeps
- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- name: Run cargo udeps
Expand All @@ -304,7 +310,9 @@ jobs:
key: ${{ runner.os }}-cargo-check-showcase-patches-${{ hashFiles('**/Cargo.toml') }}
- uses: dtolnay/rust-toolchain@stable
- name: Installs cargo-udeps
run: cargo install --force cargo-udeps
uses: taiki-e/install-action@v2
with:
tool: cargo-udeps
- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- name: Apply patches
Expand Down

0 comments on commit 110ec9a

Please sign in to comment.