Skip to content

Commit ca5bb1f

Browse files
dmathieupellared
andauthored
Run compatibility tests on arm64 with actuated (#4994)
* try running compatibility tests on arm64 with actuated * try nested matrix * setup vmmeter * try less cpu and less gb with actuated * add comment about vmmeter * Update .github/workflows/ci.yml Co-authored-by: Robert Pająk <[email protected]> * Update .github/workflows/ci.yml Co-authored-by: Robert Pająk <[email protected]> * Update .github/workflows/ci.yml Co-authored-by: Robert Pająk <[email protected]> * Update .github/workflows/ci.yml Co-authored-by: Robert Pająk <[email protected]> * Update .github/workflows/ci.yml * update compatibility matrix * use linux name for arm builds * add changelog entry * add link to actuated doc --------- Co-authored-by: Robert Pająk <[email protected]>
1 parent 77d9192 commit ca5bb1f

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,22 @@ jobs:
108108
strategy:
109109
matrix:
110110
go-version: ["~1.22.0", "~1.21.3"]
111-
os: [ubuntu-latest, macos-latest, windows-latest]
112-
# GitHub Actions does not support arm* architectures on default
113-
# runners. It is possible to accomplish this with a self-hosted runner
114-
# if we want to add this in the future:
115-
# https://docs.github.com/en/actions/hosting-your-own-runners/using-self-hosted-runners-in-a-workflow
116-
arch: ["386", amd64]
117-
exclude:
118-
# Not a supported Go OS/architecture.
111+
platform:
112+
- os: ubuntu-latest
113+
arch: "386"
114+
- os: ubuntu-latest
115+
arch: amd64
119116
- os: macos-latest
117+
arch: amd64
118+
- os: windows-latest
120119
arch: "386"
121-
runs-on: ${{ matrix.os }}
120+
- os: windows-latest
121+
arch: amd64
122+
# ARM64 compatibility tests are using actuated runners
123+
# See https://github.com/open-telemetry/community/blob/main/docs/using-actuated.md
124+
- os: actuated-arm64-2cpu-8gb
125+
arch: arm64
126+
runs-on: ${{ matrix.platform.os }}
122127
steps:
123128
- name: Checkout code
124129
uses: actions/checkout@v4
@@ -130,7 +135,7 @@ jobs:
130135
cache-dependency-path: "**/go.sum"
131136
- name: Run tests
132137
env:
133-
GOARCH: ${{ matrix.arch }}
138+
GOARCH: ${{ matrix.platform.arch }}
134139
run: make test-short
135140

136141
test-compatibility:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ The next release will require at least [Go 1.21].
5050
This module includes OpenTelemetry Go's implementation of the Logs Bridge API.
5151
This module is in an alpha state, it is subject to breaking changes.
5252
See our [versioning policy](./VERSIONING.md) for more info. (#4961)
53+
- ARM64 platform to the compatibility testing suite. (#4994)
5354

5455
### Fixed
5556

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ Currently, this project supports the following environments.
5353
| Ubuntu | 1.21 | amd64 |
5454
| Ubuntu | 1.22 | 386 |
5555
| Ubuntu | 1.21 | 386 |
56+
| Linux | 1.22 | arm64 |
57+
| Linux | 1.21 | arm64 |
5658
| MacOS | 1.22 | amd64 |
5759
| MacOS | 1.21 | amd64 |
5860
| Windows | 1.22 | amd64 |

0 commit comments

Comments
 (0)