From 45fef4f9fdf0758fd50cbf8f0769ef8d9e8e631d Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Thu, 6 Jul 2023 13:02:06 +0200 Subject: [PATCH] add the Github Action for REUSE --- .github/workflows/reuse.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/reuse.yml diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml new file mode 100644 index 00000000000..cec8abeb9ae --- /dev/null +++ b/.github/workflows/reuse.yml @@ -0,0 +1,34 @@ +# SPDX-FileCopyrightText: 2020 Free Software Foundation Europe e.V. +# +# SPDX-License-Identifier: GPL-3.0-or-later + +name: REUSE Compliance Check + +on: [push, pull_request] + +jobs: + reuse: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: REUSE version + uses: fsfe/reuse-action@v1 + with: + args: --version + - name: REUSE lint + uses: fsfe/reuse-action@v1 + with: + args: --include-submodules lint + - name: REUSE SPDX SBOM + uses: fsfe/reuse-action@v1 + with: + args: spdx + - name: install dependencies + run: sudo apt-get install -y libboost-dev libboost-program-options-dev libmpfr-dev libeigen3-dev + - name: Create CGAL internal release + run: | + cmake -DCGAL_VERSION=9.9 -P ./Scripts/developer_scripts/cgal_create_release_with_cmake.cmake + - name: REUSE lint release tarball + uses: fsfe/reuse-action@v1 + with: + args: --root /tmp/CGAL-9.9 --include-submodules lint