mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-30 17:27:16 +00:00
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
name: Build environment setup
|
|
description: Configure build env for Yosys builds
|
|
|
|
inputs:
|
|
runs-on:
|
|
required: true
|
|
type: string
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Install Linux Dependencies
|
|
if: runner.os == 'Linux'
|
|
uses: awalsh128/cache-apt-pkgs-action@v1.6.0
|
|
with:
|
|
packages: gperf build-essential bison flex libfl-dev libreadline-dev gawk tcl-dev libffi-dev git graphviz xdot pkg-config python3 libboost-system-dev libboost-python-dev libboost-filesystem-dev zlib1g-dev libbz2-dev libgtest-dev
|
|
version: ${{ inputs.runs-on }}-buildys
|
|
|
|
- name: Install macOS Dependencies
|
|
if: runner.os == 'macOS'
|
|
shell: bash
|
|
run: |
|
|
brew bundle
|
|
|
|
- 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
|
|
echo "$(brew --prefix llvm@20)/bin" >> $GITHUB_PATH
|
|
echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH
|
|
echo "$(brew --prefix flex)/bin" >> $GITHUB_PATH
|
|
echo "procs=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV
|