From fc06085852b60c909091e316e8b2d6e469a5aa1f Mon Sep 17 00:00:00 2001 From: Jonathan Swartz Date: Tue, 17 Dec 2024 16:54:38 +1300 Subject: [PATCH 1/2] Added a new action to check for correct SPDX identifiers in a new workflow for code formatting Signed-off-by: Jonathan Swartz --- .github/workflows/format.yml | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/format.yml diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 0000000000..1bc6a5fa5b --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,41 @@ +name: Code Formatting + +on: + pull_request: + branches: + - 'master' + - 'feature/**' + - 'pr/**' + paths-ignore: + - 'CHANGES' + - 'CODEOWNERS' + - 'doc/**' + - 'tsc/**' + - 'pendingchanges/**' + - '**.md' + - 'fvdb/docs/**' + - 'fvdb/env/**' + - 'fvdb/notebooks/**' + + + +# Allow subsequent pushes to the same PR or REF to cancel any previous jobs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + check-spdx-identifiers: + name: Check SPDX identifiers + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + - uses: swahtz/spdx@feature/ignore_paths + with: + licenses: |- + Apache-2.0 + ignore-paths: |- + openvdb/openvdb/math/Half.cc + openvdb/openvdb/math/Half.h + openvdb_wolfram/OpenVDBLink From 4b998715a0acc1a27ad6f3d231cf0600cba631e3 Mon Sep 17 00:00:00 2001 From: Jonathan Swartz Date: Wed, 18 Dec 2024 13:12:41 +1300 Subject: [PATCH 2/2] Add exception to SPDX check for pre-generated AX grammar source Signed-off-by: Jonathan Swartz --- .github/workflows/format.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 1bc6a5fa5b..9bd069c50e 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -39,3 +39,4 @@ jobs: openvdb/openvdb/math/Half.cc openvdb/openvdb/math/Half.h openvdb_wolfram/OpenVDBLink + openvdb_ax/openvdb_ax/grammar/generated