public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage-utils:master commit in: .github/workflows/
Date: Sun,  6 Feb 2022 12:03:29 +0000 (UTC)	[thread overview]
Message-ID: <1644148943.7f952b13493b2177ca2bc4bc68f9d9ba39c9d40c.grobian@gentoo> (raw)

commit:     7f952b13493b2177ca2bc4bc68f9d9ba39c9d40c
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  6 12:02:23 2022 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Feb  6 12:02:23 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=7f952b13

.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 <AT> gentoo.org>

 .github/workflows/build-test-ci.yml | 99 +++++++++++++++++++++++++++++++++++++
 1 file changed, 99 insertions(+)

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


             reply	other threads:[~2022-02-06 12:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-06 12:03 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-02-06 12:22 [gentoo-commits] proj/portage-utils:master commit in: .github/workflows/ Fabian Groffen
2022-02-06 12:24 Fabian Groffen
2022-02-06 12:27 Fabian Groffen
2022-02-06 13:27 Fabian Groffen
2022-02-06 13:28 Fabian Groffen
2022-02-06 14:31 Fabian Groffen
2022-02-06 15:21 Fabian Groffen
2022-02-06 15:32 Fabian Groffen
2022-02-06 15:38 Fabian Groffen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1644148943.7f952b13493b2177ca2bc4bc68f9d9ba39c9d40c.grobian@gentoo \
    --to=grobian@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox