Skip to content

Add StdioTransport support for Windows platform #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 63 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,82 @@ permissions:
pull-requests: write

jobs:
test:
setup:
name: Setup
runs-on: ubuntu-latest
outputs:
swift-versions: ${{ steps.set-matrix.outputs.swift-versions }}
env:
SWIFT_VERSIONS: |
6.0.3
6.1.0
steps:
- id: set-matrix
run: |
# Convert multi-line string to JSON array (jq is pre-installed on GitHub runners)
VERSIONS=$(echo "$SWIFT_VERSIONS" | jq -R -s -c 'split("\n") | map(select(length > 0))')
echo "swift-versions=$VERSIONS" >> $GITHUB_OUTPUT

test-macos:
name: Test (macOS, Swift ${{ matrix.swift-version }})
needs: setup
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
swift-version:
- 6.0.3
- 6.1.0
swift-version: ${{ fromJson(needs.setup.outputs.swift-versions) }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

runs-on: ${{ matrix.os }}
name: Test (${{ matrix.os }}, Swift ${{ matrix.swift-version }})
- name: Setup Swift
uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift-version }}

- name: Build
run: swift build -v

- name: Run tests
run: swift test -v

test-ubuntu:
name: Test (Ubuntu, Swift ${{ matrix.swift-version }})
needs: setup
strategy:
matrix:
swift-version: ${{ fromJson(needs.setup.outputs.swift-versions) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Swift on Linux
if: matrix.os == 'ubuntu-latest'
- name: Setup Swift
uses: vapor/[email protected]
with:
toolchain: ${{ matrix.swift-version }}
- name: Setup Swift on macOS
if: matrix.os == 'macos-latest'
uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift-version }}

- name: Build
run: swift build -v

- name: Run tests
run: swift test -v

test-windows:
name: Test (Windows, Swift ${{ matrix.swift-version }})
needs: setup
strategy:
matrix:
swift-version: ${{ fromJson(needs.setup.outputs.swift-versions) }}
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- name: Setup Swift
uses: compnerd/gha-setup-swift@15100508ed98274c660b39a3d171f9b9b80926c5
with:
branch: swift-${{ matrix.swift-version }}-release
tag: ${{ matrix.swift-version }}-RELEASE

- name: Build
run: swift build -v -Xswiftc -Xfrontend -Xswiftc -disable-implicit-concurrency-module-import -Xswiftc -Xfrontend -Xswiftc -disable-implicit-string-processing-module-import

- name: Run tests
run: swift test -v -Xswiftc -Xfrontend -Xswiftc -disable-implicit-concurrency-module-import -Xswiftc -Xfrontend -Xswiftc -disable-implicit-string-processing-module-import
Loading
Loading