Files
mavlink/scripts/update_generated_repos.sh
Julian Oes 5b29f942e3 CI improvements, add deploy to c_library_v1/2 back in (#1568)
* workflows: remove Python 3.5 which is EOL

I'll leave Python 2.7 so that we don't accidentally break it.

* scripts: separate tests into functions

This way we can run parts of it in respective CI instances.

* workflows: separate test into format, python, node

This way we don't have an explosion of versions to test.

* scripts: use consistent shebang

* workflows: use newer action

* workflows: ignore node 15 for now

* workflows: add fake deploy step

* workflows/scripts: update deploy script
2021-02-03 16:43:18 +01:00

24 lines
695 B
Bash
Executable File

#!/usr/bin/env bash
# Config for auto-building
git remote rename origin upstream
git config --global user.email "bot@pixhawk.org"
git config --global user.name "PX4BuildBot"
git config --global credential.helper "store --file=$HOME/.git-credentials"
echo "https://${GH_TOKEN}:@github.com" > "$HOME"/.git-credentials
# Build C library
GEN_START_PATH=$PWD
mkdir -p include/mavlink/v2.0
cd include/mavlink/v2.0
git clone https://github.com/mavlink/c_library_v2.git
cd ../../..
./scripts/update_c_library.sh 2
# v1.0 legacy
cd "$GEN_START_PATH"
mkdir -p include/mavlink/v1.0
cd include/mavlink/v1.0
git clone https://github.com/mavlink/c_library_v1.git
cd ../../..
./scripts/update_c_library.sh 1