-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# @file ci-tests.yml | ||
--- | ||
name: klp-build tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
distribution-check: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: opensuse/tumbleweed:latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Install dependencies | ||
run: zypper in -y awk python3-devel git make automake clang-devel clang bison autoconf-archive autoconf python3-pytest tox | ||
|
||
- name: Download klp-ccp | ||
run: git clone https://github.com/SUSE/klp-ccp | ||
|
||
- name: Install klp-ccp | ||
run: | | ||
cd klp-ccp && mkdir config | ||
aclocal | ||
autoheader | ||
automake --add-missing --foreign | ||
autoconf | ||
mkdir -p build && cd build | ||
CXX=clang++ CXXFLAGS='-O0' ../configure | ||
make && make install | ||
- name: Run klp-build tests | ||
run: make | ||
env: | ||
KLP_CCP_PYTHONPOLICY_PATH: klp-ccp/examples/policies:klp-ccp/lp-creation-python-policy | ||
|