diff --git a/.github/workflows/cultmesh-portability.yml b/.github/workflows/cultmesh-portability.yml index b5787fd4..b93aeeb0 100644 --- a/.github/workflows/cultmesh-portability.yml +++ b/.github/workflows/cultmesh-portability.yml @@ -16,8 +16,8 @@ jobs: strategy: fail-fast: false matrix: - # The forge runner (label `docker`) is Linux-only and no Windows runner exists: the Windows leg runs on workflow_dispatch only (GitHub or a Windows runner), the docker leg gates push and PR. Windows push/PR triggers return in the PR that registers a Windows runner. - os: ${{ fromJSON(github.event_name == 'workflow_dispatch' && '["windows-latest", "docker"]' || '["docker"]') }} + # The forge runner (label `ubuntu-latest`) is Linux-only and no Windows runner exists: the Windows leg runs on workflow_dispatch only (GitHub or a Windows runner), the ubuntu-latest leg gates push and PR. Windows push/PR triggers return in the PR that registers a Windows runner. + os: ${{ fromJSON(github.event_name == 'workflow_dispatch' && '["windows-latest", "ubuntu-latest"]' || '["ubuntu-latest"]') }} steps: - name: Check out CultLib @@ -45,6 +45,23 @@ jobs: - name: Install Python CultLib packages run: python -m pip install -e packages/cultcache-py -e packages/cultnet-py -e packages/cultmesh-py + # The forge runner images carry no pwsh; GitHub's Windows and hosted images do. + - name: Install PowerShell + if: runner.os == 'Linux' + shell: bash + run: | + set -euo pipefail + if command -v pwsh >/dev/null; then pwsh -Version; exit 0; fi + SUDO=""; [ "$(id -u)" -eq 0 ] || SUDO="sudo" + PWSH_VERSION=7.4.6 + curl -fsSL "https://github.com/PowerShell/PowerShell/releases/download/v${PWSH_VERSION}/powershell-${PWSH_VERSION}-linux-x64.tar.gz" -o "${RUNNER_TEMP:-/tmp}/powershell.tar.gz" + $SUDO mkdir -p /opt/microsoft/powershell/7 + $SUDO tar -xzf "${RUNNER_TEMP:-/tmp}/powershell.tar.gz" -C /opt/microsoft/powershell/7 + $SUDO chmod +x /opt/microsoft/powershell/7/pwsh + $SUDO ln -sf /opt/microsoft/powershell/7/pwsh /usr/local/bin/pwsh + echo "DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1" >> "$GITHUB_ENV" + DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 pwsh -Version + - name: Verify explicit reactive scheduling across runtimes shell: pwsh run: ./scripts/verify-reactive-document-scaling.ps1 diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml index f4026e41..caa24336 100644 --- a/.github/workflows/publish-packages.yml +++ b/.github/workflows/publish-packages.yml @@ -50,7 +50,7 @@ jobs: cultcache-ts: name: "@gamecult/cultcache-ts to npm" if: startsWith(github.ref, 'refs/tags/cultcache-ts-v') || inputs.package == 'cultcache-ts' - runs-on: docker + runs-on: ubuntu-latest timeout-minutes: 20 steps: # fetch-depth: 0 so the semver check in the release step can see every previously @@ -103,7 +103,7 @@ jobs: fail-fast: false matrix: package: [cultcache-py, cultnet-py, cultmesh-py] - runs-on: docker + runs-on: ubuntu-latest timeout-minutes: 20 environment: pypi permissions: diff --git a/.github/workflows/quic-native.yml b/.github/workflows/quic-native.yml index eb72975c..e9d6a3eb 100644 --- a/.github/workflows/quic-native.yml +++ b/.github/workflows/quic-native.yml @@ -31,7 +31,7 @@ jobs: github.event_name == 'pull_request' || (github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/cultmesh-quic-native-v'))) - runs-on: docker + runs-on: ubuntu-latest timeout-minutes: 5 steps: - name: Check out CultLib @@ -90,11 +90,11 @@ jobs: if: >- github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/cultmesh-quic-native-v')) - runs-on: docker + runs-on: ubuntu-latest # Q6 A: this pinned Debian 13 container is the only permitted Linux # release builder. The digest is the pin; the `debian:13` tag is only a # label. The artifact links against this image's glibc (2.41); - # a bare runner (label `docker`) has no pinned glibc (a GitHub ubuntu-latest image carried 2.39), which is not the deploy host's + # a bare runner's OS image has its own glibc (a GitHub ubuntu-latest image carried 2.39), which is not the deploy host's # OS (docs/typescript-quic-realtime-cut.md:2192-2197). container: image: debian:13@sha256:f324c7ff54321e8d9c588493a20244965938ce0aa50bbd1022d38010e9ffc4b1 @@ -134,7 +134,7 @@ jobs: name: Release native binaries needs: [build-win32-x64, build-linux-x64] if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/cultmesh-quic-native-v') - runs-on: docker + runs-on: ubuntu-latest timeout-minutes: 10 permissions: contents: write