diff options
author | Fabian Groffen <grobian@gentoo.org> | 2022-02-06 13:02:23 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2022-02-06 13:02:23 +0100 |
commit | 7f952b13493b2177ca2bc4bc68f9d9ba39c9d40c (patch) | |
tree | 0dfb9886b048f651fea9c490b001ddca2993fd18 /.github | |
parent | qmerge: just show which packages would be installed without --pretend (diff) | |
download | portage-utils-7f952b13493b2177ca2bc4bc68f9d9ba39c9d40c.tar.gz portage-utils-7f952b13493b2177ca2bc4bc68f9d9ba39c9d40c.tar.bz2 portage-utils-7f952b13493b2177ca2bc4bc68f9d9ba39c9d40c.zip |
.github: first attempt at build/test automation to replace Travis
The Coverity task is disabled for I don't have access to the Github
project to add the necessary secrets :(
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build-test-ci.yml | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/.github/workflows/build-test-ci.yml b/.github/workflows/build-test-ci.yml new file mode 100644 index 0000000..272eff8 --- /dev/null +++ b/.github/workflows/build-test-ci.yml @@ -0,0 +1,99 @@ +# GitHub actions workflow. +# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions + +name: Build+Test CI + +on: + push: + branches: + - master + tags: + - v* + pull_request: + types: + - opened + branches: + - master + +jobs: + make-check-ubuntu-x64: + strategy: + matrix: + os: + - ubuntu-latest + cc: + - gcc + - clang + features: + - --enable-qmanifest --enable-qtegrity + - --disable-qmanifest --enable-qtegrity + - --enable-qmanifest --disable-qtegrity + - --disable-qmanifest --disable-qtegrity + - "" + runs-on: ${{ matrix.os }} + env: + CC: ${{ matrix.cc }} + steps: + - name: install deps + run: > + sudo apt-get install -y + libgpgme11-dev gnupg2 liblz4-tool lzop zstd lzip brotli libb2-dev + - uses: actions/checkout@v2 + - name: configure variant ${{ matrix.features }} + run: > + ./configure + --disable-maintainer-mode --disable-openmp + ${{ matrix.features }} + - name: make variant ${{ matrix.features }} + run: make CFLAGS="-O3 -Wall -Werror -Wshadow -pipe" V=1 check + + make-check-macos-x64: + strategy: + matrix: + os: + - macos-latest + cc: + - clang + runs-on: ${{ matrix.os }} + env: + CC: ${{ matrix.cc }} + steps: + - name: install deps + run: brew install gpgme gnupg gnu-sed coreutils bash openssl + - uses: actions/checkout@v2 + - name: configure + run: ./configure --disable-maintainer-mode --disable-openmp + - name: make + run: make CFLAGS="-O3 -Wall -Werror -Wshadow -pipe" V=1 check + +# until we are able to set token on Github :( +# coverity: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v2 +# - name: configure +# run: > +# ./configure +# --disable-maintainer-mode --disable-openmp +# --enable-qmanifest --enable-qtegrity +# - uses: vapier/coverity-scan-action@v1 +# with: +# email: ${{ secrets.COVERITY_SCAN_EMAIL }} +# token: ${{ secrets.COVERITY_SCAN_TOKEN }} + + valgrind: + runs-on: ubuntu-latest + steps: + - name: install deps + run: > + sudo apt-get install -y + libgpgme11-dev gnupg2 liblz4-tool lzop zstd lzip brotli libb2-dev + valgrind + - uses: actions/checkout@v2 + - name: configure + run: > + ./configure + --disable-maintainer-mode --disable-openmp + --enable-qmanifest --enable-qtegrity + - name: make + run: make CFLAGS="-g -pipe" Q_RUN_WITH_VALGRIND=1 V=1 check |