-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (42 loc) · 1.49 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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 CMake & Conan
run: python3 -m pip install "conan>=2.0.6" 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 profile detect --force
run: conan config install -sf profiles/${{matrix.profile_name}}/ -tf profiles https://github.com/libhal/conan-config.git
run: conan config install -sf conan/profiles/ -tf profiles https://github.com/libhal/libhal-armcortex.git
run: 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 -b missing
- name: Build arm
working-directory: arm
run: conan build . -pr lpc4078 -s build_type=MinSizeRel -b missing