chore(deps): update rust crate tauri-build to v2 #81
This file contains 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
name: Test | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/test.yml' | |
- 'src/**' | |
- 'examples/test/**' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/test.yml' | |
- 'src/**' | |
- 'examples/test/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
target: wasm32-unknown-unknown | |
- uses: Swatinem/rust-cache@v1 | |
- name: Install native deps | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y webkit2gtk-4.0 at-spi2-core | |
- name: Install Tauri CLI | |
run: | | |
cd examples/test | |
wget -qO- https://github.com/tauri-apps/tauri/releases/download/cli.rs-v1.5.8/cargo-tauri-x86_64-unknown-linux-gnu.tgz | tar -xzf- -C ~/.cargo/bin | |
- name: Install Trunk | |
run: | | |
cd examples/test | |
wget -qO- https://github.com/thedodd/trunk/releases/download/v0.18.0/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf- -C ~/.cargo/bin | |
- name: Run test app | |
run: | | |
cd examples/test | |
export CARGO_UNSTABLE_SPARSE_REGISTRY=true | |
xvfb-run cargo tauri dev --exit-on-panic --config ./src-tauri/ci.tauri.conf.json |