Update CI

This commit is contained in:
Thomas Roehl 2025-03-18 14:32:29 +01:00
parent da91813a81
commit 813804ae2d
2 changed files with 13 additions and 62 deletions

View File

@ -1,8 +1,10 @@
{ {
"sinks": ".github/ci-sinks.json", "sinks-file": ".github/ci-sinks.json",
"collectors" : ".github/ci-collectors.json", "collectors-file" : ".github/ci-collectors.json",
"receivers" : ".github/ci-receivers.json", "receivers-file" : ".github/ci-receivers.json",
"router" : ".github/ci-router.json", "router-file" : ".github/ci-router.json",
"interval": "5s", "main" : {
"duration": "1s" "interval": "5s",
"duration": "1s"
}
} }

View File

@ -11,10 +11,10 @@ on:
jobs: jobs:
# #
# Job build-1-21 # Job build-latest
# Build on latest Ubuntu using golang version 1.21 # Build on latest Ubuntu using latest golang version
# #
build-1-21: build-latest:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
# See: https://github.com/marketplace/actions/checkout # See: https://github.com/marketplace/actions/checkout
@ -29,58 +29,7 @@ jobs:
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '1.21' go-version: '1.21'
check-latest: true
- name: Build MetricCollector
run: make
- name: Run MetricCollector once
run: ./cc-metric-collector --once --config .github/ci-config.json
#
# Job build-1-22
# Build on latest Ubuntu using golang version 1.22
#
build-1-22:
runs-on: ubuntu-latest
steps:
# See: https://github.com/marketplace/actions/checkout
# Checkout git repository and submodules
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
# See: https://github.com/marketplace/actions/setup-go-environment
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Build MetricCollector
run: make
- name: Run MetricCollector once
run: ./cc-metric-collector --once --config .github/ci-config.json
#
# Job build-1-23
# Build on latest Ubuntu using golang version 1.23
#
build-1-23:
runs-on: ubuntu-latest
steps:
# See: https://github.com/marketplace/actions/checkout
# Checkout git repository and submodules
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
# See: https://github.com/marketplace/actions/setup-go-environment
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Build MetricCollector - name: Build MetricCollector
run: make run: make
@ -331,4 +280,4 @@ jobs:
id: dpkg-build id: dpkg-build
run: | run: |
export PATH=/usr/local/go/bin:/usr/local/go/pkg/tool/linux_amd64:$PATH export PATH=/usr/local/go/bin:/usr/local/go/pkg/tool/linux_amd64:$PATH
make DEB make DEB