From 650008391663cc4df106a34f480b431c6a97b04a Mon Sep 17 00:00:00 2001 From: ok-nick Date: Wed, 19 Nov 2025 15:24:59 -0500 Subject: [PATCH] ci: use `dtolnay/rust-toolchain` consistently --- .github/workflows/library-release.yml | 11 ++++++----- .github/workflows/tier-1a.yml | 4 +--- .github/workflows/tier-2.yml | 7 +++++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/library-release.yml b/.github/workflows/library-release.yml index a1897f6e2..5c3157c35 100644 --- a/.github/workflows/library-release.yml +++ b/.github/workflows/library-release.yml @@ -3,7 +3,7 @@ name: Publish c2pa-library binaries on: push: tags: - - 'c2pa-v*' # Trigger on version tags (e.g., v1.0.0) + - "c2pa-v*" # Trigger on version tags (e.g., v1.0.0) workflow_dispatch: jobs: @@ -47,10 +47,11 @@ jobs: - name: Checkout code uses: actions/checkout@v5 - - name: Set up Rust - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - cache: false + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Cache Rust dependencies + uses: Swatinem/rust-cache@v2 - name: Build Windows release if: matrix.os == 'windows-latest' diff --git a/.github/workflows/tier-1a.yml b/.github/workflows/tier-1a.yml index 483ecfb44..7faa46330 100644 --- a/.github/workflows/tier-1a.yml +++ b/.github/workflows/tier-1a.yml @@ -37,9 +37,7 @@ jobs: uses: actions/checkout@v5 - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@master - with: - toolchain: stable + uses: dtolnay/rust-toolchain@stable - name: Get all features id: get-features diff --git a/.github/workflows/tier-2.yml b/.github/workflows/tier-2.yml index 694492ef1..03b4873ee 100644 --- a/.github/workflows/tier-2.yml +++ b/.github/workflows/tier-2.yml @@ -45,8 +45,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v5 - - name: Set up Rust - uses: actions-rust-lang/setup-rust-toolchain@v1 + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Cache Rust dependencies + uses: Swatinem/rust-cache@v2 - name: Build C library for mobile target run: make release TARGET=${{ matrix.target }}