Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devex: add support for macOS in the CI #263

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
61 changes: 61 additions & 0 deletions .github/workflows/macos-ci.yml
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: ./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
Loading