This is an automated email from the ASF dual-hosted git repository.
rgoers pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-flume-rpc.git
The following commit(s) were added to refs/heads/main by this push:
new 38f756d Add github workflow
38f756d is described below
commit 38f756d3e5109dc7b731914a9bfbaf4906a19daa
Author: Ralph Goers <[email protected]>
AuthorDate: Fri May 22 07:51:39 2026 -0700
Add github workflow
---
.github/workflows/build.yml | 69 +++++++++++++++++++++++++++++++++
.github/workflows/codeql-analysis.yml | 73 +++++++++++++++++++++++++++++++++++
2 files changed, 142 insertions(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..e786b72
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,69 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache license, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the license for the specific language governing permissions and
+# limitations under the license.
+
+name: build
+
+on:
+ push:
+ branches:
+ - trunk
+ - build-dev
+ pull_request:
+
+# Remove all permissions by default. They will be added at a job level.
+permissions: {}
+
+jobs:
+ build:
+
+ runs-on: ${{ matrix.os }}
+ name: build (${{ matrix.os }})
+
+ strategy:
+ # Don't cancel the remaining OS builds when one fails
+ fail-fast: false
+ matrix:
+ os: [ ubuntu-latest, windows-latest ]
+ java-distribution: [ temurin ]
+ #
+ # There is no protobuf 2.x version for `aarch64`.
+ # Reenable the macOS build after the dependency has been upgraded.
+ #
+ #include:
+ # # There is no Temurin JDK 8 for ARM
+ # - os: macos-latest
+ # java-distribution: zulu
+
+ steps:
+
+ - name: Checkout repository
+ uses: actions/checkout@v6
+
+ # JDK 8 is needed for the build, and it is the primary bytecode target.
+ - name: Setup JDK 8
+ uses: actions/setup-java@v5
+ with:
+ distribution: ${{ matrix.java-distribution }}
+ java-version: 8
+ cache: maven
+
+ - name: Build with Maven
+ timeout-minutes: 120
+ shell: bash
+ run: |
+ ./mvnw clean verify -DredirectTestOutput=true \
+ --show-version --batch-mode --errors --no-transfer-progress \
+ -DtrimStackTrace=false \
+ -Dsurefire.rerunFailingTestsCount=2
diff --git a/.github/workflows/codeql-analysis.yml
b/.github/workflows/codeql-analysis.yml
new file mode 100644
index 0000000..5b7f168
--- /dev/null
+++ b/.github/workflows/codeql-analysis.yml
@@ -0,0 +1,73 @@
+# For most projects, this workflow file will not need changing; you simply need
+# to commit it to your repository.
+#
+# You may wish to alter this file to override the set of languages analyzed,
+# or to provide custom queries or build logic.
+#
+# ******** NOTE ********
+# We have attempted to detect the languages in your repository. Please check
+# the `language` matrix defined below to confirm you have the correct set of
+# supported CodeQL languages.
+#
+name: "CodeQL"
+
+on:
+ push:
+ branches: [ trunk ]
+ pull_request:
+ # The branches below must be a subset of the branches above
+ branches: [ trunk ]
+ schedule:
+ - cron: '15 0 * * 5'
+
+# Remove all permissions by default. They will be added at a job level.
+permissions: {}
+
+jobs:
+ analyze:
+ name: Analyze
+ runs-on: ubuntu-latest
+ permissions:
+ actions: read
+ contents: read
+ security-events: write
+
+ strategy:
+ fail-fast: false
+ matrix:
+ language: [ 'java', 'python' ]
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript',
'python', 'ruby' ]
+ # Learn more about CodeQL language support at
https://git.io/codeql-language-support
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+
+ # Initializes the CodeQL tools for scanning.
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@959cbb7472c4d4ad70cdfe6f4976053fe48ab394
# 2.1.37
+ with:
+ languages: ${{ matrix.language }}
+ # If you wish to specify custom queries, you can do so here or in a
config file.
+ # By default, queries listed here will override any specified in a
config file.
+ # Prefix the list here with "+" to use these queries and those in the
config file.
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
+
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
+ # If this step fails, then you should remove it and run the build manually
(see below)
+ - name: Autobuild
+ uses:
github/codeql-action/autobuild@959cbb7472c4d4ad70cdfe6f4976053fe48ab394 #
2.1.37
+
+ # âšī¸ Command-line programs to run using the OS shell.
+ # đ https://git.io/JvXDl
+
+ # âī¸ If the Autobuild fails above, remove it and uncomment the following
three lines
+ # and modify them (or add more) to build your code if your project
+ # uses a compiled language
+
+ #- run: |
+ # make bootstrap
+ # make release
+
+ - name: Perform CodeQL Analysis
+ uses:
github/codeql-action/analyze@959cbb7472c4d4ad70cdfe6f4976053fe48ab394 #
2.1.37