public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sandbox:master commit in: .github/workflows/
@ 2023-01-06  7:14 Sam James
  0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2023-01-06  7:14 UTC (permalink / raw
  To: gentoo-commits

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [gentoo-commits] proj/sandbox:master commit in: .github/workflows/
@ 2023-06-23 17:25 Mike Gilbert
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Gilbert @ 2023-06-23 17:25 UTC (permalink / raw
  To: gentoo-commits

commit:     e2f8b0382aef54fd0827c61f05589b82ddfa8331
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 23 15:35:43 2023 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri Jun 23 15:47:37 2023 +0000
URL:        https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=e2f8b038

CI: clean up glibc job

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 .github/workflows/build-test-ci.yml | 32 +++-----------------------------
 1 file changed, 3 insertions(+), 29 deletions(-)

diff --git a/.github/workflows/build-test-ci.yml b/.github/workflows/build-test-ci.yml
index 4a3ef88..5c95baa 100644
--- a/.github/workflows/build-test-ci.yml
+++ b/.github/workflows/build-test-ci.yml
@@ -3,58 +3,32 @@
 
 name: Build+Test CI
 
-#on:
-#  push:
-#    branches: [master, gh-actions]
-#    tags: [v*]
-#  pull_request:
-#    types: [created, opened, edited, push]
-
 on: [pull_request, push]
 
 jobs:
   glibc:
     strategy:
       matrix:
-        os: [ubuntu-latest]
         cc: [gcc, clang]
-        sanitize: [none] # [none, asan, ubsan]
       fail-fast: false
-    runs-on: ${{ matrix.os }}
+    runs-on: ubuntu-latest
     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
+        ./configure || { cat config.log; false; }
         make V=1
-        make V=1 check
+        make V=1 check || { cat tests/testsuite.log; false; }
         make V=1 distcheck
 
   musl:


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [gentoo-commits] proj/sandbox:master commit in: .github/workflows/
@ 2023-06-23 17:25 Mike Gilbert
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Gilbert @ 2023-06-23 17:25 UTC (permalink / raw
  To: gentoo-commits

commit:     8fd0fb9f956c65dab850895102b21a7fef92b753
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 23 03:14:58 2023 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri Jun 23 15:47:37 2023 +0000
URL:        https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=8fd0fb9f

CI: add musl config

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

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

diff --git a/.github/workflows/build-test-ci.yml b/.github/workflows/build-test-ci.yml
index 7ad056b..4a3ef88 100644
--- a/.github/workflows/build-test-ci.yml
+++ b/.github/workflows/build-test-ci.yml
@@ -13,7 +13,7 @@ name: Build+Test CI
 on: [pull_request, push]
 
 jobs:
-  make:
+  glibc:
     strategy:
       matrix:
         os: [ubuntu-latest]
@@ -56,3 +56,22 @@ jobs:
         make V=1
         make V=1 check
         make V=1 distcheck
+
+  musl:
+    runs-on: ubuntu-latest
+    container:
+      image: alpine:latest
+      options: --cap-add=SYS_PTRACE
+    steps:
+      - name: Install dependencies
+        run: apk add bash coreutils build-base automake autoconf autoconf-archive libtool pax-utils gawk sed
+
+      - name: Checkout
+        uses: actions/checkout@v3
+
+      - name: Build
+        run: |
+          ./autogen.sh
+          ./configure || { cat config.log; false; }
+          make V=1
+          make V=1 check || { cat tests/testsuite.log; false; }


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-06-23 17:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-06  7:14 [gentoo-commits] proj/sandbox:master commit in: .github/workflows/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2023-06-23 17:25 Mike Gilbert
2023-06-23 17:25 Mike Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox