Skip to content

Commit

Permalink
test llvm objcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Mar 15, 2024
1 parent 936c002 commit ab1cd42
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ jobs:
DOCKER_IMAGE: "ghcr.io/getsentry/${{ matrix.image.name }}:${{ github.event.pull_request.head.sha || github.sha }}"

steps:
- name: test
run: |
sudo apt-get update
sudo apt-get install -y llvm
llvm-objcopy
- uses: actions/checkout@v4
with:
submodules: recursive
Expand All @@ -221,6 +227,10 @@ jobs:
export PATH="/home/runner/.cargo/bin/:$PATH"
cross build --release --features "${{ matrix.image.features }}" --target "${{ matrix.platform.target }}"
llvm-objcopy --only-keep-debug target/${TARGET}/release/relay{,.debug}
llvm-objcopy --strip-debug --strip-unneeded target/${TARGET}/release/relay
llvm-objcopy --add-gnu-debuglink target/${TARGET}/release/relay{.debug,}
# - name: Archive Binary
# uses: actions/upload-artifact@v4
# with:
Expand All @@ -239,9 +249,6 @@ jobs:
set -euxo pipefail
docker login --username '${{ github.actor }}' --password '${{ secrets.GITHUB_TOKEN }}' ghcr.io
objcopy --only-keep-debug target/${TARGET}/release/relay{,.debug}
objcopy --strip-debug --strip-unneeded target/${TARGET}/release/relay
objcopy --add-gnu-debuglink target/${TARGET}/release/relay{.debug,}
make collect-source-bundle
docker buildx build \
Expand Down

0 comments on commit ab1cd42

Please sign in to comment.