.github: Add REUSE lint to workflow #47
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
# SPDX-License-Identifier: GPL-2.0-only | |
# SPDX-FileCopyrightText: 2022 Casper Andersson <[email protected]> | |
name: CI | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Checkout submodules | |
run: | | |
git submodule update --init --recursive | |
- name: Install dependencies | |
run: | | |
sudo apt install libelf-dev llvm | |
- name: Configure | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=RELEASE .. | |
- name: Build | |
run: | | |
cd build | |
make -j3 | |
- name: Test | |
run: | | |
cd build | |
make test | |
lint: | |
name: REUSE Compliance Check | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: REUSE Lint | |
uses: fsfe/reuse-action@v2 |