mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-05 22:06:04 +00:00
action.yml: Playing with apt cache
This commit is contained in:
parent
4011d72656
commit
fc075b901c
4 changed files with 22 additions and 4 deletions
14
.github/actions/setup-build-env/action.yml
vendored
14
.github/actions/setup-build-env/action.yml
vendored
|
|
@ -1,14 +1,20 @@
|
||||||
name: Build environment setup
|
name: Build environment setup
|
||||||
description: Configure build env for Yosys builds
|
description: Configure build env for Yosys builds
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
runs-on:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- name: Install Linux Dependencies
|
- name: Install Linux Dependencies
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
shell: bash
|
uses: awalsh128/cache-apt-pkgs-action@v1.6.0
|
||||||
run: |
|
with:
|
||||||
sudo apt-get update
|
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
|
||||||
sudo apt-get install 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
|
- name: Install macOS Dependencies
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
|
|
|
||||||
8
.github/workflows/test-build.yml
vendored
8
.github/workflows/test-build.yml
vendored
|
|
@ -60,6 +60,8 @@ jobs:
|
||||||
|
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
uses: ./.github/actions/setup-build-env
|
uses: ./.github/actions/setup-build-env
|
||||||
|
with:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
@ -105,6 +107,8 @@ jobs:
|
||||||
|
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
uses: ./.github/actions/setup-build-env
|
uses: ./.github/actions/setup-build-env
|
||||||
|
with:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
- name: Get iverilog
|
- name: Get iverilog
|
||||||
id: get-iverilog
|
id: get-iverilog
|
||||||
|
|
@ -191,6 +195,8 @@ jobs:
|
||||||
|
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
uses: ./.github/actions/setup-build-env
|
uses: ./.github/actions/setup-build-env
|
||||||
|
with:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
- name: Download build artifact
|
- name: Download build artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
|
@ -229,6 +235,8 @@ jobs:
|
||||||
|
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
uses: ./.github/actions/setup-build-env
|
uses: ./.github/actions/setup-build-env
|
||||||
|
with:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
- name: Download build artifact
|
- name: Download build artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
|
|
||||||
2
.github/workflows/test-compile.yml
vendored
2
.github/workflows/test-compile.yml
vendored
|
|
@ -60,6 +60,8 @@ jobs:
|
||||||
|
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
uses: ./.github/actions/setup-build-env
|
uses: ./.github/actions/setup-build-env
|
||||||
|
with:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
- name: Setup Cpp
|
- name: Setup Cpp
|
||||||
uses: aminya/setup-cpp@v1
|
uses: aminya/setup-cpp@v1
|
||||||
|
|
|
||||||
2
.github/workflows/test-sanitizers.yml
vendored
2
.github/workflows/test-sanitizers.yml
vendored
|
|
@ -44,6 +44,8 @@ jobs:
|
||||||
|
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
uses: ./.github/actions/setup-build-env
|
uses: ./.github/actions/setup-build-env
|
||||||
|
with:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
- name: Get iverilog
|
- name: Get iverilog
|
||||||
id: get-iverilog
|
id: get-iverilog
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue