Skip to content

Commit

Permalink
build scala project
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Jun 4, 2024
1 parent d56980b commit 6bf9351
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions dev/release/verify-release-candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,32 +106,11 @@ setup_tempdir() {
}

test_source_distribution() {
# install rust toolchain in a similar fashion like test-miniconda
export RUSTUP_HOME=$PWD/test-rustup
export CARGO_HOME=$PWD/test-rustup

curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path

export PATH=$RUSTUP_HOME/bin:$PATH
source $RUSTUP_HOME/env

# build and test rust

# raises on any formatting errors
rustup component add rustfmt --toolchain stable
cargo fmt --all -- --check

cargo build
cargo test --all --features=avro

if ( find -iname 'Cargo.toml' | xargs grep SNAPSHOT ); then
echo "Cargo.toml version should not contain SNAPSHOT for releases"
exit 1
fi

set -e
pushd core
cargo publish --dry-run
RUSTFLAGS="-Ctarget-cpu=native" cargo build --release
popd
./mvnw install -Prelease -DskipTests -P"spark-3.4" -Dmaven.gitcommitid.skip=true
}

TEST_SUCCESS=no
Expand Down

0 comments on commit 6bf9351

Please sign in to comment.