2024-03-03 18:10:50 -06:00
|
|
|
name: Build environment setup
|
|
|
|
description: Configure build env for Yosys builds
|
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
|
|
|
- name: Install Linux Dependencies
|
|
|
|
if: runner.os == 'Linux'
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2024-04-24 17:42:50 -05:00
|
|
|
sudo apt-get install gperf build-essential bison flex libreadline-dev gawk tcl-dev libffi-dev git graphviz xdot pkg-config python3 libboost-system-dev libboost-python-dev libboost-filesystem-dev zlib1g-dev
|
2024-03-03 18:10:50 -06:00
|
|
|
|
|
|
|
- name: Install macOS Dependencies
|
|
|
|
if: runner.os == 'macOS'
|
2024-03-03 18:13:43 -06:00
|
|
|
shell: bash
|
2024-03-03 18:10:50 -06:00
|
|
|
run: |
|
2024-10-09 07:09:10 -05:00
|
|
|
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew update
|
2024-10-18 01:38:36 -05:00
|
|
|
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install bison flex gawk libffi pkg-config bash autoconf llvm lld || true
|
2024-03-03 18:10:50 -06:00
|
|
|
|
|
|
|
- name: Linux runtime environment
|
|
|
|
if: runner.os == 'Linux'
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
echo "${{ github.workspace }}/.local/bin" >> $GITHUB_PATH
|
|
|
|
echo "procs=$(nproc)" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
- name: macOS runtime environment
|
|
|
|
if: runner.os == 'macOS'
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
echo "${{ github.workspace }}/.local/bin" >> $GITHUB_PATH
|
2024-07-24 12:50:34 -05:00
|
|
|
echo "$(brew --prefix llvm)/bin" >> $GITHUB_PATH
|
2024-03-03 18:10:50 -06:00
|
|
|
echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH
|
|
|
|
echo "$(brew --prefix flex)/bin" >> $GITHUB_PATH
|
2024-04-24 16:58:07 -05:00
|
|
|
echo "procs=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV
|