Fix SteamVR restoration (#1108) #472
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
| # This workflow will... | |
| name: Build | |
| on: | |
| push: | |
| branches: ["master"] | |
| workflow_dispatch: | |
| jobs: | |
| release: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-latest, ubuntu-latest, ubuntu-24.04-arm] | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6 | |
| with: | |
| version: 10.34.4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: "pnpm" | |
| cache-dependency-path: | | |
| pnpm-lock.yaml | |
| release/app/pnpm-lock.yaml | |
| # Update package lists | |
| - name: update apt-get | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update | |
| # Install and setup rpm/Flatpak for Ubuntu | |
| - name: Install rpm/flatpak packages (Ubuntu only) | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get install -y flatpak flatpak-builder rpm libarchive-tools | |
| # Native modules need lifecycle scripts, restricted by allowBuilds. | |
| - run: pnpm install --frozen-lockfile # NOSONAR | |
| # CI artifacts are intentionally unsigned; releases are signed locally. | |
| - run: pnpm run package:unsigned | |
| - name: Setup flatpak repo (Ubuntu only) | |
| if: runner.os == 'Linux' | |
| run: | | |
| flatpak remote-add --if-not-exists --user \ | |
| flathub https://flathub.org/repo/flathub.flatpakrepo | |
| # Build Flatpak package | |
| - name: Build Flatpak (Ubuntu only) | |
| if: runner.os == 'Linux' | |
| run: | | |
| env DEBUG="@malept/flatpak-bundler" \ | |
| pnpm exec electron-builder --config electron-builder.config.js --publish never --linux flatpak | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: release-${{ matrix.os }} | |
| path: release |