Skip to content

Commit

Permalink
build: Require that debug info is stripped (apache#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Vaughan Jr authored and GitHub Enterprise committed Apr 4, 2024
1 parent c7b113a commit a353593
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions rio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ builds:
build:
template: freestyle:v4:prb
steps:
# Verify that debuginfo is being stripped
- if [ $(grep '^strip = "debuginfo"$' core/Cargo.toml | wc -l) -ne 1 ]; then echo "ERROR Debug Info must be stripped"; exit 1; fi

- cd core
- cargo fmt --all -- --check --color=never
- cargo clippy --color=never -- -D warnings
Expand Down Expand Up @@ -828,6 +831,9 @@ builds:
build:
template: freestyle:v4:publish
steps:
# Verify that debuginfo is being stripped
- if [ $(grep '^strip = "debuginfo"$' core/Cargo.toml | wc -l) -ne 1 ]; then echo "ERROR Debug Info must be stripped"; exit 1; fi

# Build Comet
- make clean core-${RIO_ARCH}
- ci stage-lib --many-many-artifacts "$LOCAL_REPO/**/*" --exclude "**/*.xml" --exclude "**/*.md5" --exclude "**/*.sha1"
Expand Down Expand Up @@ -1344,6 +1350,9 @@ builds:
# Update to release version
- ./mvnw com.apple.cie.rio:rio-maven-plugin:remove-snapshot org.codehaus.mojo:versions-maven-plugin:set

# Verify that debuginfo is being stripped
- if [ $(grep '^strip = "debuginfo"$' core/Cargo.toml | wc -l) -ne 1 ]; then echo "ERROR Debug Info must be stripped"; exit 1; fi

# Build Comet
- make clean core-${RIO_ARCH}
- ci stage-lib --many-many-artifacts "$LOCAL_REPO/**/*" --exclude "**/*.xml" --exclude "**/*.md5" --exclude "**/*.sha1"
Expand Down

0 comments on commit a353593

Please sign in to comment.