-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.31 KB
/
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
name: build
on: [push, pull_request]
jobs:
build-macos:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os : [macos-11, macos-latest]
type: [xcode, cmake]
arch: [arm64, x86_64]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Run Xcode - ${{ matrix.os }} / ${{ matrix.arch }}
if: ${{ matrix.type == 'xcode' }}
run: |
xcodebuild -project MIPSCPU.xcodeproj -scheme MIPSCPU -arch ${{ matrix.arch }} -configuration Release build
- name: Run Xcode Tests - ${{ matrix.os }} / ${{ matrix.arch }}
if: ${{ matrix.type == 'xcode' && matrix.arch == 'x86_64' }}
run: |
xcodebuild -project MIPSCPU.xcodeproj -scheme MIPSCPUTests -arch ${{ matrix.arch }} test
- name: Run CMake - ${{ matrix.os }} / ${{ matrix.arch }}
if: ${{ matrix.type == 'cmake' }}
env:
CMAKE_OSX_ARCHITECTURES: ${{ matrix.arch }}
run: |
cmake . -Bbuild
cmake --build build --
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Run CMake (dockerized)
run: |
./docker/linux-build.sh