Skip to content

Commit

Permalink
🚀 Add 10.6.0 launch yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
kammce committed Jun 11, 2024
1 parent cc56ff4 commit 182c573
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 51 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/10.6.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 🚀 Deploy 10.6.0

on:
workflow_dispatch:

jobs:
deploy:
uses: libhal/ci/.github/workflows/deploy_all.yml@5.x.y
with:
version: 10.6.0
secrets: inherit
59 changes: 14 additions & 45 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,46 +17,13 @@ name: ✅ CI
on:
workflow_dispatch:
pull_request:
release:
types:
- published
- deleted
push:
branches:
- main
schedule:
- cron: "0 12 * * 0"

jobs:
pull:
runs-on: ubuntu-22.04
if: github.event.action == 'deleted'
steps:
- name: 📥 Install CMake + Conan
run: pip3 install cmake conan

- name: 📡 Add `libhal` repo to conan remotes
run: conan remote add libhal
https://libhal.jfrog.io/artifactory/api/conan/trunk-conan

- name: 📡 Create and setup default profile
run: conan profile detect --force

- name: 👁️‍🗨️ Show conan profile
run: conan profile show

- name: 📡 Install linux default profiles
run: conan config install -sf profiles/x86_64/linux/ -tf profiles https://github.com/libhal/conan-config.git

- name: 📡 Sign into JFrog Artifactory
env:
API_KEY: ${{ secrets.JFROG_LIBHAL_TRUNK_API_KEY }}
JFROG_USER: ${{ secrets.JFROG_LIBHAL_TRUNK_USER }}
run: conan remote login -p $API_KEY libhal $JFROG_USER

- name: 🚮 Pulling package version ${{ github.event.release.tag_name }} from `libhal` repo
run: conan remove "libhal-freertos/${{ github.event.release.tag_name }}" --confirm -r=libhal

build_and_package:
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -85,26 +52,28 @@ jobs:
run: conan remote login -p $API_KEY libhal $JFROG_USER

- name: Install libhal settings_user.yml
run: conan config install -sf profiles/baremetal https://github.com/libhal/conan-config.git
run: conan config install -sf profiles/baremetal/v2 https://github.com/libhal/conan-config.git

- name: Install host OS profiles
run: conan config install -sf profiles/x86_64/linux/ -tf profiles https://github.com/libhal/conan-config.git

- name: Install processor profiles
run: conan config install -tf profiles -sf conan/profiles/ https://github.com/libhal/libhal-armcortex.git
- name: Install compiler profiles
run: conan config install -tf profiles -sf conan/profiles/v1 https://github.com/libhal/arm-gnu-toolchain.git

- name: Install "libhal-lpc40" platform profiles
run: conan config install -tf profiles -sf conan/profiles/ https://github.com/libhal/libhal-lpc40.git
run: conan config install -tf profiles -sf conan/profiles/v2 https://github.com/libhal/libhal-lpc40.git

- name: Install "libhal-lpc40" platform profiles
run: conan config install -tf profiles -sf conan/profiles/ https://github.com/libhal/libhal-stm32f1.git
- name: Install "libhal-stm32f1" platform profiles
run: conan config install -tf profiles -sf conan/profiles/v2 https://github.com/libhal/libhal-stm32f1.git

- name: 📦 Create `MinSizeRel` package for lpc4078
run: conan create . --version=10.6.0 -pr lpc4078 -s build_type=MinSizeRel -b missing
run: conan create . --version=10.6.0 -pr lpc4078 -pr arm-gcc-12.3 -s build_type=MinSizeRel -b missing

- name: 📦 Create `MinSizeRel` package for stm32f103re
run: conan create . --version=10.6.0 -pr stm32f103re -pr arm-gcc-12.3 -s build_type=MinSizeRel -b missing

- name: 📦 Create `MinSizeRel` package for stm32f103c8
run: conan create . --version=10.6.0 -pr stm32f103c8 -s build_type=MinSizeRel -b missing
- name: 📦 Build demo for lpc4078
run: conan build demos -pr lpc4078 -pr arm-gcc-12.3 -s build_type=MinSizeRel

- name: 🆙 Upload package version ${{ github.ref_name }} to `libhal` repo
if: startsWith(github.ref, 'refs/tags/')
run: conan upload --only-recipe "libhal-freertos/${{ github.ref_name }}" --confirm -r=libhal
- name: 📦 Build demo for stm32f103re
run: conan build demos -pr stm32f103re -pr arm-gcc-12.3 -s build_type=MinSizeRel
6 changes: 0 additions & 6 deletions demos/platforms/lpc4078.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,10 @@

#include <libhal-armcortex/dwt_counter.hpp>
#include <libhal-armcortex/interrupt.hpp>
#include <libhal-armcortex/startup.hpp>
#include <libhal-armcortex/system_control.hpp>
#include <libhal-armcortex/systick_timer.hpp>
#include <libhal-lpc40/clock.hpp>
#include <libhal-lpc40/constants.hpp>
#include <libhal-lpc40/output_pin.hpp>
#include <libhal-lpc40/power.hpp>
#include <libhal-lpc40/stream_dac.hpp>
#include <libhal-util/enum.hpp>
#include <libhal-util/static_callable.hpp>
#include <libhal-util/steady_clock.hpp>

#include "../hardware_map.hpp"
Expand Down

0 comments on commit 182c573

Please sign in to comment.