Skip to content

Commit ab667d2

Browse files
niwisezelioli
andcommitted
test: update CI
* Add Cheshire integration tests. * Add PULP Gitlab CI. * Track Bender.lock file. * Deactivate 'stale' workflow. * Do not trigger RISC-V tests on push. * Report formatting issues via github annotations. * Deactivate verible check for external repos due to security concerns (`pull_request_target`) Co-authored-by: Enrico Zelioli <ezelioli@iis.ee.ethz.ch> Signed-off-by: Nils Wistoff <nwistoff@iis.ee.ethz.ch>
1 parent a06cc5c commit ab667d2

6 files changed

Lines changed: 70 additions & 697 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Run functional regression checks
66
name: ci
7-
on: [push, pull_request]
7+
on: [pull_request, workflow_dispatch]
88

99
jobs:
1010
build-riscv-tests:

.github/workflows/integration.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright 2024 PULP Platform
2+
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
# Author: Nils Wistoff <nwistoff@iis.ee.ethz.ch>
6+
7+
name: integration
8+
on: [ pull_request, workflow_dispatch ]
9+
10+
jobs:
11+
cheshire-integration:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 200
14+
# Skip on forks due to missing secrets.
15+
if: github.repository == 'pulp-platform/cva6' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
16+
steps:
17+
- name: Integrate into cheshire
18+
uses: pulp-platform/pulp-actions/integrate@v2.3.0
19+
with:
20+
ip-name: cva6
21+
org: pulp-platform
22+
repo: cheshire
23+
base-ref: 4098faa23b8686e7a53936634dfd9fee6e88ede9
24+
token: ${{ secrets.CHESHIRE_TOKEN }}
25+
lifetime: 14
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: pulp-gitlab-ci
2+
3+
on: [ push, pull_request, workflow_dispatch ]
4+
5+
jobs:
6+
pulp-gitlab-ci:
7+
runs-on: ubuntu-latest
8+
timeout-minutes: 60
9+
# Skip on forks or pull requests from forks due to missing secrets.
10+
if: github.repository == 'pulp-platform/cva6' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
11+
steps:
12+
- name: Check Gitlab CI
13+
uses: pulp-platform/pulp-actions/gitlab-ci@v2.4.5
14+
with:
15+
domain: iis-git.ee.ethz.ch
16+
repo: github-mirror/cva6
17+
token: ${{ secrets.GITLAB_TOKEN }}
18+
poll-period: 30

.github/workflows/stale.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
name: 'Close stale issues and PRs'
66
on:
7-
workflow_dispatch:
8-
schedule:
9-
- cron: '30 1 * * *'
7+
workflow_dispatch
8+
# schedule:
9+
# - cron: '30 1 * * *'
1010

1111
jobs:
1212
stale:

.github/workflows/verible.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,25 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55
name: Verible
6-
on:
7-
pull_request:
6+
on: [push, pull_request, workflow_dispatch]
87

98
jobs:
109
format:
1110
runs-on: ubuntu-latest
11+
permissions:
12+
checks: write
13+
contents: read
14+
pull-requests: write
15+
# Skip on forks due to missing secrets.
16+
if: github.repository == 'pulp-platform/cva6' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
1217
steps:
1318
- uses: actions/checkout@v7
1419
- uses: chipsalliance/verible-formatter-action@main
1520
with:
1621
github_token: ${{ secrets.GITHUB_TOKEN }}
1722
files: '$(find core -regex ".*\.\(v\|sv\)$" | grep -v "^core/include/.*_config_pkg\.sv$")'
1823
fail_on_formatting_suggestions: true
24+
reviewdog_reporter: github-check
1925
- name: CVA6Cfg's XLEN attribute usage verificatory script
2026
if: always()
2127
run: |

0 commit comments

Comments
 (0)