Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 16 additions & 32 deletions .github/workflows/c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,40 +7,21 @@ on:
branches: [ develop ]

env:
SDL: 1
JIT: 1
ICARUS: 1
CTEST_OUTPUT_ON_FAILURE: 1
LIGHTNING_VERSION: 2.2.3

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- run: brew install bison expect icarus-verilog lcov
- if: env.SDL != 0
run: brew install sdl2 sdl2_image
- uses: actions/checkout@v3
with:
submodules: true
- run: |
./scripts/build-lightning.sh 2.1.3 $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 coverage
run: unbuffer make coverage
timeout-minutes: 10
- uses: codecov/codecov-action@v2

build:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
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
Expand All @@ -49,23 +30,26 @@ jobs:
- run: brew upgrade || true # Avoid failures due to incomplete links.
- run: brew install bison expect icarus-verilog
- if: runner.os == 'macOS'
run: echo "/usr/local/opt/bison/bin" >> $GITHUB_PATH
- if: env.SDL != 0
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: env.JIT != 0
- if: matrix.JIT != 0
run: |
./scripts/build-lightning.sh 2.1.3 $HOME/local
./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
- uses: actions/upload-artifact@v2
env:
JIT: ${{ matrix.JIT }}
SDL: ${{ matrix.SDL }}
- uses: actions/upload-artifact@v4
with:
path: build/
name: builddir-${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions hw/verilog/sim/simtop.v
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module Top();
$write("\n");
end
end
$finish;
$finish(0);
end
endtask

Expand All @@ -49,7 +49,7 @@ module Top();
$tenyr_load(filename, failure); // replace with $readmemh ?
if (failure) begin
$display("Could not load file %0s", filename);
$stop;
$stop(0);
end
end
if ($value$plusargs("PERIODS=%d", temp))
Expand Down
Loading