Fix GitHub Deprecation warnings #85
Workflow file for this run
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: CI | |
on: [push, pull_request] | |
jobs: | |
tests: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y git build-essential libffi-dev pkg-config python3 bison flex xxd | |
- name: Record version | |
run: | | |
export VER=$(git describe --always --tags) | |
echo ${VER} | |
###### Install tools ###### | |
- name: Build MicroPython | |
id: build_micropython | |
run: | | |
echo "Building micropython" | |
git clone --depth 1 https://github.com/micropython/micropython.git | |
pushd micropython/mpy-cross | |
make | |
popd | |
pushd micropython/ports/unix | |
git describe --always --tags | |
make submodules | |
make | |
export OUTDIR=$PWD/build-standard | |
export PATH=$PATH:$OUTDIR | |
echo "bin_dir=$OUTDIR" >> $GITHUB_OUTPUT | |
test $(micropython -c 'print("test")') = "test" | |
popd | |
- name: Build binutils-esp32ulp | |
id: build_binutils | |
run: | | |
echo "Building binutils-esp32ulp" | |
# building requires an older version of gcc | |
sudo apt-get install -y gcc-7 g++-7 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7 | |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 7 | |
git clone --depth 1 https://github.com/espressif/binutils-esp32ulp.git | |
pushd binutils-esp32ulp | |
git describe --always --tags | |
./configure --target=esp32ulp-elf --prefix=$PWD/dist --disable-doc --disable-gdb --disable-libdecnumber --disable-readline --disable-sim | |
echo "MAKEINFO = :" >> Makefile | |
make | |
make install-strip | |
export PATH=$PATH:$PWD/dist/bin | |
echo "bin_dir=$PWD/dist/bin" >> $GITHUB_OUTPUT | |
esp32ulp-elf-as --version | grep 'esp32ulp-elf' > /dev/null | |
popd | |
###### Run tests ###### | |
- name: Run unit tests | |
id: unit_tests | |
run: | | |
export PATH=$PATH:${{ steps.build_micropython.outputs.bin_dir }} | |
cd tests | |
./00_unit_tests.sh | |
- name: Run compat tests | |
id: compat_tests | |
run: | | |
export PATH=$PATH:${{ steps.build_micropython.outputs.bin_dir }} | |
export PATH=$PATH:${{ steps.build_binutils.outputs.bin_dir }} | |
cd tests | |
./01_compat_tests.sh | |
- name: Run compat tests with RTC macros | |
id: compat_rtc_tests | |
run: | | |
export PATH=$PATH:${{ steps.build_micropython.outputs.bin_dir }} | |
export PATH=$PATH:${{ steps.build_binutils.outputs.bin_dir }} | |
cd tests | |
ln -s ../binutils-esp32ulp # already cloned earlier. reuse. | |
./02_compat_rtc_tests.sh |