Start setup GitHub #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2022 ETH Zurich and University of Bologna. | |
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | |
# SPDX-License-Identifier: Apache-2.0 | |
# Authors: | |
# - Paul Scheffler <paulsc@iis.ee.ethz.ch> | |
# - Thomas Benz <tbenz@iis.ee.ethz.ch> | |
name: build | |
on: [ push, pull_request, workflow_dispatch ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
target: [rtl, doc] | |
fail-fast: false | |
runs-on: ubuntu-22.04 | |
steps: | |
- | |
name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.10 | |
cache: pip | |
- | |
name: Install Python requirements | |
run: pip install -r requirements.txt | |
- | |
name: Install RISC-V GCC toolchain | |
uses: pulp-platform/pulp-actions/riscv-gcc-install@v2 | |
with: | |
distro: ubuntu-22.04 | |
nightly-date: '2023.03.14' | |
target: riscv64-elf | |
- | |
name: Install Bender | |
uses: pulp-platform/pulp-actions/bender-install@v2 | |
with: | |
version: 0.27.1 | |
- | |
name: Install Morty | |
run: | | |
curl --proto '=https' --tlsv1.2 -sLO https://github.com/pulp-platform/morty/releases/download/v0.9.0/morty-ubuntu.22.04-x86_64.tar.gz | |
tar -xvf morty-ubuntu.22.04-x86_64.tar.gz morty | |
rm -f morty-ubuntu.22.04-x86_64.tar.gz | |
- | |
name: Build target | |
run: make idma_${{ matrix.target }}_all | |
- | |
name: Check whether clean | |
run: git status && test -z "$(git status --porcelain --ignore-submodules)" |