Skip to content

Commit

Permalink
wip ci
Browse files Browse the repository at this point in the history
  • Loading branch information
omochi committed Jun 11, 2024
1 parent 586b31d commit 5592555
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,53 +7,53 @@ on:
branches: [main]

jobs:
swift-test-macos:
name: Build and test on ${{ matrix.os }} with Swift ${{ matrix.swift }}, Xcode ${{ matrix.xcode }}
timeout-minutes: 40
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-14
xcode: "15.4"
swift: "6.0"
swift-install:
dir: "swift-6.0-branch/xcode"
version: "swift-6.0-DEVELOPMENT-SNAPSHOT-2024-06-07-a"
- os: macos-14
xcode: "15.4"
swift: "5.10"
- os: macos-13
xcode: "15.2"
swift: "5.9.2"
# swift-test-macos:
# name: Build and test on ${{ matrix.os }} with Swift ${{ matrix.swift }}, Xcode ${{ matrix.xcode }}
# timeout-minutes: 40
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# include:
# - os: macos-14
# xcode: "15.4"
# swift: "6.0"
# swift-install:
# dir: "swift-6.0-branch/xcode"
# version: "swift-6.0-DEVELOPMENT-SNAPSHOT-2024-06-07-a"
# - os: macos-14
# xcode: "15.4"
# swift: "5.10"
# - os: macos-13
# xcode: "15.2"
# swift: "5.9.2"

steps:
- name: Checkout the repository
uses: actions/checkout@v4
# steps:
# - name: Checkout the repository
# uses: actions/checkout@v4

- name: Select Xcode version
run: sudo xcode-select --switch /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
# - name: Select Xcode version
# run: sudo xcode-select --switch /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer

- name: Install Swift ${{ matrix.swift }}
if: ${{ matrix.swift-install != null }}
run: bash ci/mac/install-swift.bash
env:
SWIFT_DIR: ${{ matrix.swift-install.dir }}
SWIFT_VERSION: ${{ matrix.swift-install.version }}
# - name: Install Swift ${{ matrix.swift }}
# if: ${{ matrix.swift-install != null }}
# run: bash ci/mac/install-swift.bash
# env:
# SWIFT_DIR: ${{ matrix.swift-install.dir }}
# SWIFT_VERSION: ${{ matrix.swift-install.version }}

- name: Check Swift version
run: swift --version
# - name: Check Swift version
# run: swift --version

- name: Install dependencies for macOS
run: brew bundle
# - name: Install dependencies for macOS
# run: brew bundle

- name: Build the project
run: swift build --build-tests
# - name: Build the project
# run: swift build --build-tests

- name: Run tests
run: swift test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Run tests
# run: swift test
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

swift-test-linux:
name: Build and test on Linux with Swift ${{ matrix.swift.version }}
Expand All @@ -65,12 +65,12 @@ jobs:
- swift:
dir: "swift-6.0-branch/ubuntu2204"
version: "swift-6.0-DEVELOPMENT-SNAPSHOT-2024-06-07-a"
- swift:
dir: "swift-5.10-release/ubuntu2204"
version: "swift-5.10-RELEASE"
- swift:
dir: "swift-5.9.2-release/ubuntu2204"
version: "swift-5.9.2-RELEASE"
# - swift:
# dir: "swift-5.10-release/ubuntu2204"
# version: "swift-5.10-RELEASE"
# - swift:
# dir: "swift-5.9.2-release/ubuntu2204"
# version: "swift-5.9.2-RELEASE"
steps:
- name: Checkout the repository
uses: actions/checkout@v4
Expand Down

0 comments on commit 5592555

Please sign in to comment.