fix(ui): unify chat tooltips and preserve overlay interactions #3
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: Data Migrator Package | |
| on: | |
| push: | |
| tags: ['data-migrator-v*'] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: data-migrator-package-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| name: Migrator (${{ matrix.platform }}) | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 60 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: windows-x64 | |
| os: windows-latest | |
| target: x86_64-pc-windows-msvc | |
| bundles: --no-bundle | |
| - platform: macos-arm64 | |
| os: macos-15 | |
| target: aarch64-apple-darwin | |
| bundles: --bundles dmg | |
| - platform: macos-x64 | |
| os: macos-15-intel | |
| target: x86_64-apple-darwin | |
| bundles: --bundles dmg | |
| - platform: linux-x64 | |
| os: ubuntu-22.04 | |
| target: x86_64-unknown-linux-gnu | |
| bundles: --bundles appimage | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: pnpm/action-setup@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: '22.18.0' | |
| cache: pnpm | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.target }} | |
| - uses: swatinem/rust-cache@v2 | |
| with: | |
| shared-key: data-migrator-${{ matrix.platform }} | |
| cache-bin: false | |
| - name: Install Linux WebView build dependencies | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | |
| - run: pnpm install --frozen-lockfile --ignore-scripts | |
| - name: Verify independent version and packaging contract | |
| run: | | |
| node scripts/data-migrator-release.mjs --check-version | |
| node --test scripts/data-migrator-tauri-build.test.mjs | |
| - name: Check offline data compatibility | |
| run: cargo test --locked -p openbitfun-data-migrator -p openbitfun-legacy-migration-adapters -p openbitfun-legacy-migration -p openbitfun-config-contracts --lib --test migration_engine_contracts | |
| - name: Build independent package | |
| run: pnpm run data-migrator:build -- --target ${{ matrix.target }} ${{ matrix.bundles }} | |
| - name: Stage package and checksum | |
| run: node scripts/data-migrator-release.mjs ${{ matrix.platform }} | |
| - uses: actions/upload-artifact@v6 | |
| with: | |
| name: data-migrator-${{ matrix.platform }} | |
| path: target/data-migrator-release/${{ matrix.platform }}/* | |
| if-no-files-found: error | |
| draft-release: | |
| if: startsWith(github.ref, 'refs/tags/data-migrator-v') | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: '22.18.0' | |
| - uses: actions/download-artifact@v7 | |
| with: | |
| pattern: data-migrator-* | |
| path: migrator-release-assets | |
| merge-multiple: true | |
| - name: Sign and verify with the independent migrator release key | |
| shell: bash | |
| env: | |
| OPENBITFUN_SIGNING_KEY: ${{ secrets.DATA_MIGRATOR_SIGNING_PRIVATE_KEY }} | |
| OPENBITFUN_SIGNING_PASSWORD: ${{ secrets.DATA_MIGRATOR_SIGNING_PRIVATE_KEY_PASSWORD }} | |
| OPENBITFUN_SIGNING_PUBKEY: ${{ secrets.DATA_MIGRATOR_SIGNING_PUBKEY }} | |
| run: | | |
| set -euo pipefail | |
| test -n "$OPENBITFUN_SIGNING_KEY" | |
| test -n "$OPENBITFUN_SIGNING_PUBKEY" | |
| cat migrator-release-assets/*.sha256 | sort -k2 > migrator-release-assets/SHA256SUMS | |
| (cd migrator-release-assets && sha256sum --check SHA256SUMS) | |
| bash scripts/sign-release-assets.sh migrator-release-assets/* | |
| node scripts/write-minisign-public-key.mjs --out migrator-release-assets/data-migrator.minisign.pub | |
| - name: Create a separately reviewed release | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| name: OpenBitFun Data Migrator ${{ github.ref_name }} | |
| draft: true | |
| make_latest: false | |
| files: migrator-release-assets/* | |
| body_path: src/apps/data-migrator/RELEASE.md |