fix mod load with empty gameversions (#3455) #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: Nix | |
| on: | |
| push: | |
| paths-ignore: | |
| - "**.md" | |
| - "**/LICENSE" | |
| - ".github/ISSUE_TEMPLATE/**" | |
| - ".markdownlint**" | |
| - "flatpak/**" | |
| pull_request_target: | |
| paths-ignore: | |
| - "**.md" | |
| - "**/LICENSE" | |
| - ".github/ISSUE_TEMPLATE/**" | |
| - ".markdownlint**" | |
| - "flatpak/**" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| DEBUG: ${{ github.ref_type != 'tag' }} | |
| USE_DETERMINATE: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| build: | |
| name: Build (${{ matrix.system }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-22.04 | |
| system: x86_64-linux | |
| - os: ubuntu-22.04-arm | |
| system: aarch64-linux | |
| - os: macos-13 | |
| system: x86_64-darwin | |
| - os: macos-14 | |
| system: aarch64-darwin | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| id-token: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@v16 | |
| with: | |
| determinate: ${{ env.USE_DETERMINATE }} | |
| # For PRs | |
| - name: Setup Nix Magic Cache | |
| if: ${{ env.USE_DETERMINATE }} | |
| uses: DeterminateSystems/flakehub-cache-action@v1 | |
| # For in-tree builds | |
| - name: Setup Cachix | |
| if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | |
| uses: cachix/cachix-action@v15 | |
| with: | |
| name: prismlauncher | |
| authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| - name: Run Flake checks | |
| run: | | |
| nix flake check --print-build-logs --show-trace | |
| - name: Build debug package | |
| if: ${{ env.DEBUG }} | |
| run: | | |
| nix build \ | |
| --no-link --print-build-logs --print-out-paths \ | |
| .#prismlauncher-debug >> "$GITHUB_STEP_SUMMARY" | |
| - name: Build release package | |
| if: ${{ !env.DEBUG }} | |
| run: | | |
| nix build \ | |
| --no-link --print-build-logs --print-out-paths \ | |
| .#prismlauncher >> "$GITHUB_STEP_SUMMARY" |