Skip to content

Commit

Permalink
Replace native code from ubuntu by Centos
Browse files Browse the repository at this point in the history
  • Loading branch information
Kielek committed Oct 13, 2023
1 parent 8857658 commit 0e1cbb6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Publish native library Linux build
uses: actions/upload-artifact@v3.1.3
with:
name: bin-${{ matrix.base-image }}
name: bin-${{ matrix.base-image }}-native
path: bin/tracer-home
if: (${{ job.status }} != 'cancelled')
continue-on-error: true
6 changes: 3 additions & 3 deletions .github/workflows/build-nuget-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ jobs:
name: bin-windows-2022
path: bin/ci-artifacts/bin-windows-2022

- name: Download CentOS Artifacts from build job
- name: Download ubuntu Artifacts from build job
uses: actions/download-artifact@v3.0.2
with:
name: bin-centos
path: bin/ci-artifacts/bin-centos
name: bin-ubuntu-20.04
path: bin/ci-artifacts/bin-ubuntu-20.04

- name: Download Alpine Artifacts from build job
uses: actions/download-artifact@v3.0.2
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ jobs:

- run: ./build.cmd BuildWorkflow --no-restore ${{ steps.nuget-cache.outputs.cache-hit != 'true' }}

- name: Download native CentOS Artifacts from build job
if: ${{ matrix.machine == 'ubuntu-20.04' }}
uses: actions/download-artifact@v3.0.2
with:
name: bin-centos-native
path: bin/ci-artifacts/bin-centos-native
- name: Replace Ubuntu native code by Centos artifacts
run: |
rm ./bin/tracer-home/linux-x64/OpenTelemetry.AutoInstrumentation.Native.so
cp ./bin/ci-artifacts/bin-centos-native/linux-x64/OpenTelemetry.AutoInstrumentation.Native.so ./bin/tracer-home/linux-x64/OpenTelemetry.AutoInstrumentation.Native.so
if: ${{ matrix.machine == 'ubuntu-20.04' }}
- run: brew install coreutils
if: ${{ runner.os == 'macOS' }}
- name: Create test directory
Expand Down
2 changes: 1 addition & 1 deletion build/Build.NuGet.Steps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ partial class Build
var requiredArtifacts = new string[]
{
"bin-alpine/linux-musl-x64",
"bin-centos/linux-x64",
"bin-ubuntu-20.04/linux-x64",
"bin-macos-11/osx-x64",
"bin-windows-2022/win-x64",
"bin-windows-2022/win-x86"
Expand Down

0 comments on commit 0e1cbb6

Please sign in to comment.