chore: read version from tauri.conf.json
instead of hardcoding (#395)
#96
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
RUST_BACKTRACE: 1 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ci-repo-check: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
with: | |
platform: ${{ matrix.platform }} | |
format: ${{ matrix.platform == 'ubuntu-latest' }} | |
lint: true | |
- name: Check formatting | |
if: ${{ matrix.platform == 'ubuntu-latest' }} | |
run: pnpm format:check && taplo format --check --diff | |
- name: Check linting | |
run: pnpm lint:check | |
ci-test: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
with: | |
platform: ${{ matrix.platform }} | |
- name: Run test suite | |
run: pnpm test | |
ci-build: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
with: | |
platform: ${{ matrix.platform }} | |
- name: Build Deskulpt | |
id: build-deskulpt | |
uses: tauri-apps/tauri-action@v0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload build artifacts | |
id: upload-artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: binaries-${{ matrix.platform }} | |
path: "${{ join(fromJSON(steps.build-deskulpt.outputs.artifactPaths), '\n') }}" |