|
| 1 | +name: Rocky 8 build |
| 2 | + |
| 3 | +# Trigger the workflow on push or pull request |
| 4 | +on: [ push, pull_request, workflow_dispatch ] |
| 5 | + |
| 6 | +jobs: |
| 7 | + build-ubuntu: |
| 8 | + runs-on: ubuntu-latest |
| 9 | + container: rockylinux:8.9.20231119 |
| 10 | + name: 'Rocky8' |
| 11 | + steps: |
| 12 | + - name: Install dependencies |
| 13 | + shell: bash |
| 14 | + # make smoke-test needs iverilog yet iverilog is not available on Rocky |
| 15 | + run: | |
| 16 | + dnf install 'dnf-command(config-manager)' -y |
| 17 | + dnf config-manager --enable powertools -y |
| 18 | + dnf install epel-release -y |
| 19 | + dnf install -y autoconf flex bison gperf git |
| 20 | + dnf install -y gcc-c++ |
| 21 | + dnf install -y make |
| 22 | + dnf install -y tcl{,-devel} |
| 23 | + dnf install -y ghc |
| 24 | + dnf install -y ghc-syb{,-devel} ghc-old-time{,-devel} ghc-split{,-devel} ghc-regex-compat{,-devel} ghc-text{,-devel} |
| 25 | + dnf install -y pkg-config |
| 26 | + dnf install -y zlib{,-devel} |
| 27 | + dnf install -y which |
| 28 | + dnf install -y diffutils |
| 29 | + (cd /tmp && git clone --branch v12-branch https://github.com/matx-inc/iverilog && \ |
| 30 | + cd ./iverilog/ && autoconf && ./configure && make check -j && make install) |
| 31 | + - uses: actions/checkout@v4 |
| 32 | + - name: Checkout submodules |
| 33 | + shell: bash |
| 34 | + run: | |
| 35 | + git config --global --add safe.directory $PWD |
| 36 | + git submodule update --init --recursive |
| 37 | + - name: Build |
| 38 | + # Includes an older version of the libffi by adding it to the |
| 39 | + # search path (LD_LIBRARY_PATH). This ensures the program |
| 40 | + # works on many different versions of Linux that we use. |
| 41 | + run: | |
| 42 | + export PATH=/usr/lib/ccache:$PATH |
| 43 | + make -j3 GHCJOBS=2 GHCRTSFLAGS='+RTS -M5G -A128m -RTS' install-src |
| 44 | + cp /usr/lib64/libffi.so.6 ./inst/lib/SAT/ |
| 45 | + tar czf inst.tar.gz inst |
| 46 | + - name: Smoketest |
| 47 | + run: "make check-smoke" |
| 48 | + - name: Upload artifact |
| 49 | + uses: actions/upload-artifact@v4 |
| 50 | + with: |
| 51 | + name: Rocky build |
| 52 | + path: inst.tar.gz |
0 commit comments