Put the github build action into a rocky8 container #8
This file contains 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: test | |
on: | |
# Every push onto the main branch and releases triggers a retest. | |
push: | |
branches: | |
- master | |
- v12-branch | |
# All pull_requests trigger a retest. | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lin: | |
runs-on: ubuntu-latest | |
container: rockylinux:8.9.20231119 | |
name: 'Rocky8' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo dnf install 'dnf-command(config-manager)' -y | |
sudo dnf config-manager --enable powertools -y | |
sudo dnf install -y autoconf flex bison gperf git | |
sudo dnf install -y gcc-c++ | |
sudo dnf install -y make | |
- name: Build, check and install | |
run: | | |
autoconf | |
./configure --prefix=$PWD/inst | |
make check -j | |
make install | |
tar zcf iverilog.tar.gz inst | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Rocky8-iverilog | |
path: iverilog.tar.gz |