Skip to content

Commit

Permalink
test: gha
Browse files Browse the repository at this point in the history
  • Loading branch information
pshirshov committed Oct 23, 2024
1 parent 2dae0ac commit 6af41e3
Showing 1 changed file with 19 additions and 50 deletions.
69 changes: 19 additions & 50 deletions .github/workflows/baboon-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
- target: linux-amd64
os: ubuntu-latest
runs-on: [ ]
native-build-args: --verbose -J-Xmx10g
# native-build-args: --verbose -J-Xmx10g
java-version: '23'
- target: macos-aarch64-14
runs-on: [ ]
os: macos-14 # yes, this is aarch64
native-build-args: --verbose -J-Xmx13g
# native-build-args: --verbose -J-Xmx13g
java-version: '23'
# - target: macos-amd64-13
# os: macos-13 # this is amd64
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
run: sbt GraalVMNativeImage/packageBin
- uses: actions/upload-artifact@v4
with:
name: native-image-${{ matrix.os }}
name: baboon-${{ matrix.target }}
path: |
target/graalvm-native-image/**
# - name: Run test build
Expand All @@ -84,54 +84,23 @@ jobs:
with:
path: binaries
pattern: native-image-*
# merge-multiple: true
# - uses: actions/download-artifact@v4
# with:
# name: native-image-ubuntu-latest
# path: tmp/baboon-linux-x64
# - uses: actions/download-artifact@v4
# with:
# name: native-image-macos-12
# path: tmp/baboon-mac-x64
# - uses: actions/download-artifact@v4
# with:
# name: native-image-macos-14
# path: tmp/baboon-mac-arm64
# - uses: actions/download-artifact@v4
# with:
# name: native-image-windows-2022
# path: tmp/baboon-windows-x64
- name: Prepare layout
run: |
set -x
set -e
pushd .
ls -la
cd binaries/
ls -la
tree
# zip -r9 baboon-linux-x64.zip ./baboon-linux-x64/
# zip -r9 baboon-mac-x64.zip ./baboon-mac-x64/
# zip -r9 baboon-mac-arm64.zip ./baboon-mac-arm64/
# zip -r9 baboon-windows-x64.zip ./baboon-windows-x64/
# popd
#
# mkdir dist
# mv ./tmp/baboon-linux-x64/baboon dist/baboon-linux-x64
# mv ./tmp/baboon-mac-x64/baboon dist/baboon-mac-x64
# mv ./tmp/baboon-mac-arm64/baboon dist/baboon-mac-arm64
# mv ./tmp/baboon-windows-x64/baboon.exe dist/baboon-x64.exe
#
# mkdir dist-zip
# mv ./tmp/baboon-linux-x64.zip ./dist-zip/
# mv ./tmp/baboon-mac-x64.zip ./dist-zip/
# mv ./tmp/baboon-mac-arm64.zip ./dist-zip/
# mv ./tmp/baboon-windows-x64.zip ./dist-zip/
# - uses: softprops/action-gh-release@v2
# id: create-release
# if: startsWith(github.ref, 'refs/tags/')
# with:
# files: |
# dist/**
# dist-zip/**
ls -la binaries/
tree binaries/
mkdir dist
mkdir dist-zip
cd binaries
find . -name 'baboon-*' -type d -exec zip -r9 ../dist-zip/{}.zip {}/baboon \;
find . -name 'baboon-*' -type d -exec mv {}/baboon ../dist-zip/{} \;
- uses: softprops/action-gh-release@v2
id: create-release
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/**
dist-zip/**

0 comments on commit 6af41e3

Please sign in to comment.