librecores / ci-action

LibreCores CI Github Action
MIT License
1 stars 0 forks source link

Verible Installed? #1

Open sjkelly opened 4 years ago

sjkelly commented 4 years ago

I have a GitHub actions file like so:

# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on: [push, pull_request]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  # This workflow contains a single job called "build"
  lint:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
    # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
    - name: Checkout
      uses: actions/checkout@v1
    # Runs a single command using the runners shell
    - name: Lint Verilog source files with Verible
      uses: librecores/ci-action@2020.6-rc1
      with:
        command: verible-verilog-lint *.v

The action appears to not have verible installed: https://github.com/google/verible Are there some examples of this action being used in other repos?

wallento commented 4 years ago

Thanks, can you point me to the logs? It is supposed to be installed in the Docker image:

$ docker run -ti librecores/ci:2020.6-rc1 verible-verilog-lint --version
v0.0-440-gb3da8ae
Commit  2020-06-09 23:38:12 -0700
Built   2020-06-10T07:24:50Z

This is still a fresh project and I need to polish it a bit more, maybe something is missing in the action..

sjkelly commented 4 years ago

Thanks for taking a look with Docker. This is the output trying Verilator in the action:

2020-08-23T22:01:27.3768640Z ##[group]Run librecores/ci-action@2020.6-rc1
2020-08-23T22:01:27.3768788Z with:
2020-08-23T22:01:27.3768917Z   command: verilator -exe -f *.v
2020-08-23T22:01:27.3769027Z ##[endgroup]
2020-08-23T22:01:27.3800113Z ##[command]/usr/bin/docker run --name cba58c669013d9444da3e4acbc6a21a17e_a7c0f5 --label 8118cb --workdir /github/workspace --rm -e INPUT_COMMAND -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/Ulticores/Ulticores":"/github/workspace" 8118cb:a58c669013d9444da3e4acbc6a21a17e  "verilator -exe -f *.v"
2020-08-23T22:01:27.7941979Z Traceback (most recent call last):
2020-08-23T22:01:27.7942238Z   File "/tmp/entrypoint.py", line 6, in <module>
2020-08-23T22:01:27.7942480Z     exit(subprocess.call(sys.argv[1]))
2020-08-23T22:01:27.7942993Z   File "/usr/lib/python3.8/subprocess.py", line 340, in call
2020-08-23T22:01:27.7943252Z     with Popen(*popenargs, **kwargs) as p:
2020-08-23T22:01:27.7943448Z   File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
2020-08-23T22:01:27.7943730Z     self._execute_child(args, executable, preexec_fn, close_fds,
2020-08-23T22:01:27.7943907Z   File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
2020-08-23T22:01:27.7944089Z     raise child_exception_type(errno_num, err_msg, err_filename)
2020-08-23T22:01:27.7944917Z FileNotFoundError: [Errno 2] No such file or directory: 'verilator -exe -f *.v'
2020-08-23T22:01:27.9735310Z Cleaning up orphan processes