-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (46 loc) · 1.15 KB
/
swift-macos-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Swift 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-13-xlarge]
swift: [ "5.9" ]
runs-on: ${{ matrix.os }}
env:
DEVELOPER_DIR: /Applications/Xcode_15.1.0.app/Contents/Developer
steps:
- uses: fwal/setup-swift@v1
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@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