Skip to content

[stm32] Add RTC driver #3458

[stm32] Add RTC driver

[stm32] Add RTC driver #3458

Workflow file for this run

name: Run tests on MacOS
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
macos_testing:
runs-on: macos-13
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.2'
- name: Setup environment - Brew tap
run: |
brew tap osx-cross/arm
brew tap osx-cross/avr
- name: Setup environment - Brew install
run: |
export HOMEBREW_NO_INSTALL_CLEANUP=1 # saves time
brew update
# brew unlink gcc
brew install doxygen boost gcc@13 avr-gcc@13 arm-gcc-bin@13 cmake || true
brew link --force avr-gcc@13 arm-gcc-bin@13
# brew upgrade boost gcc git || true
- name: Setup environment - Python pip
run: |
pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm scons
echo "/usr/local/bin" >> $GITHUB_PATH
- name: Dump environment
run: |
echo $PATH
env
locale -a
python --version || true
python3 --version || true
python3 -c "import os; print(os.cpu_count())"
which g++
g++ --version
which avr-g++
avr-g++ --version
which arm-none-eabi-g++
arm-none-eabi-g++ --version
which lbuild
lbuild --version
which scons
scons --version
- name: Check out repository
if: always()
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Hosted Unittests
if: always()
run: |
(cd test && make run-hosted-darwin)
- name: Hosted Examples
if: always()
run: |
(cd examples && ../tools/scripts/examples_compile.py linux)
- name: Compile STM32 Examples
if: always()
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_l031k6 nucleo_l152re nucleo_l476rg nucleo_g474re)
- name: Compile AVR Examples
if: always()
run: |
(cd examples && ../tools/scripts/examples_compile.py avr)