Collect various fixes #266
Workflow file for this run
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: C-language CI | |
| on: | |
| push: | |
| branches: [ develop ] | |
| pull_request: | |
| branches: [ develop ] | |
| env: | |
| ICARUS: 1 | |
| CTEST_OUTPUT_ON_FAILURE: 1 | |
| LIGHTNING_VERSION: 2.2.3 | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| JIT: 1 | |
| SDL: 0 # "webp" is failing to be loaded in CI | |
| - os: macos-latest | |
| JIT: 0 # GNU Lightning is throwing Bus Error | |
| SDL: 1 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Set up Homebrew | |
| id: set-up-homebrew | |
| uses: Homebrew/actions/setup-homebrew@master | |
| - run: brew install bison expect icarus-verilog | |
| - if: runner.os == 'macOS' | |
| run: echo "$(brew --prefix)/opt/bison/bin" >> $GITHUB_PATH | |
| - if: matrix.SDL != 0 | |
| run: | | |
| brew install sdl2 sdl2_image | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: true | |
| - if: matrix.JIT != 0 | |
| run: | | |
| ./scripts/build-lightning.sh $LIGHTNING_VERSION $HOME/local | |
| echo "C_INCLUDE_PATH=$HOME/local/include" >> $GITHUB_ENV | |
| echo "LIBRARY_PATH=$HOME/local/lib" >> $GITHUB_ENV | |
| echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/local/lib" >> $GITHUB_ENV | |
| - name: make | |
| run: make -j | |
| timeout-minutes: 5 | |
| env: | |
| JIT: ${{ matrix.JIT }} | |
| SDL: ${{ matrix.SDL }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| path: build/ | |
| name: builddir-${{ matrix.os }} | |
| - name: make check | |
| run: unbuffer make check | |
| timeout-minutes: 10 | |