chore: open-source scaffolding (CI matrix, release workflow, OSS files) #1
Workflow file for this run
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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: "Tag to publish (e.g. v0.1.0). Creates a draft release." | |
| required: true | |
| type: string | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| name: ${{ matrix.platform.name }} | |
| runs-on: ${{ matrix.platform.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: | |
| - name: Linux x86_64 | |
| os: ubuntu-22.04 | |
| target: x86_64-unknown-linux-gnu | |
| - name: macOS Apple Silicon | |
| os: macos-14 | |
| target: aarch64-apple-darwin | |
| - name: macOS Intel | |
| os: macos-13 | |
| target: x86_64-apple-darwin | |
| - name: Windows x86_64 | |
| os: windows-latest | |
| target: x86_64-pc-windows-msvc | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Linux Tauri deps | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libwebkit2gtk-4.1-dev \ | |
| libsoup-3.0-dev \ | |
| libjavascriptcoregtk-4.1-dev \ | |
| libayatana-appindicator3-dev \ | |
| librsvg2-dev \ | |
| build-essential \ | |
| libssl-dev \ | |
| pkg-config | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.platform.target }} | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: ${{ matrix.platform.target }} | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install frontend deps | |
| run: npm --prefix frontend ci | |
| - name: Resolve tag | |
| id: tag | |
| shell: bash | |
| run: | | |
| if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then | |
| echo "name=${{ inputs.tag }}" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "name=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT" | |
| fi | |
| - uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tagName: ${{ steps.tag.outputs.name }} | |
| releaseName: "OrcaSync ${{ steps.tag.outputs.name }}" | |
| releaseBody: | | |
| See [CHANGELOG](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md) for details. | |
| Bundles for each platform are attached below. On first launch: | |
| - **Windows**: SmartScreen may warn — these builds aren't code-signed yet. | |
| - **macOS**: right-click → Open the first time, since the app isn't notarized. | |
| - **Linux**: AppImage needs `chmod +x`; .deb installs with `apt`. | |
| releaseDraft: true | |
| prerelease: false | |
| args: --target ${{ matrix.platform.target }} |