|
68 | 68 | run: python run_suite.py bloat |
69 | 69 |
|
70 | 70 | avr_panic_check: |
71 | | - name: AVR Panic Prevention (${{ matrix.int_type }}, ${{ matrix.pico_size }}, ${{ matrix.profile }}) |
| 71 | + name: AVR Panic Prevention (${{ matrix.int_type }}, ${{ matrix.pico_size }}, ${{ matrix.profile }}, defmt=${{ matrix.defmt }}) |
72 | 72 | runs-on: ubuntu-latest |
73 | 73 | strategy: |
74 | 74 | fail-fast: false |
|
77 | 77 | int_type: [int8, int32] |
78 | 78 | profile: [release, dev] |
79 | 79 | pico_size: [pico-tiny, pico-huge] |
| 80 | + defmt: [false, true] |
80 | 81 | steps: |
81 | 82 | - name: Checkout sources |
82 | 83 | uses: actions/checkout@v4 |
@@ -117,14 +118,24 @@ jobs: |
117 | 118 | cargo install cargo-binutils --locked |
118 | 119 | fi |
119 | 120 |
|
| 121 | + - name: Compose feature set |
| 122 | + id: feature_set |
| 123 | + shell: bash |
| 124 | + run: | |
| 125 | + FEATURES="${{ matrix.int_type }},${{ matrix.pico_size }}" |
| 126 | + if [ "${{ matrix.defmt }}" = "true" ]; then |
| 127 | + FEATURES="${FEATURES},defmt" |
| 128 | + fi |
| 129 | + echo "features=${FEATURES}" >> "$GITHUB_OUTPUT" |
| 130 | +
|
120 | 131 | - name: Build the demos in ${{ matrix.profile }} mode |
121 | 132 | working-directory: avr_demo |
122 | | - run: cargo build --example ${{ matrix.example }} --profile ${{ matrix.profile }} --no-default-features --features "${{ matrix.int_type }},${{ matrix.pico_size }}" |
| 133 | + run: cargo build --example ${{ matrix.example }} --profile ${{ matrix.profile }} --no-default-features --features "${{ steps.feature_set.outputs.features }}" |
123 | 134 |
|
124 | 135 | - name: Check for panics ( minimal ) |
125 | 136 | working-directory: avr_demo |
126 | | - run: cargo nm --example minimal --profile ${{ matrix.profile }} --no-default-features --features "${{ matrix.int_type }},${{ matrix.pico_size }}" | ( ! egrep "panic|unwind" ) |
| 137 | + run: cargo nm --example minimal --profile ${{ matrix.profile }} --no-default-features --features "${{ steps.feature_set.outputs.features }}" | ( ! egrep "panic|unwind" ) |
127 | 138 |
|
128 | 139 | - name: Check for panics |
129 | 140 | working-directory: avr_demo |
130 | | - run: cargo nm --example ${{ matrix.example }} --profile ${{ matrix.profile }} --no-default-features --features "${{ matrix.int_type }},${{ matrix.pico_size }}" | ( ! egrep "panic|unwind" ) |
| 141 | + run: cargo nm --example ${{ matrix.example }} --profile ${{ matrix.profile }} --no-default-features --features "${{ steps.feature_set.outputs.features }}" | ( ! egrep "panic|unwind" ) |
0 commit comments