Skip to content

Latest (v0.0-3373-g54e37ed0) verison of Verible (#319) #546

Latest (v0.0-3373-g54e37ed0) verison of Verible (#319)

Latest (v0.0-3373-g54e37ed0) verison of Verible (#319) #546

Workflow file for this run

# Copyright 2021, 2023 OpenHW Group
# Solderpad Hardware License, Version 2.1, see LICENSE.md for details.
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
# Run all lint checks
name: lint
on: [push, pull_request]
env:
VERIBLE_VERSION: 0.0-3410-g398a8505
jobs:
##################
# Verible Fromat #
##################
format_verilog:
name: Format Verilog Sources
# This job runs on Linux (fixed ubuntu version)
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install requirements
run: pip install -r python-requirements.txt
- name: Install Verible
run: |
set -e
mkdir -p build/verible
cd build/verible
curl -Ls -o verible.tar.gz https://github.com/google/verible/releases/download/v$VERIBLE_VERSION/verible-v$VERIBLE_VERSION-Ubuntu-20.04-focal-x86_64.tar.gz
sudo mkdir -p /tools/verible && sudo chmod 777 /tools/verible
tar -C /tools/verible -xf verible.tar.gz --strip-components=1
echo "PATH=$PATH:/tools/verible/bin" >> $GITHUB_ENV
- name: Run Format
run: |
util/format-verible
util/git-diff.py --error-msg "::error ::Found differences, run util/format-verible before committing."
#####################
# Vendor Up-to-Date #
#####################
# Check that all vendored sources are up-to-date.
check-vendor:
name: Vendor Up-to-Date
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install requirements
run: pip install -r python-requirements.txt
- name: Re-vendor and diff
run: |
find . \
-name '*.vendor.hjson' \
| xargs -n1 util/vendor.py --verbose \
&& util/git-diff.py --error-msg "::error ::Found differences, please re-vendor."
##################
# Doc Up-to-Date #
##################
# Check that the documentation is up-to-date.
# This check is depreciated as CORE-V-MCU no longer autogenerates its documentation.
#doc-up-to-date:
# name: Doc Up-to-Date
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v2
# with:
# python-version: 3.9
# - name: Install requirements
# run: |
# pip install -r python-requirements.txt
# pip install -r docs/requirements.txt
# - name: Generate doc and diff
# run: |
# make -C docs doc && util/git-diff.py --error-msg "::error ::Found differences, please re-generate the documentation.
####################
# Format YML Files #
####################
# This check is no longer relavent as the connection to submdules was deliberately severed.
#yamlfmt:
# name: YAML Sources
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v3
# with:
# python-version: 3.9
# - name: Install requirements
# run: pip install -r python-requirements.txt
# # Check the proper formatting of all Bender.yml
# - name: Check YAML formatting
# run: |
# util/yml-format
# util/git-diff.py --error-msg "::error ::Found differences, run util/yml-format before committing."