Repository navigation
fix: resource path handles ./ path differently
#14662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Legend-Master
merged 18 commits into
tauri-apps:dev
from
Legend-Master:refactor-resource-path-iter
Mar 3, 2026
Merged
Changes from 5 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
51d04a5
fix: resource path handles `./` path differently
Legend-Master fda6f9a
Setup CI for tauri utils
Legend-Master c412a69
Wrong job name
Legend-Master 3d695bd
Fix tests
Legend-Master b4e9e2d
Always run tests and don't run doc tests
Legend-Master b23ed48
Add change file
Legend-Master a60f60a
Re-use `test-core` workflow
Legend-Master 58915c7
Format
Legend-Master 9d881f0
Avoid path clone by calculating target first
Legend-Master 4bf4d56
Test tauri-utils first with step instead of matrix
Legend-Master 63803af
Use `matrix.platform.command`
Legend-Master 9301f63
Document `current_dest` and `current_pattern`
Legend-Master 1dfe146
More docs
Legend-Master be7c1e3
Merge remote-tracking branch 'upstream/dev' into refactor-resource-pa…
Legend-Master 388bee9
Test with doc tests
Legend-Master 05d5124
Revert "Test with doc tests"
Legend-Master 628d6ba
Merge branch 'dev' into refactor-resource-path-iter
FabianLars 47ff324
Merge branch 'dev' into refactor-resource-path-iter
Legend-Master File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| # Copyright 2019-2024 Tauri Programme within The Commons Conservancy | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| name: test utils | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - dev | ||
| pull_request: | ||
| paths: | ||
| - '.github/workflows/test-utils.yml' | ||
| - 'crates/tauri-utils/**' | ||
|
|
||
| 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 | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ${{ matrix.platform.os }} | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| platform: | ||
| - { | ||
| target: x86_64-pc-windows-msvc, | ||
| os: windows-latest, | ||
| toolchain: '1.77.2', | ||
| cross: false, | ||
| command: 'test' | ||
| } | ||
| - { | ||
| target: x86_64-unknown-linux-gnu, | ||
| os: ubuntu-latest, | ||
| toolchain: '1.77.2', | ||
| cross: false, | ||
| command: 'test' | ||
| } | ||
| - { | ||
| target: aarch64-apple-darwin, | ||
| os: macos-14, | ||
| toolchain: '1.77.2', | ||
| cross: false, | ||
| command: 'test' | ||
| } | ||
| - { | ||
| target: aarch64-apple-ios, | ||
| os: macos-latest, | ||
| toolchain: '1.77.2', | ||
| cross: false, | ||
| command: 'build' | ||
| } | ||
| - { | ||
| target: aarch64-linux-android, | ||
| os: ubuntu-latest, | ||
| toolchain: '1.77.2', | ||
| cross: true, | ||
| command: 'build' | ||
| } | ||
| features: | ||
| - { args: --no-default-features, key: no-default } | ||
| - { args: --all-features, key: all } | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: install Rust | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: ${{ matrix.platform.toolchain }} | ||
| targets: ${{ matrix.platform.target }} | ||
|
|
||
| - uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| prefix-key: v3 | ||
| save-if: ${{ matrix.features.key == 'all' }} | ||
|
|
||
| - name: test | ||
| if: ${{ !matrix.platform.cross }} | ||
| # Using --lib --bins --tests to skip doc tests | ||
| run: cargo ${{ matrix.platform.command }} --target ${{ matrix.platform.target }} ${{ matrix.features.args }} --lib --bins --tests --manifest-path crates/tauri-utils/Cargo.toml | ||
|
|
||
| - name: test (using cross) | ||
| if: ${{ matrix.platform.cross }} | ||
| run: | | ||
| cargo install cross --git https://github.com/cross-rs/cross --rev 51f46f296253d8122c927c5bb933e3c4f27cc317 --locked | ||
| cross ${{ matrix.platform.command }} --target ${{ matrix.platform.target }} ${{ matrix.features.args }} --lib --bins --tests --manifest-path crates/tauri-utils/Cargo.toml | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.