-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close #360 - Release for multiple macOS versions including 13 (Intel)…
…, 14 (Apple Silicon) and 15 (Apple Silicon)
- Loading branch information
Showing
5 changed files
with
100 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,18 +19,16 @@ env: | |
jobs: | ||
|
||
graalvm_build: | ||
runs-on: ${{ matrix.os }} | ||
runs-on: ${{ matrix.os.value }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
run-binary: [maven2sbt-cli, maven2sbt-cli.exe] | ||
exclude: | ||
- os: ubuntu-latest | ||
run-binary: maven2sbt-cli.exe | ||
- os: macos-latest | ||
run-binary: maven2sbt-cli.exe | ||
- os: windows-latest | ||
run-binary: maven2sbt-cli | ||
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images | ||
os: | ||
- { name: "Ubuntu 22.04", value: "ubuntu-22.04", bin-suffix: "" } | ||
- { name: "macOS 13", value: "macos-13", bin-suffix: "-macos-13" } | ||
- { name: "macOS 14 Apple Silicon", value: "macos-14", bin-suffix: "-macos-14-arm64" } | ||
- { name: "macOS 15 Apple Silicon", value: "macos-15", bin-suffix: "-macos-15-arm64" } | ||
run-binary: [maven2sbt-cli] | ||
steps: | ||
|
||
- uses: actions/[email protected] | ||
|
@@ -53,6 +51,7 @@ jobs: | |
CURRENT_BRANCH_NAME: ${{ github.ref }} | ||
RUN_ID: ${{ github.run_id }} | ||
RUN_NUMBER: ${{ github.run_number }} | ||
APP_BIN_NAME: ${{ matrix.run-binary }}${{ matrix.os.bin-suffix }} | ||
run: | | ||
sbt \ | ||
-J-Xmx2048m \ | ||
|
@@ -61,21 +60,35 @@ jobs: | |
test \ | ||
nativeImage | ||
echo "rm -f modules/${{ env.PROJECT_NAME }}-*/target/scala-*/*.jar" | ||
rm -f modules/${{ env.PROJECT_NAME }}-*/target/scala-*/*.jar | ||
echo "ls -lGh modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/" | ||
ls -lGh modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/ | ||
sh -c "modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/${{ matrix.run-binary }} --version" | ||
sh -c "modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/${{ matrix.run-binary }} --help" | ||
sh -c "modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/${{ matrix.run-binary }} print --help" | ||
sh -c "modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/${{ matrix.run-binary }} file --help" | ||
# Change the bin file name when $matrix.run-binary is different from the $$APP_BIN_NAME | ||
if [ "${{ matrix.run-binary }}" != "$APP_BIN_NAME" ]; then | ||
echo "mv modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/${{ matrix.run-binary }} modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/$APP_BIN_NAME" | ||
mv modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/${{ matrix.run-binary }} modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/$APP_BIN_NAME | ||
else | ||
echo "run-binary=${{ matrix.run-binary }} and APP_BIN_NAME=$APP_BIN_NAME are the same." | ||
fi | ||
echo "ls -lGh modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/" | ||
ls -lGh modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/ | ||
sh -c "modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/$APP_BIN_NAME --version" | ||
sh -c "modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/$APP_BIN_NAME --help" | ||
sh -c "modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/$APP_BIN_NAME print --help" | ||
sh -c "modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/$APP_BIN_NAME file --help" | ||
graalvm_build_windows: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-latest] | ||
run-binary: [maven2sbt-cli] | ||
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images | ||
os: [windows-2019] | ||
run-binary: [maven2sbt-cli.exe] | ||
steps: | ||
- name: Configure git | ||
run: "git config --global core.autocrlf false" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,7 +145,12 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images | ||
os: | ||
- { name: "Ubuntu 22.04", value: "ubuntu-22.04", bin-suffix: "" } | ||
- { name: "macOS 13", value: "macos-13", bin-suffix: "-macos-13" } | ||
- { name: "macOS 14 Apple Silicon", value: "macos-14", bin-suffix: "-macos-14-arm64" } | ||
- { name: "macOS 15 Apple Silicon", value: "macos-15", bin-suffix: "-macos-15-arm64" } | ||
run-binary: [maven2sbt-cli] | ||
steps: | ||
- uses: actions/[email protected] | ||
|
@@ -172,6 +177,7 @@ jobs: | |
CURRENT_BRANCH_NAME: ${{ github.ref }} | ||
RUN_ID: ${{ github.run_id }} | ||
RUN_NUMBER: ${{ github.run_number }} | ||
APP_BIN_NAME: ${{ matrix.run-binary }}${{ matrix.os.bin-suffix }} | ||
run: | | ||
sbt \ | ||
-J-XX:MaxMetaspaceSize=1024m \ | ||
|
@@ -186,7 +192,7 @@ jobs: | |
ls -lGh modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/ | ||
sh -c "modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/${{ matrix.run-binary }} --help" | ||
mv modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/${{ matrix.run-binary }} modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/${{ matrix.run-binary }}-${{ matrix.os }} | ||
mv modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/${{ matrix.run-binary }} modules/${{ env.PROJECT_NAME }}-cli/target/${{ env.GRAALVM_BIN_DIR_NAME }}/$APP_BIN_NAME | ||
sbt \ | ||
-J-XX:MaxMetaspaceSize=1024m \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters