This GitHub action builds a GAP package.
The action build-pkg has to be called by the workflow of a GAP
package.
It compiles the package.
All of the following inputs are optional.
coverage:- Boolean that determines whether code coverage is turned on by adding
--coveragetoCFLAGS,CXXFLAGSandLDFLAGS. - default:
'true'
- Boolean that determines whether code coverage is turned on by adding
CONFIGFLAGS:- Additional arguments to be passed to configure.
- default:
''
build-needed-pkgs:- Build packages needed by this package. Options are: true, false, recursive.
- default:
'recursive'
build-suggested-pkgs:- Build packages suggested by this package. Options are: true, false, recursive.
- default:
'true'
build-extensions:- Build packages needed for extensions by this package. Options are: true, false, recursive.
- default:
'true'
- The inputs
build-needed-pkgs,build-suggested-pkgsandbuild-extensionswere added. Setting these totruewill also compile the relevant dependencies, and setting them torecursivewill also compile the dependencies' dependencies, etc.
- The environment variable
NO_COVERAGEwas replaced by the action inputcoverage. To disable compiling code with coverage collection enabled, previously one had to setNO_COVERAGEto any non-empty value. This can now be achieved by setting thecoverageinput tofalse.
See below for a minimal example to run this action.
name: CI
# Trigger the workflow on push or pull request
on:
push:
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: gap-actions/setup-gap@v3
- uses: gap-actions/build-pkg@v3Please submit bug reports, suggestions for improvements and patches via the issue tracker.
The action build-pkg is free software; you can redistribute
and/or modify it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License, or (at your
opinion) any later version. For details, see the file LICENSE distributed
with this action or the FSF's own site.