Some checks failed
Audit / audit-js (push) Failing after 0s
bench / bench (map[os:ubuntu-latest runner:xvfb-run --auto-servernum target:x86_64-unknown-linux-gnu], nightly) (push) Failing after 0s
covector version or publish / run-integration-tests (ubuntu-latest) (push) Failing after 0s
Audit / audit-rust (push) Failing after 0s
test `@tauri-apps/cli` / test (ubuntu-latest) (push) Failing after 0s
test `tauri-cli` / test (map[os:ubuntu-latest target:x86_64-unknown-linux-gnu]) (push) Failing after 0s
test core / test (map[args:--all-features key:all], map[cargo:cargo command:test os:ubuntu-latest target:x86_64-unknown-linux-gnu toolchain:1.90]) (push) Failing after 0s
test core / test (map[args:--no-default-features key:no-default], map[cargo:cargo command:test os:ubuntu-latest target:x86_64-unknown-linux-gnu toolchain:1.90]) (push) Failing after 0s
test core / test (map[args:--no-default-features key:no-default], map[cargo:cross command:build os:ubuntu-latest target:aarch64-linux-android toolchain:1.90]) (push) Failing after 0s
deploy schema worker / deploy (push) Failing after 0s
lint rust / clippy (map[cargo:cargo include: os:ubuntu-latest target:x86_64-unknown-linux-gnu]) (push) Failing after 0s
lint rust / clippy (map[cargo:cross include:--package api os:ubuntu-latest target:aarch64-linux-android]) (push) Failing after 0s
supply chain health status / check rust dependencies with cargo vet (push) Failing after 0s
test `@tauri-apps/api` e2e (mobile) / android (push) Failing after 0s
test `@tauri-apps/api` e2e / test (map[name:Linux os:ubuntu-latest]) (push) Failing after 0s
test core / test (map[args:--all-features key:all], map[cargo:cross command:build os:ubuntu-latest target:aarch64-linux-android toolchain:1.90]) (push) Failing after 0s
Udeps / changes (push) Failing after 0s
Udeps / setup (push) Has been skipped
Udeps / udeps (push) Has been skipped
bench / bench (map[os:macos-latest runner: target:aarch64-apple-darwin], nightly) (push) Has been cancelled
bench / bench (map[os:windows-latest runner: target:x86_64-pc-windows-msvc], nightly) (push) Has been cancelled
covector version or publish / run-integration-tests (macos-latest) (push) Has been cancelled
covector version or publish / run-integration-tests (windows-latest) (push) Has been cancelled
covector version or publish / version-or-publish (push) Has been cancelled
test `@tauri-apps/cli` / test (macos-latest) (push) Has been cancelled
test `tauri-cli` / test (map[args:--no-default-features --features native-tls-vendored os:windows-latest restore-only:true target:aarch64-pc-windows-msvc]) (push) Has been cancelled
test `tauri-cli` / test (map[os:macos-latest target:x86_64-apple-darwin]) (push) Has been cancelled
test `tauri-cli` / test (map[os:windows-latest target:x86_64-pc-windows-msvc]) (push) Has been cancelled
test core / test (map[args:--all-features key:all], map[cargo:cargo command:build os:macos-latest target:aarch64-apple-ios toolchain:1.90]) (push) Has been cancelled
test core / test (map[args:--all-features key:all], map[cargo:cargo command:test os:macos-14 target:aarch64-apple-darwin toolchain:1.90]) (push) Has been cancelled
lint rust / clippy (map[cargo:cargo include: os:macos-latest target:aarch64-apple-darwin]) (push) Has been cancelled
lint rust / clippy (map[cargo:cargo include: os:windows-latest target:x86_64-pc-windows-msvc]) (push) Has been cancelled
lint rust / clippy (map[cargo:cargo include:--package api os:macos-latest target:aarch64-apple-ios]) (push) Has been cancelled
test `@tauri-apps/api` e2e (mobile) / ios (push) Has been cancelled
test `@tauri-apps/api` e2e / test (map[name:Windows os:windows-latest]) (push) Has been cancelled
test `@tauri-apps/api` e2e / test (map[name:macOS os:macos-latest]) (push) Has been cancelled
test `@tauri-apps/cli` / test (windows-latest) (push) Has been cancelled
test core / test (map[args:--all-features key:all], map[cargo:cargo command:test os:windows-latest target:x86_64-pc-windows-msvc toolchain:1.90]) (push) Has been cancelled
test core / test (map[args:--no-default-features key:no-default], map[cargo:cargo command:build os:macos-latest target:aarch64-apple-ios toolchain:1.90]) (push) Has been cancelled
test core / test (map[args:--no-default-features key:no-default], map[cargo:cargo command:test os:macos-14 target:aarch64-apple-darwin toolchain:1.90]) (push) Has been cancelled
test core / test (map[args:--no-default-features key:no-default], map[cargo:cargo command:test os:windows-latest target:x86_64-pc-windows-msvc toolchain:1.90]) (push) Has been cancelled
141 lines
5.1 KiB
YAML
141 lines
5.1 KiB
YAML
# Copyright 2019-2024 Tauri Programme within The Commons Conservancy
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
name: Udeps
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
|
|
env:
|
|
RUST_BACKTRACE: 1
|
|
CARGO_PROFILE_DEV_DEBUG: 0 # This would add unnecessary bloat to the target folder, decreasing cache efficiency.
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
changes:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
tauri: ${{ steps.filter.outputs.tauri }}
|
|
build: ${{ steps.filter.outputs.build }}
|
|
codegen: ${{ steps.filter.outputs.codegen }}
|
|
macros: ${{ steps.filter.outputs.macros }}
|
|
runtime: ${{ steps.filter.outputs.runtime }}
|
|
wry: ${{ steps.filter.outputs.wry }}
|
|
utils: ${{ steps.filter.outputs.utils }}
|
|
bundler: ${{ steps.filter.outputs.bundler }}
|
|
cli: ${{ steps.filter.outputs.cli }}
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: dorny/paths-filter@v3
|
|
id: filter
|
|
with:
|
|
filters: |
|
|
tauri:
|
|
- 'crates/tauri/**'
|
|
- '!crates/tauri/scripts/**'
|
|
build:
|
|
- 'crates/tauri-build/**'
|
|
codegen:
|
|
- 'crates/tauri-codegen/**'
|
|
macros:
|
|
- 'crates/tauri-macros/**'
|
|
runtime:
|
|
- 'crates/tauri-runtime/**'
|
|
wry:
|
|
- 'crates/tauri-runtime-wry/**'
|
|
utils:
|
|
- 'crates/tauri-utils/**'
|
|
bundler:
|
|
- 'crates/tauri-bundler/**'
|
|
cli:
|
|
- 'crates/tauri-cli/**'
|
|
macossign:
|
|
- 'crates/tauri-macos-sign/**'
|
|
|
|
setup:
|
|
runs-on: ubuntu-latest
|
|
needs: changes
|
|
if: |
|
|
needs.changes.outputs.tauri == 'true' ||
|
|
needs.changes.outputs.build == 'true' ||
|
|
needs.changes.outputs.codegen == 'true' ||
|
|
needs.changes.outputs.macros == 'true' ||
|
|
needs.changes.outputs.runtime == 'true' ||
|
|
needs.changes.outputs.wry == 'true' ||
|
|
needs.changes.outputs.utils == 'true' ||
|
|
needs.changes.outputs.bundler == 'true' ||
|
|
needs.changes.outputs.cli == 'true' ||
|
|
needs.changes.outputs.macossign == 'true'
|
|
|
|
steps:
|
|
- name: Create udeps matrix
|
|
id: create-matrix
|
|
env:
|
|
TAURI: ${{ needs.changes.outputs.tauri == 'true' }}
|
|
BUILD: ${{ needs.changes.outputs.build == 'true' }}
|
|
CODEGEN: ${{ needs.changes.outputs.codegen == 'true' }}
|
|
MACROS: ${{ needs.changes.outputs.macros == 'true' }}
|
|
RUNTIME: ${{ needs.changes.outputs.runtime == 'true' }}
|
|
WRY: ${{ needs.changes.outputs.wry == 'true' }}
|
|
UTILS: ${{ needs.changes.outputs.utils == 'true' }}
|
|
BUNDLER: ${{ needs.changes.outputs.bundler == 'true' }}
|
|
CLI: ${{ needs.changes.outputs.cli == 'true' }}
|
|
MACOSSIGN: ${{ needs.changes.outputs.macossign == 'true' }}
|
|
run: |
|
|
crates=()
|
|
if [ "${TAURI}" == "true" ]; then crates[${#crates[@]}]="\"./crates/tauri\""; fi
|
|
if [ "${BUILD}" == "true" ]; then crates[${#crates[@]}]="\"./crates/tauri-build\""; fi
|
|
if [ "${CODEGEN}" == "true" ]; then crates[${#crates[@]}]="\"./crates/tauri-codegen\""; fi
|
|
if [ "${MACROS}" == "true" ]; then crates[${#crates[@]}]="\"./crates/tauri-macros\""; fi
|
|
if [ "${RUNTIME}" == "true" ]; then crates[${#crates[@]}]="\"./crates/tauri-runtime\""; fi
|
|
if [ "${WRY}" == "true" ]; then crates[${#crates[@]}]="\"./crates/tauri-runtime-wry\""; fi
|
|
if [ "${UTILS}" == "true" ]; then crates[${#crates[@]}]="\"./crates/tauri-utils\""; fi
|
|
if [ "${BUNDLER}" == "true" ]; then crates[${#crates[@]}]="\"./crates/tauri-bundler\""; fi
|
|
if [ "${CLI}" == "true" ]; then crates[${#crates[@]}]="\"./crates/tauri-cli\""; fi
|
|
if [ "${MACOSSIGN}" == "true" ]; then crates[${#crates[@]}]="\"./crates/tauri-macos-sign\""; fi
|
|
echo "matrix=[$crates]" >> "$GITHUB_OUTPUT"
|
|
outputs:
|
|
matrix: ${{ steps.create-matrix.outputs.matrix }}
|
|
|
|
udeps:
|
|
runs-on: ubuntu-latest
|
|
needs: setup
|
|
strategy:
|
|
matrix:
|
|
path: ${{ fromJson(needs.setup.outputs.matrix) }}
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- name: Install Rust nightly
|
|
uses: dtolnay/rust-toolchain@nightly
|
|
|
|
- name: install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libgtk-3-dev
|
|
|
|
# No rust-cache on purpose: this job only runs on `dev`, its target dir does not fit the
|
|
# repository's 10 GB cache limit next to the entries pull requests restore, and an entry
|
|
# evicted before the next push only costs upload time.
|
|
- name: Install udeps
|
|
uses: taiki-e/install-action@v2
|
|
with:
|
|
tool: cargo-udeps
|
|
|
|
- name: Install required packages
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev
|
|
|
|
- name: Run udeps
|
|
run: cargo udeps --manifest-path ${{ matrix.path }}/Cargo.toml --all-targets --all-features
|