chore(deps-dev): bump @tauri-apps/cli from 1.3.1 to 1.5.2 #285
Workflow file for this run
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-and-build-on-pr" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create dist dir | |
run: mkdir dist | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf | |
- name: Lint | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --manifest-path ./src-tauri/Cargo.toml | |
- name: Execute tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --manifest-path ./src-tauri/Cargo.toml | |
- uses: taiki-e/install-action@cargo-llvm-cov | |
- name: Collect Coverage | |
run: cd src-tauri && cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 | |
build-debug: | |
if: ${{ github.event.label.name == 'testbuild' }} | |
needs: test | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [ubuntu-20.04, windows-2022, macos-latest] # TODO add all platforms | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: install dependencies (ubuntu only) | |
if: matrix.platform == 'ubuntu-20.04' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf | |
- name: install app dependencies and build with debug | |
run: npm install && npm run deploy-debug | |
- name: Upload Linux debug artifact | |
uses: actions/upload-artifact@v3 | |
if: matrix.platform == 'ubuntu-20.04' | |
with: | |
name: beiboot-desktop-${{ runner.os }}-${{ runner.arch }}-debug | |
path: | | |
src-tauri/target/debug/bundle/appimage/getdeck-desktop_0.1.0_amd64.AppImage | |
/src-tauri/target/debug/bundle/deb/getdeck-desktop_0.1.0_amd64.deb | |
retention-days: 5 | |
- name: Upload debug artifact | |
uses: actions/upload-artifact@v3 | |
if: matrix.platform != 'ubuntu-20.04' | |
with: | |
name: beiboot-desktop-${{ runner.os }}-${{ runner.arch }}-debug | |
path: | | |
src-tauri/target/debug/bundle/ | |
retention-days: 5 | |
build: | |
if: ${{ github.event.label.name == 'testbuild' }} | |
needs: test | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [ubuntu-20.04, windows-2022, macos-latest] # TODO add all platforms | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: install dependencies (ubuntu only) | |
if: matrix.platform == 'ubuntu-20.04' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf | |
- name: build for prod | |
run: npm install && npm run deploy | |
- name: Upload Linux prod artifact | |
uses: actions/upload-artifact@v3 | |
if: matrix.platform == 'ubuntu-20.04' | |
with: | |
name: beiboot-desktop-${{ runner.os }}-${{ runner.arch }} | |
path: | | |
src-tauri/target/release/bundle/appimage/getdeck-desktop_0.1.0_amd64.AppImage | |
/src-tauri/target/release/bundle/deb/getdeck-desktop_0.1.0_amd64.deb | |
retention-days: 5 | |
- name: Upload prod Artifact | |
uses: actions/upload-artifact@v3 | |
if: matrix.platform != 'ubuntu-20.04' | |
with: | |
name: beiboot-desktop-${{ runner.os }}-${{ runner.arch }} | |
path: | | |
src-tauri/target/release/bundle/ | |
retention-days: 5 |