-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devex: add support for macOS in the CI
This is the core step towards making macOS officially-supported rather than a bit of a second-class citizen. Signed-off-by: Sam Stuewe <[email protected]>
- Loading branch information
1 parent
541f006
commit 1e6930a
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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: sudo ./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: sudo ./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 |