Files
Hiroshi SHIBATAandClaude Opus 4.7 6123b79877 Test windows-2025-vs2026 runner for Visual Studio 2026 migration
GitHub Actions will migrate windows-latest and windows-2025 labels to use
Visual Studio 2026 by default between June 8 and June 15, 2026. Switch the
Windows MSVC build and WSL workflow to the windows-2025-vs2026 early-access
label to validate the new image ahead of the rollout.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 10:34:24 +09:00

74 lines
2.1 KiB
YAML

name: Ubuntu on WSL
on:
push:
paths-ignore:
- 'doc/**'
- '**/man/*'
- '**.md'
- '**.rdoc'
- '**/.document'
- '.*.yml'
pull_request:
# Do not use paths-ignore for required status checks
# https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
merge_group:
permissions:
contents: read
jobs:
wsl:
runs-on: windows-2025-vs2026
if: >-
${{!(false
|| contains(github.event.head_commit.message, '[DOC]')
|| contains(github.event.pull_request.title, '[DOC]')
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
|| (github.event.pull_request.user.login == 'dependabot[bot]')
)}}
steps:
- name: Install or update WSL
uses: Ubuntu/WSL/.github/actions/wsl-install@main
with:
distro: Ubuntu-24.04
- name: Install dependencies
uses: Ubuntu/WSL/.github/actions/wsl-bash@main
with:
distro: Ubuntu-24.04
working-dir: /tmp/github/
exec: |
DEBIAN_FRONTEND=noninteractive sudo apt update
DEBIAN_FRONTEND=noninteractive sudo apt install -y ruby build-essential autoconf libssl-dev libyaml-dev zlib1g-dev libgmp-dev libffi-dev
- name: Check out the repository
uses: Ubuntu/WSL/.github/actions/wsl-checkout@main
with:
distro: Ubuntu-24.04
working-dir: /tmp/github/
submodules: true
- name: Build
uses: Ubuntu/WSL/.github/actions/wsl-bash@main
with:
distro: Ubuntu-24.04
working-dir: /tmp/github/
exec: |
./autogen.sh
./configure --disable-install-doc
make ruby -j4
make extract-gems
make -j4
- name: Test
uses: Ubuntu/WSL/.github/actions/wsl-bash@main
with:
distro: Ubuntu-24.04
working-dir: /tmp/github/
exec: |
./ruby -v
# make check TESTS="-j4" MSPECOPT="-j"