Skip to content

Commit

Permalink
[ci] Move macOS CI from TravisCI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Sep 9, 2020
1 parent bd35e48 commit 6ad35e4
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 17 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Run tests on MacOS

on: [push, pull_request]

jobs:
macos_testing:
runs-on: macos-10.15

steps:
- name: Setup environment - Brew tap
run: |
brew tap osx-cross/avr
brew tap osx-cross/arm
- name: Setup environment - Brew install
run: |
brew install git doxygen boost gcc avr-gcc arm-gcc-bin cmake || true
brew upgrade boost gcc git || true
- name: Setup environment - Python pip
run: |
pip3 install --user modm scons
- name: Check out repository
uses: actions/checkout@v2

- name: Git Submodules
run: |
git submodule update --init
- name: Hosted Unittests
run: |
export PATH=/Users/runner/Library/Python/3.8/bin:/usr/local/bin:$PATH
(cd test && make run-hosted-darwin)
- name: Hosted Examples
run: |
export PATH=/Users/runner/Library/Python/3.8/bin:/usr/local/bin:$PATH
(cd examples && ../tools/scripts/examples_compile.py linux)
- name: Compile STM32 Examples
run: |
export PATH=/Users/runner/Library/Python/3.8/bin:/usr/local/bin:$PATH
(cd examples && ../tools/scripts/examples_compile.py nucleo_f031k6 nucleo_f103rb nucleo_f303re nucleo_f411re nucleo_f746zg)
(cd examples && ../tools/scripts/examples_compile.py nucleo_g071rb nucleo_l152re nucleo_l476rg nucleo_g474re)
- name: Compile AVR Examples
run: |
export PATH=/Users/runner/Library/Python/3.8/bin:/usr/local/bin:$PATH
(cd examples && ../tools/scripts/examples_compile.py avr)
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

0 comments on commit 6ad35e4

Please sign in to comment.