Skip to content

Commit c370ba7

Browse files
shanduurmowies
andauthored
Add riscv64 arch (#969)
* feat: add riscv64 arch Signed-off-by: Mateusz Urbanek <mateusz.urbanek.98@gmail.com> * chore: address review comments Signed-off-by: Mateusz Urbanek <mateusz.urbanek.98@gmail.com> * update changelog entry * docs: minor adjustments to changelog Signed-off-by: Mateusz Urbanek <mateusz.urbanek.98@gmail.com> * fix: apply suggestions Co-Authored-By: @mowies Signed-off-by: Mateusz Urbanek <mateusz.urbanek.98@gmail.com> --------- Signed-off-by: Mateusz Urbanek <mateusz.urbanek.98@gmail.com> Co-authored-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
1 parent 21cee5a commit c370ba7

22 files changed

+183
-24
lines changed

.chloggen/rv64.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: 'enhancement'
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
7+
component: platforms
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Add Tier 3 support for riscv64
11+
12+
13+
# One or more tracking issues or pull requests related to the change
14+
issues: [968, 969]
15+
16+
# (Optional) One or more lines of additional information to render under the primary note.
17+
# These lines will be padded with 2 spaces and then inserted directly into the document.
18+
# Use pipe (|) for multiline entries.
19+
subtext: |
20+
New Tier 3 platform: riscv64 architecture is now included,
21+
allowing the collector to be built and distributed for this platform.
22+
23+
# Optional: The change log or logs in which this entry should be included.
24+
# e.g. '[user]' or '[user, api]'
25+
# Include 'user' if the change is relevant to end users.
26+
# Include 'api' if there is a change to a library API.
27+
# Default: '[user]'
28+
change_logs: [user]
29+

.github/workflows/base-ci-goreleaser.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ jobs:
5555
GOARCH: ppc64le
5656
- GOOS: windows
5757
GOARCH: ppc64le
58+
- GOOS: darwin
59+
GOARCH: riscv64
60+
- GOOS: windows
61+
GOARCH: riscv64
5862
runs-on: ubuntu-24.04
5963
outputs:
6064
version: ${{ steps.prep.outputs.version }}
@@ -68,7 +72,7 @@ jobs:
6872
- name: Setup QEMU
6973
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
7074
with:
71-
platforms: arm64,ppc64le,linux/arm/v7,s390x
75+
platforms: arm64,ppc64le,linux/arm/v7,s390x,riscv64
7276

7377
- name: Setup wixl # Required to build MSI packages for Windows
7478
if: ${{ matrix.GOOS == 'windows' && ( matrix.GOARCH == '386' || matrix.GOARCH == 'amd64') }}
@@ -268,7 +272,7 @@ jobs:
268272
- name: Setup QEMU
269273
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
270274
with:
271-
platforms: arm64,ppc64le,linux/arm/v7,s390x
275+
platforms: arm64,ppc64le,linux/arm/v7,s390x,riscv64
272276

273277
- name: Download container image artifact
274278
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0

.github/workflows/base-release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242
GOARCH: ppc64le
4343
- GOOS: darwin
4444
GOARCH: arm
45+
- GOOS: darwin
46+
GOARCH: riscv64
4547
runs-on: ${{ inputs.runner_os }}
4648
permissions:
4749
packages: write
@@ -58,7 +60,7 @@ jobs:
5860
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
5961
if: runner.os != 'Windows'
6062
with:
61-
platforms: arm64,ppc64le,linux/arm/v7,s390x
63+
platforms: arm64,ppc64le,linux/arm/v7,s390x,riscv64
6264

6365
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
6466
if: runner.os != 'Windows'
@@ -188,7 +190,7 @@ jobs:
188190
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
189191
if: runner.os != 'Windows'
190192
with:
191-
platforms: arm64,ppc64le,s390x
193+
platforms: arm64,ppc64le,s390x,riscv64
192194

193195
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
194196
if: runner.os != 'Windows'

.github/workflows/ci-builder.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI - Builder
22

33
on:
4-
merge_group:
4+
merge_group:
55
push:
66
branches:
77
- main
@@ -51,7 +51,7 @@ jobs:
5151
- uses: anchore/sbom-action/download-syft@7b36ad622f042cab6f59a75c2ac24ccb256e9b45 # v0.20.4
5252
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
5353
with:
54-
platforms: amd64, arm64,ppc64le
54+
platforms: amd64,arm64,ppc64le,riscv64
5555
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
5656
- name: Setup Go
5757
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0

.github/workflows/ci-goreleaser-contrib.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI - Contrib - GoReleaser
22

33
on:
4-
merge_group:
4+
merge_group:
55
push:
66
branches:
77
- main
@@ -34,7 +34,7 @@ jobs:
3434
with:
3535
distribution: otelcol-contrib
3636
goos: '[ "linux", "windows", "darwin" ]'
37-
goarch: '[ "386", "amd64", "arm64", "ppc64le", "arm", "s390x" ]'
37+
goarch: '[ "386", "amd64", "arm", "arm64", "ppc64le", "riscv64", "s390x" ]'
3838
secrets: inherit
3939

4040
package-tests:

.github/workflows/ci-goreleaser-core.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
with:
3535
distribution: otelcol
3636
goos: '[ "linux", "windows", "darwin" ]'
37-
goarch: '[ "386", "amd64", "arm64", "ppc64le", "arm", "s390x" ]'
37+
goarch: '[ "386", "amd64", "arm", "arm64", "ppc64le", "riscv64", "s390x" ]'
3838
secrets: inherit
3939

4040
package-tests:

.github/workflows/ci-goreleaser-k8s.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI - k8s - GoReleaser
22

33
on:
4-
merge_group:
4+
merge_group:
55
push:
66
branches:
77
- main
@@ -34,5 +34,5 @@ jobs:
3434
with:
3535
distribution: otelcol-k8s
3636
goos: '[ "linux" ]'
37-
goarch: '[ "amd64", "arm64", "ppc64le", "s390x" ]'
37+
goarch: '[ "amd64", "arm64", "ppc64le", "riscv64", "s390x" ]'
3838
secrets: inherit

.github/workflows/ci-goreleaser-otlp.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI - OTLP - GoReleaser
22

33
on:
4-
merge_group:
4+
merge_group:
55
push:
66
branches:
77
- main
@@ -34,5 +34,5 @@ jobs:
3434
with:
3535
distribution: otelcol-otlp
3636
goos: '[ "linux", "windows", "darwin" ]'
37-
goarch: '[ "386", "amd64", "arm64", "ppc64le", "arm", "s390x" ]'
37+
goarch: '[ "386", "amd64", "arm", "arm64", "ppc64le", "riscv64", "s390x" ]'
3838
secrets: inherit

.github/workflows/ci-opampsupervisor.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI - OpAMP supervisor
22

33
on:
4-
merge_group:
4+
merge_group:
55
push:
66
branches:
77
- main
@@ -49,7 +49,7 @@ jobs:
4949
- uses: anchore/sbom-action/download-syft@7b36ad622f042cab6f59a75c2ac24ccb256e9b45 # v0.20.4
5050
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
5151
with:
52-
platforms: amd64, arm64,ppc64le
52+
platforms: amd64,arm64,ppc64le
5353
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
5454
- name: Setup Go
5555
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0

.github/workflows/release-builder.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
jobs:
1212
goreleaser:
1313
runs-on: ubuntu-latest
14-
14+
1515
permissions:
1616
id-token: write
1717
packages: write
@@ -71,7 +71,7 @@ jobs:
7171
- uses: anchore/sbom-action/download-syft@7b36ad622f042cab6f59a75c2ac24ccb256e9b45 # v0.20.4
7272
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
7373
with:
74-
platforms: amd64, arm64,ppc64le
74+
platforms: amd64,arm64,ppc64le,riscv64
7575
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
7676
- name: Setup Go
7777
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0

0 commit comments

Comments
 (0)