-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (37 loc) · 1.52 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: build
on:
push:
paths-ignore: ['**.md', '**.svg', '**.png']
pull_request:
paths-ignore: ['**.md', '**.svg', '**.png']
jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
mkdir -p tools
echo "Installing xtensa-lx106-elf"
wget -qO- https://github.com/earlephilhower/esp-quick-toolchain/releases/download/3.2.0-gcc10.3/x86_64-linux-gnu.xtensa-lx106-elf-c791b74.230224.tar.gz | tar xz -C ./tools
echo "Installing xtensa-esp32-elf"
wget -qO- https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz | tar xz -C ./tools
echo "Installing WABT"
wget -qO- https://github.com/WebAssembly/wabt/releases/download/1.0.36/wabt-1.0.36-ubuntu-20.04.tar.gz | tar xz -C ./tools
echo "Installing MicroPython"
wget -qO- https://github.com/micropython/micropython/archive/refs/heads/master.tar.gz | tar xz -C ./tools
pip3 install -U pyelftools tabulate
sudo apt update
sudo apt install build-essential gcc-multilib gcc-arm-none-eabi
- name: Run builds
run: |
export PATH=$PWD/tools/xtensa-lx106-elf/bin:$PATH
export PATH=$PWD/tools/xtensa-esp32-elf/bin:$PATH
export PATH=$PWD/tools/wabt-1.0.36/bin:$PATH
export MPY_DIR=$PWD/tools/micropython-master
python3 buildall.py