-
Notifications
You must be signed in to change notification settings - Fork 226
36 lines (34 loc) · 950 Bytes
/
bazel.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
name: Bazel
on:
push:
branches: [main]
pull_request:
branches: ['*']
jobs:
MacOS:
strategy:
matrix:
xcode_version: ['14.1', '14.3.1']
runs-on: macos-13
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
steps:
- uses: actions/checkout@v2
- run: bazelisk test //Tests:UnitTests --test_env=PROJECT_ROOT=$(bazelisk info workspace)
- run: bazelisk build sourcekitten
Linux:
strategy:
matrix:
tag: ['5.7-focal', '5.8-focal']
runs-on: ubuntu-latest
container:
image: swift:${{ matrix.tag }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.13.1' # The Go version to download (if necessary) and use.
- name: Setup Bazel
run: go install github.com/bazelbuild/bazelisk@latest
- name: Build SourceKitten
run: bazelisk build sourcekitten