Build ZFileTimeMachine Artifacts #1
This file contains hidden or 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: Build ZFileTimeMachine Artifacts | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-linux: | |
| name: Linux x86_64 | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: '10' | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| cache: 'pnpm' | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: swatinem/rust-cache@v2 | |
| with: | |
| workspaces: './src-tauri -> target' | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libwebkit2gtk-4.1-dev \ | |
| libayatana-appindicator3-dev \ | |
| librsvg2-dev \ | |
| patchelf | |
| - run: pnpm install | |
| - id: build | |
| uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| args: --bundles appimage,deb,rpm | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-linux | |
| path: "${{ join(fromJSON(steps.build.outputs.artifactPaths), '\n') }}" | |
| if-no-files-found: error | |
| build-windows: | |
| name: Windows x64 | |
| runs-on: windows-2025 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: '10' | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| cache: 'pnpm' | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: swatinem/rust-cache@v2 | |
| with: | |
| workspaces: './src-tauri -> target' | |
| - run: pnpm install | |
| - id: build | |
| uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| args: --bundles nsis,msi | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-windows | |
| path: "${{ join(fromJSON(steps.build.outputs.artifactPaths), '\n') }}" | |
| if-no-files-found: error | |
| build-macos-arm: | |
| name: macOS Apple Silicon | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: '10' | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| cache: 'pnpm' | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: aarch64-apple-darwin | |
| - uses: swatinem/rust-cache@v2 | |
| with: | |
| workspaces: './src-tauri -> target' | |
| - run: pnpm install | |
| - id: build | |
| uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| args: --bundles dmg --target aarch64-apple-darwin | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-macos-arm | |
| path: "${{ join(fromJSON(steps.build.outputs.artifactPaths), '\n') }}" | |
| if-no-files-found: error | |
| build-macos-intel: | |
| name: macOS Intel x64 | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: '10' | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| cache: 'pnpm' | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: x86_64-apple-darwin | |
| - uses: swatinem/rust-cache@v2 | |
| with: | |
| workspaces: './src-tauri -> target' | |
| - run: pnpm install | |
| - id: build | |
| uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| args: --bundles dmg --target x86_64-apple-darwin | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-macos-intel | |
| path: "${{ join(fromJSON(steps.build.outputs.artifactPaths), '\n') }}" | |
| if-no-files-found: error | |
| collect-artifacts: | |
| name: Collect all release artifacts | |
| needs: [build-linux, build-windows, build-macos-arm, build-macos-intel] | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| path: dist/ | |
| merge-multiple: true | |
| - name: List artifacts | |
| run: find dist/ -type f | sort |