-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "ci: Use
build-docker
workflow as dependency for other workf…
…lows" This reverts commit 3ce3048.
- Loading branch information
Showing
3 changed files
with
84 additions
and
57 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,7 @@ | |
|
||
# Run all lint checks | ||
name: lint | ||
on: | ||
workflow_run: | ||
workflows: [build-docker] | ||
types: [completed] | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
|
@@ -17,6 +14,9 @@ jobs: | |
verible-lint: | ||
name: Lint Verilog sources | ||
runs-on: ubuntu-latest | ||
if: > | ||
github.event_name != 'pull_request' || | ||
github.event.pull_request.head.repo.full_name != github.repository | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: chipsalliance/verible-linter-action@main | ||
|
@@ -35,6 +35,9 @@ jobs: | |
bender-vendor-up-to-date: | ||
name: Check bender vendor up-to-date | ||
runs-on: ubuntu-latest | ||
if: > | ||
github.event_name != 'pull_request' || | ||
github.event.pull_request.head.repo.full_name != github.repository | ||
steps: | ||
- name: Check bender vendor up-to-date | ||
uses: pulp-platform/pulp-actions/[email protected] | ||
|
@@ -45,13 +48,22 @@ jobs: | |
sources-up-to-date: | ||
name: Check Sources Up-to-Date | ||
runs-on: ubuntu-22.04 | ||
container: | ||
image: ghcr.io/pulp-platform/snitch_cluster:${{ github.ref_name }} | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
if: > | ||
github.event_name != 'pull_request' || | ||
github.event.pull_request.head.repo.full_name != github.repository | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Install bender | ||
uses: pulp-platform/pulp-actions/bender-install@v2 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
cache: 'pip' | ||
- name: Install pip dependencies | ||
run: | | ||
pip install . | ||
- name: Generate opcodes | ||
run: | | ||
./util/generate-opcodes.sh | ||
|
@@ -70,6 +82,9 @@ jobs: | |
license-lint: | ||
name: Check License headers | ||
runs-on: ubuntu-latest | ||
if: > | ||
github.event_name != 'pull_request' || | ||
github.event.pull_request.head.repo.full_name != github.repository | ||
steps: | ||
- name: Check License | ||
uses: pulp-platform/pulp-actions/[email protected] | ||
|
@@ -93,6 +108,9 @@ jobs: | |
yaml-lint: | ||
name: Lint YAML Sources | ||
runs-on: ubuntu-latest | ||
if: > | ||
github.event_name != 'pull_request' || | ||
github.event.pull_request.head.repo.full_name != github.repository | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: yaml-lint | ||
|
@@ -105,6 +123,9 @@ jobs: | |
######################## | ||
python-lint: | ||
runs-on: ubuntu-latest | ||
if: > | ||
github.event_name != 'pull_request' || | ||
github.event.pull_request.head.repo.full_name != github.repository | ||
name: Lint Python Sources | ||
steps: | ||
- name: Check out source repository | ||
|
@@ -126,6 +147,9 @@ jobs: | |
clangfmt: | ||
name: Lint C/C++ Sources | ||
runs-on: ubuntu-latest | ||
if: > | ||
github.event_name != 'pull_request' || | ||
github.event.pull_request.head.repo.full_name != github.repository | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: DoozyX/[email protected] | ||
|
@@ -139,6 +163,9 @@ jobs: | |
editorconfig-lint: | ||
name: Lint Editorconfig | ||
runs-on: ubuntu-latest | ||
if: > | ||
github.event_name != 'pull_request' || | ||
github.event.pull_request.head.repo.full_name != github.repository | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: editorconfig-checker/action-editorconfig-checker@main | ||
|