|
41 | 41 |
|
42 | 42 | - name: Build (buoy)
|
43 | 43 | working-directory: sfy-buoy/sfy-artemis
|
44 |
| - run: cargo build --verbose |
| 44 | + run: cargo build --verbose --release |
45 | 45 |
|
46 | 46 | - name: Test (host-tests)
|
47 | 47 | working-directory: sfy-buoy/
|
|
51 | 51 | working-directory: sfy-buoy/target-test
|
52 | 52 | run: cargo build --verbose --tests
|
53 | 53 |
|
| 54 | + - name: Build firmware (default) |
| 55 | + run: | |
| 56 | + mkdir -p target/bins |
| 57 | + make T=r bin |
| 58 | + mv target/sfy-buoy.bin target/bins/sfy-fw-default-no-storage.bin |
| 59 | +
|
| 60 | + CARGO_FLAGS="--features storage" make T=r bin |
| 61 | + mv target/sfy-buoy.bin target/bins/sfy-fw-default-with-storage.bin |
| 62 | +
|
| 63 | + - name: Build firmware (5 min GPS) |
| 64 | + run: | |
| 65 | + mkdir -p target/bins |
| 66 | + GPS_PERIOD=300 GPS_HEARTBEAT=-5 SYNC_PERIOD=20 make T=r bin |
| 67 | + mv target/sfy-buoy.bin target/bins/sfy-fw-5min-gps-no-storage.bin |
| 68 | +
|
| 69 | + GPS_PERIOD=300 GPS_HEARTBEAT=-5 SYNC_PERIOD=20 CARGO_FLAGS="--features storage" make T=r bin |
| 70 | + mv target/sfy-buoy.bin target/bins/sfy-fw-5min-gps-with-storage.bin |
| 71 | +
|
| 72 | +
|
| 73 | + - name: Build firmware (surf) |
| 74 | + run: | |
| 75 | + mkdir -p target/bins |
| 76 | + GPS_PERIOD=300 GPS_HEARTBEAT=-5 SYNC_PERIOD=20 CARGO_FLAGS="--features surf" make T=r bin |
| 77 | + mv target/sfy-buoy.bin target/bins/sfy-fw-surf-no-storage.bin |
| 78 | +
|
| 79 | + GPS_PERIOD=300 GPS_HEARTBEAT=-5 SYNC_PERIOD=20 CARGO_FLAGS="--features surf,storage" make T=r bin |
| 80 | + mv target/sfy-buoy.bin target/bins/sfy-fw-surf-with-storage.bin |
| 81 | +
|
| 82 | + - name: Build firmware (26Hz, 10min GPS, drifter) |
| 83 | + run: | |
| 84 | + mkdir -p target/bins |
| 85 | + GPS_PERIOD=300 GPS_HEARTBEAT=-5 SYNC_PERIOD=20 CARGO_FLAGS="--features 20Hz" make T=r bin |
| 86 | + mv target/sfy-buoy.bin target/bins/sfy-fw-26Hz-drifter-no-storage.bin |
| 87 | +
|
| 88 | + GPS_PERIOD=300 GPS_HEARTBEAT=-5 SYNC_PERIOD=20 CARGO_FLAGS="--features 20Hz,storage" make T=r bin |
| 89 | + mv target/sfy-buoy.bin target/bins/sfy-fw-26Hz-drifter-with-storage.bin |
| 90 | +
|
| 91 | + - name: Build firmware (Mooring, 1h gps, 26Hz) |
| 92 | + run: | |
| 93 | + mkdir -p target/bins |
| 94 | + GPS_PERIOD=3600 GPS_HEARTBEAT=1 SYNC_PERIOD=40 CARGO_FLAGS="--features 20Hz" make T=r bin |
| 95 | + mv target/sfy-buoy.bin target/bins/sfy-fw-26Hz-mooring-no-storage.bin |
| 96 | +
|
| 97 | + GPS_PERIOD=3600 GPS_HEARTBEAT=1 SYNC_PERIOD=40 CARGO_FLAGS="--features 20Hz,storage" make T=r bin |
| 98 | + mv target/sfy-buoy.bin target/bins/sfy-fw-26Hz-mooring-with-storage.bin |
| 99 | +
|
| 100 | + - name: Build firmware (Mooring, 1h gps, 52Hz) |
| 101 | + run: | |
| 102 | + mkdir -p target/bins |
| 103 | + GPS_PERIOD=3600 GPS_HEARTBEAT=1 SYNC_PERIOD=40 make T=r bin |
| 104 | + mv target/sfy-buoy.bin target/bins/sfy-fw-52Hz-mooring-no-storage.bin |
| 105 | +
|
| 106 | + GPS_PERIOD=3600 GPS_HEARTBEAT=1 SYNC_PERIOD=40 CARGO_FLAGS="--features storage" make T=r bin |
| 107 | + mv target/sfy-buoy.bin target/bins/sfy-fw-52Hz-mooring-with-storage.bin |
| 108 | +
|
| 109 | + - uses: actions/upload-artifact@v4 |
| 110 | + with: |
| 111 | + name: firmware |
| 112 | + path: target/bins |
0 commit comments