Skip to content

feat(patch): Update documentation - add Vapor CI workflows and exampl… #248

feat(patch): Update documentation - add Vapor CI workflows and exampl…

feat(patch): Update documentation - add Vapor CI workflows and exampl… #248

name: Swift macOS build older versions
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main, next ]
jobs:
build-macos-previous:
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [macos-14]
xcode: ["15.2", "15.3"]
#swift: ["5.9", "5.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: swift-actions/setup-swift@v2
if: ${{ false }}
with:
swift-version: ${{ matrix.swift }}
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}
- name: Homebrew Mac
if: ${{ runner.os == 'Macos' }}
run: |
echo "/opt/homebrew/bin:/usr/local/bin" >> $GITHUB_PATH
echo BENCHMARK_DISABLE_JEMALLOC=true >> $GITHUB_ENV
brew install jemalloc
- uses: actions/checkout@v3
- name: Start consul
uses: ./.github/actions/consul-start
- name: Swift version
run: swift --version
- name: Build
run: swift build
- name: Run tests
run: |
if [ -d Tests ]; then
swift test --parallel
fi
- name: Run tests (release)
run: |
if [ -d Tests ]; then
swift test -c release --parallel
fi
- name: Setup tmate session
if: false && failure()
uses: mxschmitt/action-tmate@v3