Feature/7 units 0.2.3 dependency refresh #9
Workflow file for this run
This file contains hidden or 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: Dependency Refresh Tests | |
| on: | |
| push: | |
| branches: | |
| - feature/7-units-0.2.3-dependency-refresh | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| host-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Configure | |
| run: cmake -S tests -B build | |
| - name: Build | |
| run: cmake --build build --parallel | |
| - name: Test | |
| run: ctest --test-dir build --output-on-failure | |
| esp32-compile: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: project/ESPressio-Timing | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: Flowduino/ESPressio-Units | |
| ref: 0.2.3 | |
| path: project/dependencies/ESPressio-Units | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: Flowduino/ESPressio-Observable | |
| ref: 3.0.1 | |
| path: project/dependencies/ESPressio-Observable | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install PlatformIO | |
| run: pip install platformio | |
| - name: Create consumer project | |
| shell: bash | |
| run: | | |
| mkdir -p project/compile/src | |
| cat > project/compile/platformio.ini <<'EOF' | |
| [env:esp32] | |
| platform = espressif32 | |
| board = esp32dev | |
| framework = arduino | |
| build_flags = | |
| -std=gnu++17 | |
| -frtti | |
| build_unflags = | |
| -std=gnu++11 | |
| -fno-rtti | |
| lib_ldf_mode = deep+ | |
| lib_deps = | |
| ../dependencies/ESPressio-Observable | |
| ../dependencies/ESPressio-Units | |
| ../ESPressio-Timing | |
| EOF | |
| cat > project/compile/src/main.cpp <<'EOF' | |
| #include <Arduino.h> | |
| #include <ESPressio_Timing.hpp> | |
| void setup() { | |
| auto& clock = ESPressio::Timing::SystemClock<>::GetInstance(); | |
| (void)clock.GetTime(); | |
| } | |
| void loop() {} | |
| EOF | |
| - name: Compile Timing against released Units 0.2.3 | |
| run: pio run -d project/compile |