-
Notifications
You must be signed in to change notification settings - Fork 200
61 lines (57 loc) · 1.49 KB
/
macos-ci.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
55
56
57
58
59
60
61
name: CI
on:
pull_request:
branches:
- trunk
push:
branches:
- trunk
defaults:
run:
shell: bash
env:
BUILD_DIR: x86_64
jobs:
build-release:
name: Build Release Candidate
runs-on: macos-latest
env:
BUILD_RELEASE: 1
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup Build Env
run: ./scripts/install-build-tools.sh
- name: Setup Local Dependencies
run: ./scripts/setup-dependencies.sh
- name: Build
run: scripts/build.sh
unit-and-integration-test:
name: Unit and Integration Tests
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup Build Env
run: ./scripts/install-build-tools.sh
- name: Setup Local Dependencies
run: ./scripts/setup-dependencies.sh
- name: Build
run: scripts/build.sh
- name: Run Unit Tests
run: scripts/test.sh
- name: Shorten SHA
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- uses: actions/upload-artifact@v2
if: ${{ !env.ACT }}
name: Archive Test Results
with:
name: Test Results for ${{ steps.vars.outputs.sha_short }}
path: |
${{env.BUILD_DIR}}/unit_tests_coverage/output/*
${{env.BUILD_DIR}}/integration_tests_coverage/output/*
retention-days: 7