CMAKE_SOURCE_DIR => CMAKE_CURRENT_SOURCE_DIR #45
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: armv7, aarch64, riscv64 | |
on: | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
qemu: | |
name: cmake tcc - ${{ matrix.target }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- target: armhf | |
arch: armv7 | |
- target: arm64 | |
arch: aarch64 | |
- target: riscv64 | |
arch: riscv64 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: uraimo/run-on-arch-action@v2 | |
with: | |
arch: ${{ matrix.arch }} | |
distro: ubuntu_latest | |
githubToken: ${{ github.token }} | |
install: | | |
apt-get update -q -y | |
apt-get install -q -y autoconf automake libtool cmake build-essential | |
env: | | |
# Valgrind on arm will fail if the stack size is larger than 8MB. | |
# Set QEMUs stack size to 8MB since Github runners use 16MB default. | |
QEMU_STACK_SIZE: 8388608 | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Debug -D BUILD_TESTING=ON .. | |
cmake --build . | |
ctest -C Debug --output-on-failure -F |