Skip to content

Commit

Permalink
cd to correct dir, fix java -showeversion exiting with code 1...
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsck committed Jul 7, 2022
1 parent 7c36c1e commit e68356b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,9 @@ jobs:
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Publish to Apache Maven Central
run: mvn deploy
run: |
cd src/java/iced-x86
mvn deploy
#TODO: remove this once this works
continue-on-error: true
env:
Expand Down
7 changes: 6 additions & 1 deletion build/build-java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ new_func() {
build_test() {
new_func "Build, test"

curr_dir=$(pwd)
cd "$root_dir/src/java/iced-x86"

mvn clean package

cd "$curr_dir"
}

while [ "$#" -gt 0 ]; do
Expand All @@ -41,7 +46,7 @@ echo "=================================================="
echo

echo "java version"
java -showversion
java -showversion || true
echo "maven version"
mvn --version

Expand Down

0 comments on commit e68356b

Please sign in to comment.