Skip to content

deprecate and unify SyncTests, AsyncTests into TestMain, and add the TestBattery protocol for organization #98

deprecate and unify SyncTests, AsyncTests into TestMain, and add the TestBattery protocol for organization

deprecate and unify SyncTests, AsyncTests into TestMain, and add the TestBattery protocol for organization #98

Workflow file for this run

name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
macos-nightly:
runs-on: ${{ matrix.os.runner }}
name: ${{ matrix.os.runner }} (${{ matrix.swift.toolchain }})
env:
SWIFT_TOOLCHAIN_DIRECTORY: /Library/Developer/Toolchains/swift-${{ matrix.swift.toolchain }}.xctoolchain
strategy:
matrix:
os:
- runner: macos-13
prefix: xcode
swift:
- toolchain: 5.10-DEVELOPMENT-SNAPSHOT-2023-09-09-a
branch: swift-5.10-branch
steps:
- uses: actions/checkout@v2
- name: cache swift toolchains
uses: actions/cache@v2
with:
path: swift-${{ matrix.swift.toolchain }}.pkg
key: ${{ matrix.os.runner }}:swift:${{ matrix.swift.toolchain }}
- name: cache status
id: cache_status
uses: andstor/file-existence-action@v1
with:
files: swift-${{ matrix.swift.toolchain }}.pkg
- name: download swift toolchain
if: steps.cache_status.outputs.files_exists == 'false'
run: "curl https://download.swift.org/\
${{ matrix.swift.branch }}/\
${{ matrix.os.prefix }}/\
swift-${{ matrix.swift.toolchain }}/\
swift-${{ matrix.swift.toolchain }}-osx.pkg \
--output swift-${{ matrix.swift.toolchain }}.pkg"
- name: set up swift
run: |
sudo installer -pkg swift-${{ matrix.swift.toolchain }}.pkg -target /
- name: build
run: |
$SWIFT_TOOLCHAIN_DIRECTORY/usr/bin/swift --version
$SWIFT_TOOLCHAIN_DIRECTORY/usr/bin/swift build
macos:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-13
steps:
- uses: actions/checkout@v3
- name: build
run: .github/pipeline
linux:
runs-on: ubuntu-22.04
name: ${{ matrix.image }}
strategy:
matrix:
image:
- swift:5.9-amazonlinux2
- swift:5.9-jammy
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: build and test
run: |
docker run -t --rm \
--name swift-environment \
-v $PWD:/swift-grammar \
-w /swift-grammar \
${{ matrix.image }} \
/bin/bash $(echo .github/pipeline)