update README #73
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
submodules: recursive | |
- uses: actions/cache@v3 | |
id: cache-toolchaine | |
with: | |
path: | | |
~/esp | |
~/.espressif/ | |
key: ${{ runner.os }}-espidf-and-compiler-v445-u2204 | |
- name: esp-idf Dependencies Setup | |
run: | | |
sudo apt-get install git wget flex bison gperf python3 python3-pip python3-setuptools cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 | |
- name: esp-idf Toolchain Setup | |
if: steps.cache-toolchaine.outputs.cache-hit != 'true' | |
run: | | |
mkdir -p ~/esp | |
cd ~/esp | |
git clone -b v4.4.5 --recursive https://github.com/espressif/esp-idf.git | |
cd ~/esp/esp-idf | |
./install.sh esp32 | |
- name: Build | |
run: | | |
. ~/esp/esp-idf/export.sh | |
pip3 install -r $IDF_PATH/requirements.txt | |
idf.py build | |
cd wasm/clockenv | |
npm install | |
npm run asbuild | |
cd ../gpsgsv | |
npm install | |
npm run asbuild | |
cd ../imu6886 | |
npm install | |
npm run asbuild |