From 98a600c3dd6087676ab075b68bfff8ac41e6799a Mon Sep 17 00:00:00 2001 From: Raphael Lehmann Date: Wed, 9 Sep 2020 14:50:51 +0200 Subject: [PATCH] [ci] Move macOS CI from TravisCI to GitHub Actions Co-authored-by: Niklas Hauser --- .github/workflows/macos.yml | 49 +++++++++++++++++++++++++++++++++++++ .travis.yml | 17 ------------- 2 files changed, 49 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/macos.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000000..0ee8c2c7d9 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,49 @@ +name: Run tests on MacOS + +on: [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 + echo "::add-path::/usr/local/bin" + echo "::add-path::/Users/runner/Library/Python/3.8/bin" + echo $PATH + + - name: Check out repository + uses: actions/checkout@v2 + + - name: Git Submodules + run: | + git submodule update --init + + - name: Hosted Unittests + run: | + (cd test && make run-hosted-darwin) + + - name: Hosted Examples + run: | + (cd examples && ../tools/scripts/examples_compile.py linux) + + - name: Compile STM32 Examples + run: | + (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: | + (cd examples && ../tools/scripts/examples_compile.py avr) diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 73558077b1..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -os: osx -osx_image: xcode11.3 - -before_install: - - brew update - - brew tap osx-cross/avr - - brew tap osx-cross/arm - - brew install git doxygen boost gcc avr-gcc arm-gcc-bin cmake || true - - brew upgrade boost gcc git || true - - pip3 install --user modm scons - - export PATH=/Users/travis/Library/Python/3.8/bin:/usr/local/bin:$PATH - -script: - - (cd test && make run-hosted-darwin) - - (cd examples && ../tools/scripts/examples_compile.py linux) - - (cd examples && ../tools/scripts/examples_compile.py stm32f1_discovery nucleo_f103rb olimexino_stm32 stm32f103c8t6_blue_pill stm32f103c8t6_black_pill) - - (cd test && make compile-arduino-nano)