ci attempt to speed up cross tests

This commit is contained in:
embeddedt
2022-01-24 10:42:54 -05:00
committed by GitHub
parent c9e19272c6
commit 80408f704e

View File

@@ -55,6 +55,12 @@ jobs:
steps:
- uses: actions/checkout@v2.1.0
- name: Setup cache
uses: actions/cache@v2
with:
path: |
~/.ccache
key: lvgl_ci_cross_test_ccache_${{ matrix.arch }}
- uses: uraimo/run-on-arch-action@v2.1.1
name: Run tests
id: build
@@ -67,11 +73,20 @@ jobs:
# The shell to run commands with in the container
shell: /bin/bash
# Create cached/volume directories on host
setup: |
mkdir -p ~/.ccache
# Mount cached directories in the container for faster builds
dockerRunArgs: |
--volume "${HOME}/.ccache:/root/.ccache"
install: |
apt-get update -y
apt-get install -y gcc python3 libpng-dev ruby-full gcovr cmake
apt-get install -y build-essential
apt-get install build-essential ccache python3 libpng-dev ruby-full gcovr cmake -q -y
/usr/sbin/update-ccache-symlinks
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
run: |
env ASAN_OPTIONS=detect_leaks=0 python3 tests/main.py --report test
env ASAN_OPTIONS=detect_leaks=0 python3 tests/main.py test