test-cli-rs.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Copyright 2019-2023 Tauri Programme within The Commons Conservancy
  2. # SPDX-License-Identifier: Apache-2.0
  3. # SPDX-License-Identifier: MIT
  4. name: test `tauri-cli`
  5. on:
  6. push:
  7. branches:
  8. - dev
  9. - next
  10. pull_request:
  11. paths:
  12. - '.github/workflows/test-cli-rs.yml'
  13. - 'tooling/cli/**'
  14. env:
  15. RUST_BACKTRACE: 1
  16. CARGO_PROFILE_DEV_DEBUG: 0 # This would add unnecessary bloat to the target folder, decreasing cache efficiency.
  17. concurrency:
  18. group: ${{ github.workflow }}-${{ github.ref }}
  19. cancel-in-progress: true
  20. jobs:
  21. test:
  22. runs-on: ${{ matrix.platform }}
  23. strategy:
  24. fail-fast: false
  25. matrix:
  26. platform: [ubuntu-latest, macos-latest, windows-latest]
  27. steps:
  28. - uses: actions/checkout@v2
  29. - name: install stable
  30. uses: actions-rs/toolchain@v1
  31. with:
  32. toolchain: stable
  33. override: true
  34. - name: install Linux dependencies
  35. if: matrix.platform == 'ubuntu-latest'
  36. run: |
  37. sudo apt-get update
  38. sudo apt-get install -y libgtk-3-dev
  39. - uses: Swatinem/rust-cache@v2
  40. with:
  41. workspaces: tooling/cli
  42. - name: build CLI
  43. uses: actions-rs/cargo@v1
  44. with:
  45. command: build
  46. args: --manifest-path ./tooling/cli/Cargo.toml