run-drc-for-cell-gds-using-magic: Add action.yml
By adding an `action.yml` the fact that the action is using docker is
hidden and allows us to convert to a javascript action in the future if
we want.
It also makes handing over the inputs nicer and makes it easier to move
between container registries if needed.
Signed-off-by: Tim 'mithro' Ansell <tansell@google.com>
diff --git a/run-drc-for-cell-gds-using-magic/README.rst b/run-drc-for-cell-gds-using-magic/README.rst
index e0ad9d5..7c20f65 100644
--- a/run-drc-for-cell-gds-using-magic/README.rst
+++ b/run-drc-for-cell-gds-using-magic/README.rst
@@ -19,9 +19,7 @@
- uses: actions/checkout@v2
- name: Run DRC for cell GDS (using Magic)
- uses: docker://gcr.io/skywater-pdk/actions/run-drc-for-cell-gds-using-magic:latest
- with:
- args: --acceptable-errors-file /dev/null --match-directories . --known-bad ''
+ uses: google/skywater-pdk-actions/run-drc-for-cell-gds-using-magic@main
Check the Python file for more documentation on arguments.
diff --git a/run-drc-for-cell-gds-using-magic/README.src.rst b/run-drc-for-cell-gds-using-magic/README.src.rst
index 75734ef..52ee987 100644
--- a/run-drc-for-cell-gds-using-magic/README.src.rst
+++ b/run-drc-for-cell-gds-using-magic/README.src.rst
@@ -19,9 +19,7 @@
- uses: actions/checkout@v2
- name: Run DRC for cell GDS (using Magic)
- uses: docker://gcr.io/skywater-pdk/actions/run-drc-for-cell-gds-using-magic:latest
- with:
- args: --acceptable-errors-file /dev/null --match-directories . --known-bad ''
+ uses: google/skywater-pdk-actions/run-drc-for-cell-gds-using-magic@main
Check the Python file for more documentation on arguments.
diff --git a/run-drc-for-cell-gds-using-magic/action.yml b/run-drc-for-cell-gds-using-magic/action.yml
new file mode 100644
index 0000000..dd5e06e
--- /dev/null
+++ b/run-drc-for-cell-gds-using-magic/action.yml
@@ -0,0 +1,46 @@
+# Copyright 2020 SkyWater PDK Authors
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+name: run-drc-for-cell-gds-using-magic
+description: >-
+ This GitHub action runs Design Rule Checks on all GDS files inside the /cells
+ directory.
+
+inputs:
+ acceptable-errors-file:
+ description: >-
+ A file containing a list of newline-delimited acceptable DRC errors.
+ default: /dev/null
+ match-directories:
+ description: >-
+ A regex that will match subdirectories under cells to be checked.
+ default: .*
+ known-bad:
+ description: >-
+ List of known bad cells that should be ignored.
+ default:
+
+
+runs:
+ using: 'docker'
+ image: docker://gcr.io/skywater-pdk/actions/run-drc-for-cell-gds-using-magic:main
+ args:
+ - --acceptable-errors-file
+ - ${{ inputs.acceptable-errors-file }}
+ - --match-directories
+ - ${{ inputs.match-directories }}
+ - --known-bad
+ - ${{ join(inputs.known-bad, ',') }}