Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont fail building manifests if we didnt build a projects firmware files #224

Closed
wants to merge 2 commits into from

Conversation

jesserockz
Copy link
Member

No description provided.

@jesserockz
Copy link
Member Author

jesserockz commented Jul 4, 2024

Setting this to draft until I figure out why it is failing.

Local testing with the following script works just fine using sh, bash and zsh to call the script.

#!/bin/sh

matrix="{\"firmware\":\"esp-web-tools\",\"device\":\"esp32\", \"version\":\"latest\"},{\"firmware\":\"esp-web-tools\",\"device\":\"esp32c3\", \"version\":\"latest\"},{\"firmware\":\"esp-web-tools\",\"device\":\"esp32s2\", \"version\":\"latest\"},{\"firmware\":\"esp-web-tools\",\"device\":\"esp32s3\", \"version\":\"latest\"},{\"firmware\":\"esp-web-tools\",\"device\":\"esp8266\", \"version\":\"latest\"},{\"firmware\":\"esphome-web\",\"device\":\"esp32\", \"version\":\"latest\"},{\"firmware\":\"esphome-web\",\"device\":\"esp32c3\", \"version\":\"latest\"},{\"firmware\":\"esphome-web\",\"device\":\"esp32s2\", \"version\":\"latest\"},{\"firmware\":\"esphome-web\",\"device\":\"esp32s3\", \"version\":\"latest\"},{\"firmware\":\"esphome-web\",\"device\":\"esp8266\", \"version\":\"latest\"},{\"firmware\":\"esphome-web\",\"device\":\"pico-w\", \"version\":\"latest\"},{\"firmware\":\"voice-assistant\",\"device\":\"esp32-s3-box-3\", \"version\":\"latest\"},{\"firmware\":\"voice-assistant\",\"device\":\"esp32-s3-box-lite\", \"version\":\"latest\"},{\"firmware\":\"voice-assistant\",\"device\":\"esp32-s3-box\", \"version\":\"latest\"},{\"firmware\":\"voice-assistant\",\"device\":\"m5stack-atom-echo\", \"version\":\"latest\"},{\"firmware\":\"voice-assistant\",\"device\":\"quinled-dig2go\", \"version\":\"latest\"},{\"firmware\":\"voice-assistant\",\"device\":\"raspiaudio-muse-luxe\", \"version\":\"latest\"},{\"firmware\":\"voice-assistant\",\"device\":\"raspiaudio-muse-proto\", \"version\":\"latest\"},{\"firmware\":\"wake-word-voice-assistant\",\"device\":\"esp32-s3-box-3\", \"version\":\"latest\"},{\"firmware\":\"wake-word-voice-assistant\",\"device\":\"esp32-s3-box-lite\", \"version\":\"latest\"},{\"firmware\":\"wake-word-voice-assistant\",\"device\":\"esp32-s3-box\", \"version\":\"latest\"},{\"firmware\":\"wake-word-voice-assistant\",\"device\":\"m5stack-atom-echo\", \"version\":\"latest\"},{\"firmware\":\"bluetooth-proxy\",\"device\":\"esp32-generic-c3\", \"version\":\"latest\"},{\"firmware\":\"bluetooth-proxy\",\"device\":\"esp32-generic\", \"version\":\"latest\"},{\"firmware\":\"bluetooth-proxy\",\"device\":\"gl-s10\", \"version\":\"latest\"},{\"firmware\":\"bluetooth-proxy\",\"device\":\"lilygo-t-eth-poe\", \"version\":\"latest\"},{\"firmware\":\"bluetooth-proxy\",\"device\":\"m5stack-atom-lite\", \"version\":\"latest\"},{\"firmware\":\"bluetooth-proxy\",\"device\":\"m5stack-atomS3\", \"version\":\"latest\"},{\"firmware\":\"bluetooth-proxy\",\"device\":\"olimex-esp32-poe-iso\", \"version\":\"latest\"},{\"firmware\":\"bluetooth-proxy\",\"device\":\"wt32-eth01\", \"version\":\"latest\"},{\"firmware\":\"media-player\",\"device\":\"m5stack-atom-echo\", \"version\":\"latest\"},{\"firmware\":\"media-player\",\"device\":\"m5stack-atom-speaker-kit\", \"version\":\"latest\"},{\"firmware\":\"media-player\",\"device\":\"onju-voice\", \"version\":\"latest\"},{\"firmware\":\"media-player\",\"device\":\"raspiaudio-muse-luxe\", \"version\":\"latest\"},{\"firmware\":\"media-player\",\"device\":\"raspiaudio-muse-proto\", \"version\":\"latest\"},"
matrix=${matrix%?}
matrix="{\"include\":[$matrix]}"

echo "$matrix"
firmwares_to_build=$(echo "$matrix" | jq -c '[.include.[].firmware] | unique')
echo "$firmwares_to_build"
$ sh test.sh
{"include":[{"firmware":"esp-web-tools","device":"esp32", "version":"latest"},{"firmware":"esp-web-tools","device":"esp32c3", "version":"latest"},{"firmware":"esp-web-tools","device":"esp32s2", "version":"latest"},{"firmware":"esp-web-tools","device":"esp32s3", "version":"latest"},{"firmware":"esp-web-tools","device":"esp8266", "version":"latest"},{"firmware":"esphome-web","device":"esp32", "version":"latest"},{"firmware":"esphome-web","device":"esp32c3", "version":"latest"},{"firmware":"esphome-web","device":"esp32s2", "version":"latest"},{"firmware":"esphome-web","device":"esp32s3", "version":"latest"},{"firmware":"esphome-web","device":"esp8266", "version":"latest"},{"firmware":"esphome-web","device":"pico-w", "version":"latest"},{"firmware":"voice-assistant","device":"esp32-s3-box-3", "version":"latest"},{"firmware":"voice-assistant","device":"esp32-s3-box-lite", "version":"latest"},{"firmware":"voice-assistant","device":"esp32-s3-box", "version":"latest"},{"firmware":"voice-assistant","device":"m5stack-atom-echo", "version":"latest"},{"firmware":"voice-assistant","device":"quinled-dig2go", "version":"latest"},{"firmware":"voice-assistant","device":"raspiaudio-muse-luxe", "version":"latest"},{"firmware":"voice-assistant","device":"raspiaudio-muse-proto", "version":"latest"},{"firmware":"wake-word-voice-assistant","device":"esp32-s3-box-3", "version":"latest"},{"firmware":"wake-word-voice-assistant","device":"esp32-s3-box-lite", "version":"latest"},{"firmware":"wake-word-voice-assistant","device":"esp32-s3-box", "version":"latest"},{"firmware":"wake-word-voice-assistant","device":"m5stack-atom-echo", "version":"latest"},{"firmware":"bluetooth-proxy","device":"esp32-generic-c3", "version":"latest"},{"firmware":"bluetooth-proxy","device":"esp32-generic", "version":"latest"},{"firmware":"bluetooth-proxy","device":"gl-s10", "version":"latest"},{"firmware":"bluetooth-proxy","device":"lilygo-t-eth-poe", "version":"latest"},{"firmware":"bluetooth-proxy","device":"m5stack-atom-lite", "version":"latest"},{"firmware":"bluetooth-proxy","device":"m5stack-atomS3", "version":"latest"},{"firmware":"bluetooth-proxy","device":"olimex-esp32-poe-iso", "version":"latest"},{"firmware":"bluetooth-proxy","device":"wt32-eth01", "version":"latest"},{"firmware":"media-player","device":"m5stack-atom-echo", "version":"latest"},{"firmware":"media-player","device":"m5stack-atom-speaker-kit", "version":"latest"},{"firmware":"media-player","device":"onju-voice", "version":"latest"},{"firmware":"media-player","device":"raspiaudio-muse-luxe", "version":"latest"},{"firmware":"media-player","device":"raspiaudio-muse-proto", "version":"latest"}]}
["bluetooth-proxy","esp-web-tools","esphome-web","media-player","voice-assistant","wake-word-voice-assistant"]

@jesserockz jesserockz marked this pull request as draft July 4, 2024 22:58
@jesserockz
Copy link
Member Author

Replaced by #253

@jesserockz jesserockz closed this Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant