diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index ddbd0ab..6f31490 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -24,9 +24,7 @@ jobs: steps: - uses: actions/checkout@v1 - name: Install dependencies - run: sudo apt-get install git wget curl libssl-dev libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-click python-cryptography python-future python-pyparsing python-pyelftools cmake ninja-build ccache - - name: Install Python Wheel - run: pip install wheel + run: bash ./tools/prepare-ci.sh - name: Build env: GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 371dc30..87b558c 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -14,9 +14,7 @@ jobs: steps: - uses: actions/checkout@v1 - name: Install dependencies - run: sudo apt-get install git wget curl libssl-dev libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-click python-cryptography python-future python-pyparsing python-pyelftools cmake ninja-build ccache - - name: Install Python Wheel - run: pip install wheel + run: bash ./tools/prepare-ci.sh - name: Build Arduino Libs run: bash ./build.sh - name: Upload archive diff --git a/.github/workflows/repository_dispatch.yml b/.github/workflows/repository_dispatch.yml index 5a8b072..c2233cb 100644 --- a/.github/workflows/repository_dispatch.yml +++ b/.github/workflows/repository_dispatch.yml @@ -9,9 +9,7 @@ jobs: steps: - uses: actions/checkout@v1 - name: Install dependencies - run: sudo apt-get install git wget curl libssl-dev libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-click python-cryptography python-future python-pyparsing python-pyelftools cmake ninja-build ccache - - name: Install Python Wheel - run: pip install wheel + run: bash ./tools/prepare-ci.sh - name: Handle Event env: GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }} diff --git a/tools/prepare-ci.sh b/tools/prepare-ci.sh new file mode 100755 index 0000000..e39a798 --- /dev/null +++ b/tools/prepare-ci.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +sudo apt-get install -y git wget curl libssl-dev libncurses-dev flex bison gperf python3 cmake ninja-build ccache +curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py && \ +pip3 install setuptools pyserial click future wheel cryptography pyparsing pyelftools