-
Notifications
You must be signed in to change notification settings - Fork 15
42 lines (39 loc) · 1.05 KB
/
build_and_test.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
name: Build and Test
on: [push, pull_request]
jobs:
test:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Run tests
run: swift test
build:
strategy:
matrix:
xcode-version: [ "11.7", "12.4" ]
package-scheme: [ "", "rootless" ]
# match release workflow
runs-on: macos-11
steps:
- uses: actions/checkout@v4
with:
submodules: true
path: orion
- name: Set Up Dependencies
run: |
brew install ldid make fakeroot
echo "THEOS=${GITHUB_WORKSPACE}/theos" >> "${GITHUB_ENV}"
echo "PATH=/usr/local/opt/make/libexec/gnubin:${PATH}" >> "${GITHUB_ENV}"
- name: Install Theos
uses: actions/checkout@v4
with:
repository: theos/theos
path: theos
submodules: recursive
- name: Build
run: |
cd orion
DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode-version }}.app/Contents/Developer \
make THEOS_PACKAGE_SCHEME="${{ matrix.package-scheme }}"