Skip to content

Commit cc1deac

Browse files
committed
Fix CI
1 parent 1ee032a commit cc1deac

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.github/workflows/cron.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v1
2626
- name: Install dependencies
27-
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
28-
- name: Install Python Wheel
29-
run: pip install wheel
27+
run: bash ./tools/prepare-ci.sh
3028
- name: Build
3129
env:
3230
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}

.github/workflows/push.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v1
1616
- name: Install dependencies
17-
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
18-
- name: Install Python Wheel
19-
run: pip install wheel
17+
run: bash ./tools/prepare-ci.sh
2018
- name: Build Arduino Libs
2119
run: bash ./build.sh
2220
- name: Upload archive

.github/workflows/repository_dispatch.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v1
1111
- name: Install dependencies
12-
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
13-
- name: Install Python Wheel
14-
run: pip install wheel
12+
run: bash ./tools/prepare-ci.sh
1513
- name: Handle Event
1614
env:
1715
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}

tools/prepare-ci.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
sudo apt-get install -y git wget curl libssl-dev libncurses-dev flex bison gperf python3 cmake ninja-build ccache
4+
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py && \
5+
pip3 install setuptools pyserial click future wheel cryptography pyparsing pyelftools

0 commit comments

Comments
 (0)