name: "CI" on: push: branches-ignore: - 'dependabot/**' pull_request: jobs: test-tauri: strategy: fail-fast: false matrix: platform: [macos-latest, ubuntu-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v2 - name: setup node uses: actions/setup-node@v1 with: node-version: 12 - name: install Rust stable uses: actions-rs/toolchain@v1 with: toolchain: stable - name: install tauri bundler run: cargo install tauri-bundler --force - name: install webkit2gtk (ubuntu only) if: matrix.platform == 'ubuntu-latest' run: | sudo apt-get update sudo apt-get install -y webkit2gtk-4.0 squashfs-tools - name: install app dependencies run: yarn - uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: npmScript: "tauri:build" - uses: actions/upload-artifact@v2 with: name: my-artifact ${{ matrix.node-version }} path: src-tauri/target/release/bundle