testing yml #112
Workflow file for this run
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
name: 🚀 deploy | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
schedule: | |
- cron: '0 12 * * 0' | |
jobs: | |
deploy: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-22.04 | |
profile_name: x86_64/linux | |
# - os: macos-12 | |
# profile_name: x86_64/mac | |
# - os: windows-2022 | |
# profile_name: x86_64/windows | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Install GCC, clang tidy, and build essentials | |
run: sudo apt update && sudo apt upgrade; sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; sudo apt install -y build-essential g++-11 clang-tidy | |
- name: 📥 Install CMake & Conan | |
run: python3 -m pip install "conan>=2.0.13" cmake | |
- name: 📡 Add `libhal-trunk` conan remote | |
run: conan remote add libhal-trunk https://libhal.jfrog.io/artifactory/api/conan/trunk-conan | |
- name: Setting up conan profile | |
run: conan config install -sf profiles/baremetal https://github.com/libhal/conan-config.git; conan profile detect --force; conan config install -sf profiles/x86_64/linux/ -tf profiles https://github.com/libhal/conan-config.git; | |
- name: Get conan profiles | |
run: conan config install -sf conan/profiles/ -tf profiles https://github.com/libhal/libhal-armcortex.git; conan config install -sf conan/profiles/ -tf profiles https://github.com/libhal/libhal-lpc40.git | |
- name: Build drive | |
working-directory: drive | |
run: conan build . -pr lpc4078 -s build_type=MinSizeRel | |
- name: Build arm | |
working-directory: arm | |
run: conan build . -pr lpc4078 -s build_type=MinSizeRel | |