Pārlūkot izejas kodu

Set `DEFMT_LOG` in `check` workflow to ensure that all print statements
are "actually" compiled

Johannes Draaijer 2 gadi atpakaļ
vecāks
revīzija
f6f334cdc8
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      .github/workflows/test.yml

+ 5 - 0
.github/workflows/test.yml

@@ -62,6 +62,10 @@ jobs:
   check:
     runs-on: ubuntu-20.04
     continue-on-error: ${{ matrix.rust == 'nightly' }}
+    env:
+      # Set DEFMT_LOG to trace so that all net_{error, .., trace} messages
+      # are actually compiled and verified
+      DEFMT_LOG: "trace"
     strategy:
       matrix:
         # Test on stable, MSRV, and nightly.
@@ -75,6 +79,7 @@ jobs:
           # These feature sets cannot run tests, so we only check they build.
           - medium-ip medium-ethernet medium-ieee802154 proto-ipv6 proto-ipv6 proto-igmp proto-dhcpv4 socket-raw socket-udp socket-tcp socket-icmp socket-dns async
           - defmt medium-ip medium-ethernet proto-ipv6 proto-ipv6 proto-igmp proto-dhcpv4 socket-raw socket-udp socket-tcp socket-icmp socket-dns async
+          - defmt alloc medium-ip medium-ethernet proto-ipv6 proto-ipv6 proto-igmp proto-dhcpv4 socket-raw socket-udp socket-tcp socket-icmp socket-dns async
 
     steps:
       - uses: actions/checkout@v2