mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Check API version for App Hub on build
This commit is contained in:
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@@ -59,6 +59,22 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: "Check API versions for consistency with OFW release"
|
||||
if: ${{ env.INDEXER_URL != '' && github.event_name == 'push' && ((github.ref_name == 'dev' && !contains(github.event.head_commit.message, '--nobuild')) || startsWith(github.ref, 'refs/tags/')) }}
|
||||
run: |
|
||||
set -e
|
||||
for symbols in targets/f*/api_symbols.csv; do
|
||||
ofw_api="$(curl "https://raw.githubusercontent.com/flipperdevices/flipperzero-firmware/release/${symbols}" | head -n2)"
|
||||
our_api="$(head -n2 "${symbols}")"
|
||||
if [ "$our_api" != "$ofw_api" ] ; then
|
||||
echo API versions aren\'t matching OFW. Please update!
|
||||
echo API versions are:
|
||||
echo "OFW: $(tail -n1 <<< "$ofw_api")"
|
||||
echo "Us: $(tail -n1 <<< "$our_api")"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
- name: "Build the firmware and apps"
|
||||
id: build-fw
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user