-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ARM64 build #1869
Closed
Closed
Add ARM64 build #1869
Changes from 8 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
33d0852
Add ARM64 build
dszmigielski d1c7b4b
Fix indentation
dszmigielski 1115d2e
Install dotent via script
dszmigielski f2a58d6
Build in the container
dszmigielski 0205687
Fix passing variables
dszmigielski dcbc6c7
Fix passing variables
dszmigielski 6e58d00
Separate file creation
dszmigielski b85e6af
Revreate build-arm64 step with package download
dszmigielski 4c64648
Merge remote-tracking branch 'opentelemetry/main' into arm64-build
dszmigielski d43fd2c
Add dotent to path on installation
dszmigielski d99dbfa
Remove arm from pack
dszmigielski 39ab6d5
Change containers to none
dszmigielski 4e4efe8
Merge remote-tracking branch 'opentelemetry/main' into arm64-build
dszmigielski 7d9749d
Merge remote-tracking branch 'opentelemetry/main' into arm64-build
dszmigielski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -89,6 +89,39 @@ jobs: | |||||
git diff | ||||||
[[ -z "$(git status --porcelain)" ]] | ||||||
|
||||||
build-arm64: | ||||||
strategy: | ||||||
fail-fast: false | ||||||
runs-on: ubuntu-20.04 | ||||||
timeout-minutes: 60 | ||||||
steps: | ||||||
- uses: actions/checkout@v3.2.0 | ||||||
- name: Build ARM64 | ||||||
uses: uraimo/run-on-arch-action@v2.5.0 | ||||||
with: | ||||||
arch: aarch64 | ||||||
distro: bullseye | ||||||
run: | | ||||||
touch /etc/apt/sources.list.d/backports.list | ||||||
echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list.d/backports.list | ||||||
apt-get update | ||||||
apt-get upgrade | ||||||
apt-get install -y curl clang cmake make protobuf-compiler | ||||||
apt-get install -y -t stretch-backports libgrpc++-dev libgrpc++1 libgrpc6 libgrpc-dev protobuf-compiler-grpc | ||||||
curl -sSL https://dot.net/v1/dotnet-install.sh --output dotnet-install.sh | ||||||
chmod +x ./dotnet-install.sh | ||||||
./dotnet-install.sh -c 6.0 --install-dir /usr/share/dotnet --no-path | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Could try this one. Seems it doesn't know about the installed dotnet versions. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will do, cheers :) |
||||||
./dotnet-install.sh -c 7.0 --install-dir /usr/share/dotnet --no-path | ||||||
rm dotnet-install.sh | ||||||
./build.sh Workflow --containers linux | ||||||
- name: Publish ARM64 build | ||||||
uses: actions/upload-artifact@v3.1.1 | ||||||
with: | ||||||
name: bin-arm64 | ||||||
path: bin/tracer-home | ||||||
if: (${{ job.status }} != 'cancelled') | ||||||
continue-on-error: true | ||||||
|
||||||
build-container: | ||||||
strategy: | ||||||
fail-fast: false | ||||||
|
@@ -150,6 +183,12 @@ jobs: | |||||
name: bin-macos-11 | ||||||
path: nuget/bin-macos | ||||||
|
||||||
- name: Download ARM64 Artifacts from build job | ||||||
uses: actions/download-artifact@v3.0.1 | ||||||
with: | ||||||
name: bin-arm64 | ||||||
path: nuget/bin-arm64 | ||||||
|
||||||
- name: Build NuGet package | ||||||
run: nuget pack OpenTelemetry.AutoInstrumentation.nuspec -Properties NoWarn=NU5100,NU5123,NU5128 | ||||||
working-directory: nuget | ||||||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no arm machines on the list, all available machines are x64 based.
I think GH only supports arm on self hosted runners.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to work around that with uraimo/run-on-arch-action@v2.5.0, but I cannot get it working, so I assume we have to wait for gh actions to add support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see, it's using QEMU emulator. Might be easier to test that locally first.