public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sandbox:master commit in: .github/workflows/
Date: Fri,  6 Jan 2023 07:14:52 +0000 (UTC)	[thread overview]
Message-ID: <1672988714.cb63ad4fb4b8a21b269f330f2512da0a6ce7399e.sam@gentoo> (raw)

commit:     cb63ad4fb4b8a21b269f330f2512da0a6ce7399e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan  6 06:58:34 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jan  6 07:05:14 2023 +0000
URL:        https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=cb63ad4f

CI: add Github Actions

Signed-off-by: Sam James <sam <AT> gentoo.org>

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

diff --git a/.github/workflows/build-test-ci.yml b/.github/workflows/build-test-ci.yml
new file mode 100644
index 0000000..7ad056b
--- /dev/null
+++ b/.github/workflows/build-test-ci.yml
@@ -0,0 +1,58 @@
+# 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, gh-actions]
+#    tags: [v*]
+#  pull_request:
+#    types: [created, opened, edited, push]
+
+on: [pull_request, push]
+
+jobs:
+  make:
+    strategy:
+      matrix:
+        os: [ubuntu-latest]
+        cc: [gcc, clang]
+        sanitize: [none] # [none, asan, ubsan]
+      fail-fast: false
+    runs-on: ${{ matrix.os }}
+    env:
+      CC: ${{ matrix.cc }}
+      SANITIZER: ${{ matrix.sanitize }}
+      UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1"
+    steps:
+    - name: Install dependencies
+      run: |
+        sudo apt-get update -qq
+        sudo apt-get install build-essential gcc clang automake autoconf autoconf-archive libtool pax-utils -qy
+
+        case "$SANITIZER" in
+          none)
+             ;;
+          asan)
+             echo CFLAGS="-O2 -ggdb3 -fsanitize=address" >> $GITHUB_ENV
+             echo CXXFLAGS="-O2 -ggdb3 -fsanitize=address" >> $GITHUB_ENV
+             echo LDFLAGS="-fsanitize=address" >> $GITHUB_ENV
+             ;;
+          ubsan)
+             echo CFLAGS="-O2 -ggdb3 -fsanitize=undefined" >> $GITHUB_ENV
+             echo CXXFLAGS="-O2 -ggdb3 -fsanitize=undefined" >> $GITHUB_ENV
+             echo LDFLAGS="-fsanitize=undefined" >> $GITHUB_ENV
+             ;;
+        esac
+
+    - uses: actions/checkout@v3
+      name: Checkout
+
+    - name: Build
+      run: |
+        ./autogen.sh
+        ./configure || cat config.log
+        make V=1
+        make V=1 check
+        make V=1 distcheck


             reply	other threads:[~2023-01-06  7:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-06  7:14 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-06-23 17:25 [gentoo-commits] proj/sandbox:master commit in: .github/workflows/ Mike Gilbert
2023-06-23 17:25 Mike Gilbert
2024-12-22  5:29 Mike Gilbert
2024-12-22  5:29 Mike Gilbert
2024-12-22  5:29 Mike Gilbert
2024-12-22 19:19 [gentoo-commits] proj/sandbox:stable-2.x " Mike Gilbert
2025-01-14  4:38 ` [gentoo-commits] proj/sandbox:master " Mike Gilbert
2024-12-22 19:19 [gentoo-commits] proj/sandbox:stable-2.x " Mike Gilbert
2025-01-14  4:38 ` [gentoo-commits] proj/sandbox:master " Mike Gilbert
2024-12-22 19:19 [gentoo-commits] proj/sandbox:stable-2.x " Mike Gilbert
2025-01-14  4:38 ` [gentoo-commits] proj/sandbox:master " Mike Gilbert

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=1672988714.cb63ad4fb4b8a21b269f330f2512da0a6ce7399e.sam@gentoo \
    --to=sam@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