Skip to content

Commit

Permalink
run CI in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
LuigiGiuffrida98 committed Sep 9, 2024
1 parent 9627826 commit d5d9ea8
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
check-vendor:
name: Vendor Up-to-Date
runs-on: ubuntu-latest
container:
image: ghcr.io/esl-epfl/x-heep-toolchain:latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand All @@ -23,6 +25,9 @@ jobs:
run: pip install -r python-requirements.txt
- name: Re-vendor and diff
run: |
conda init bash
source /root/.bashrc
conda activate core-v-mini-mcu
find . \
-name '*.vendor.hjson' \
| xargs -n1 util/vendor.py --verbose \
Expand All @@ -34,26 +39,31 @@ jobs:
name: Generates sv files
# This job runs on Linux (fixed ubuntu version)
runs-on: ubuntu-latest
container:
image: ghcr.io/esl-epfl/x-heep-toolchain:latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install requirements
run: |
make venv
echo "PATH=`pwd`/.venv/bin:$PATH" >> $GITHUB_ENV
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-18.04-bionic-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: Install requirements
# run: |
# make venv
# echo "PATH=`pwd`/.venv/bin:$PATH" >> $GITHUB_ENV
# 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-18.04-bionic-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 Gen
run: |
conda init bash
source /root/.bashrc
conda activate core-v-mini-mcu
make mcu-gen
util/git-diff.py --error-msg "::error ::Found differences in SystemVerilog files generated with default configuration."

0 comments on commit d5d9ea8

Please sign in to comment.