ci: Remove actions-rs usage (#13454)

This commit is contained in:
Fabian-Lars
2025-05-17 12:58:32 +02:00
committed by GitHub
parent cace9f479a
commit b19a78ce5b
15 changed files with 43 additions and 141 deletions

View File

@@ -34,13 +34,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: install ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
override: true
default: true
components: rust-src
target: ${{ matrix.platform.target }}
targets: ${{ matrix.platform.target }}
- name: setup python
uses: actions/setup-python@v2

View File

@@ -58,11 +58,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: dtolnay/rust-toolchain@stable
- name: install Linux dependencies
run: |
@@ -74,10 +70,7 @@ jobs:
workspaces: core -> ../target
- name: generate schema.json
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path ./core/tauri-config-schema/Cargo.toml
run: cargo build --manifest-path ./core/tauri-config-schema/Cargo.toml
- name: check schema
run: ./.scripts/ci/has-diff.sh

View File

@@ -22,10 +22,9 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: dtolnay/rust-toolchain@stable
- name: install Linux dependencies
if: matrix.platform == 'ubuntu-22.04'
run: |
@@ -39,10 +38,7 @@ jobs:
tooling/cli
- name: build CLI
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path ./tooling/cli/Cargo.toml
run: cargo build --manifest-path ./tooling/cli/Cargo.toml
- name: run integration tests
run: cargo test --test '*' -- --ignored

View File

@@ -19,10 +19,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: dtolnay/rust-toolchain@stable
- name: install Linux dependencies
run: |
@@ -40,10 +37,7 @@ jobs:
if-no-files-found: error
- name: build CLI
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path ./tooling/cli/Cargo.toml
run: cargo build --manifest-path ./tooling/cli/Cargo.toml
- name: Upload CLI
uses: actions/upload-artifact@v4
@@ -66,13 +60,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: install stable
uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
default: true
target: ${{ matrix.target.name }}
targets: ${{ matrix.target.name }}
- name: Setup node
uses: actions/setup-node@v4

View File

@@ -29,17 +29,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path ./tooling/cli/Cargo.toml --all -- --check
- name: Check formatting
run: cargo fmt --manifest-path ./tooling/cli/Cargo.toml --all -- --check
clippy:
runs-on: ubuntu-latest
@@ -47,11 +42,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- name: install dependencies
@@ -63,8 +55,5 @@ jobs:
with:
workspaces: tooling/cli
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --manifest-path ./tooling/cli/Cargo.toml --all-targets --all-features -- -D warnings
name: cli
- name: Run clippy
run: cargo clippy --manifest-path ./tooling/cli/Cargo.toml --all-targets --all-features -- -D warnings

View File

@@ -31,17 +31,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-22.04
@@ -64,11 +58,8 @@ jobs:
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- uses: Swatinem/rust-cache@v2
@@ -76,8 +67,4 @@ jobs:
workspaces: core -> ../target
save-if: ${{ matrix.clippy.key == 'all' }}
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --manifest-path ./core/tauri/Cargo.toml --all-targets ${{ matrix.clippy.args }} -- -D warnings
name: ${{ matrix.clippy.key }}
- run: cargo clippy --manifest-path ./core/tauri/Cargo.toml --all-targets ${{ matrix.clippy.args }} -- -D warnings

View File

@@ -101,14 +101,10 @@ jobs:
cache: yarn
cache-dependency-path: "tooling/cli/node/yarn.lock"
architecture: ${{ matrix.settings.architecture }}
- name: Install
uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
if: ${{ !matrix.settings.docker }}
with:
profile: minimal
override: true
toolchain: stable
target: ${{ matrix.settings.target }}
targets: ${{ matrix.settings.target }}
- uses: Swatinem/rust-cache@v1
with:
key: ${{ matrix.settings.target }}

View File

@@ -59,10 +59,7 @@ jobs:
sudo apt-get install -y libgtk-3-dev
- name: Build CLI
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path ./tooling/cli/Cargo.toml --release ${{ matrix.config.args }}
run: cargo build --manifest-path ./tooling/cli/Cargo.toml --release ${{ matrix.config.args }}
- name: Upload CLI
uses: actions/upload-artifact@v4

View File

@@ -36,10 +36,8 @@ jobs:
- uses: actions/checkout@v4
- name: install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: 1.71
override: true
uses: dtolnay/rust-toolchain@1.71
- name: setup node
uses: actions/setup-node@v4
with:

View File

@@ -35,10 +35,7 @@ jobs:
- uses: actions/checkout@v4
- name: install stable
uses: actions-rs/toolchain@v1
with:
toolchain: 1.71.0
override: true
uses: dtolnay/rust-toolchain@1.71
- name: install Linux dependencies
if: matrix.platform == 'ubuntu-latest'
@@ -51,7 +48,4 @@ jobs:
workspaces: tooling/cli
- name: test CLI
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path ./tooling/cli/Cargo.toml
run: cargo test --manifest-path ./tooling/cli/Cargo.toml

View File

@@ -65,13 +65,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: install stable
uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.platform.toolchain }}
target: ${{ matrix.platform.target }}
override: true
default: true
targets: ${{ matrix.platform.target }}
- name: install Linux dependencies
if: contains(matrix.platform.target, 'unknown-linux')

View File

@@ -34,10 +34,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
@@ -54,17 +51,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path ./tooling/bundler/Cargo.toml --all -- --check
- run: cargo fmt --manifest-path ./tooling/bundler/Cargo.toml --all -- --check
clippy:
runs-on: ubuntu-22.04
@@ -73,12 +64,8 @@ jobs:
- uses: actions/checkout@v4
- name: install minimal stable with clippy and rustfmt
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
default: true
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
@@ -86,8 +73,4 @@ jobs:
workspaces: tooling/bundler
- name: clippy check
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --manifest-path ./tooling/bundler/Cargo.toml --all-targets -- -D warnings
name: bundler
run: cargo clippy --manifest-path ./tooling/bundler/Cargo.toml --all-targets -- -D warnings

View File

@@ -31,10 +31,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: dtolnay/rust-toolchain@stable
- name: install Linux dependencies
if: matrix.platform == 'ubuntu-22.04'

View File

@@ -74,16 +74,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- uses: dtolnay/rust-toolchain@nightly
- uses: actions-rs/cargo@v1
with:
command: install
args: cargo-udeps --locked --force
- run: cargo install cargo-udeps --locked --force
- name: Upload udeps
uses: actions/upload-artifact@v4
@@ -128,11 +121,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- uses: dtolnay/rust-toolchain@nightly
- name: install dependencies
run: |
@@ -159,7 +148,4 @@ jobs:
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev
- uses: actions-rs/cargo@v1
with:
command: udeps
args: --manifest-path ${{ matrix.path }}/Cargo.toml --all-targets --all-features
- run: cargo udeps --manifest-path ${{ matrix.path }}/Cargo.toml --all-targets --all-features