Skip to content

Commit

Permalink
disable debug info in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Jan 31, 2024
1 parent 7fd9282 commit 8021b95
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,13 @@ jobs:
SVM_TARGET_PLATFORM: ${{ matrix.svm_target_platform }}
shell: bash
run: |
set -e
set -eo pipefail
target="${{ matrix.target }}"
flags=()
# TODO: default GHA runners run out of RAM when building with any debug info
export CARGO_PROFILE_release_DEBUG=0
# `keccak-asm` does not support MSVC or aarch64 Linux.
[[ "$target" != *msvc* && "$target" != "aarch64-unknown-linux-gnu" ]] && flags+=(--features=asm-keccak)
Expand All @@ -143,18 +146,16 @@ jobs:
[[ "$target" == *windows* ]] && exe=".exe"
cargo build --release --bins --target "${{ matrix.target }}" "${flags[@]}"
code=$?
cargo build --release --bins --target "$target" "${flags[@]}"
for name in (anvil cast chisel forge); do
bin=./target/${{ matrix.target }}/release/$name$exe
file $bin || true
ldd $bin || true
bins=(anvil cast chisel forge)
for name in "${bins[@]}"; do
bin=./target/$target/release/$name$exe
file "$bin" || true
ldd "$bin" || true
$bin --version
done
exit $code
- name: Archive binaries
id: artifacts
env:
Expand Down

0 comments on commit 8021b95

Please sign in to comment.