diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b267a32..111e701 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -90,10 +90,14 @@ jobs: steps: - name: Install dependencies run: | + sudo apt update || \ sudo apt update + sudo apt install ccache mold help2man libfl-dev libsystemc-dev || \ sudo apt install ccache mold help2man libfl-dev libsystemc-dev # Some conflict of libunwind verison on 22.04, can live without it - [[ "${{ matrix.os }}" == "ubuntu-22.04" ]] || sudo apt install libgoogle-perftools-dev + [[ "${{ matrix.os }}" == "ubuntu-22.04" ]] || \ + sudo apt install libgoogle-perftools-dev || \ + sudo apt install libgoogle-perftools-dev - name: Checkout Verilator uses: actions/checkout@v6 with: @@ -147,7 +151,9 @@ jobs: run: make venv - name: Install dependencies run: | + sudo apt update || \ sudo apt update + sudo apt install ccache mold || \ sudo apt install ccache mold - name: Download Verilator installation archive uses: actions/download-artifact@v7 diff --git a/Makefile b/Makefile index 3af253f..493b5aa 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,7 @@ venv: # Create virtual environment using the host python3 from $$PATH python3 -m venv $(ROOT_DIR)/venv # Install python3 dependencies + $(ROOT_DIR)/venv/bin/pip3 install -r python-requirements.txt || \ $(ROOT_DIR)/venv/bin/pip3 install -r python-requirements.txt .PHONY: typecheck