Wrong syntax for triggers. CMake could not handle a "-" in a versio… #2
This file contains hidden or 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: 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" |