Skip to content

Wrong syntax for triggers. CMake could not handle a "-" in a versio… #2

Wrong syntax for triggers. CMake could not handle a "-" in a versio…

Wrong syntax for triggers. CMake could not handle a "-" in a versio… #2

name: xtensa-esp32-elf
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t fcontext-builder -f docker/Dockerfile .
- name: Build and Test
run: |
docker run --rm -v ${{ github.workspace }}:/src fcontext-builder \
bash -c "mkdir -p build && cd build && \
cmake -DTARGET=xtensa-esp32-elf \
-DCMAKE_C_COMPILER=xtensa-esp32-elf-gcc \
-DCMAKE_C_FLAGS='-mlongcalls -mtext-section-literals' \
-DCMAKE_SYSTEM_NAME=Linux \
-DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/qemu-xtensa \
.. && \
make && \
CTEST_OUTPUT_ON_FAILURE=1 ctest"