Skip to content

ci: Update swift-code-coverage.yml and drop swift 5.8 build (#280) #333

ci: Update swift-code-coverage.yml and drop swift 5.8 build (#280)

ci: Update swift-code-coverage.yml and drop swift 5.8 build (#280) #333

name: macOS build
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main, next ]
jobs:
build-macos:
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [macos-14]
swift: [ "5.10" ]
runs-on: ${{ matrix.os }}
env:
DEVELOPER_DIR: /Applications/Xcode_15.4.app/Contents/Developer
steps:
- uses: swift-actions/setup-swift@v2
if: ${{ false }}
with:
swift-version: ${{ matrix.swift }}
- 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@v4
- name: Start consul
uses: ./.github/actions/consul-start
- name: GH auth
run: |
echo "machine api.github.com login ${{ secrets.GITHUB_TOKEN }} password x-oauth-basic" > $HOME/.netrc
cat ~/.netrc
- 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