From c0b9d6ab789b8907f930375d8efca2361b77720a Mon Sep 17 00:00:00 2001 From: Pavel Shirshov Date: Wed, 23 Oct 2024 19:02:37 +0100 Subject: [PATCH] test: gha --- .../{scala-2.yml => baboon-build.yml} | 20 ++- .github/workflows/scala.yml | 114 ------------------ 2 files changed, 7 insertions(+), 127 deletions(-) rename .github/workflows/{scala-2.yml => baboon-build.yml} (89%) delete mode 100644 .github/workflows/scala.yml diff --git a/.github/workflows/scala-2.yml b/.github/workflows/baboon-build.yml similarity index 89% rename from .github/workflows/scala-2.yml rename to .github/workflows/baboon-build.yml index c7bd709..b1c803f 100644 --- a/.github/workflows/scala-2.yml +++ b/.github/workflows/baboon-build.yml @@ -22,31 +22,25 @@ jobs: - target: linux-aarch64 os: self-hosted preconfigured: true - #executable-suffix: '' native-build-args: --verbose -J-Xmx10g - target: linux-amd64 os: ubuntu-latest - #executable-suffix: '' native-build-args: --verbose -J-Xmx10g - java-version: '17' + java-version: '23' - target: windows-amd64 os: windows-2022 - #executable-suffix: '.exe' - # e2e is disabled due to unstable docker step - #e2e: false native-build-args: --verbose -J-Xmx10g - java-version: '17' + java-version: '23' - target: macos-amd64-13 - os: macos-13 - #executable-suffix: '' + os: macos-13 # this is amd64 native-build-args: --verbose -J-Xmx13g + java-version: '23' - target: macos-aarch64-14 - os: macos-14 # yes, this is ARM - #executable-suffix: '' + os: macos-14 # yes, this is aarch64 native-build-args: --verbose -J-Xmx13g - java-version: '17' - runs-on: ${{ matrix.os }} + java-version: '23' name: ${{ matrix.target }} + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - name: Set up GraalVM (Java ${{ matrix.java-version }}) diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml deleted file mode 100644 index b6be70d..0000000 --- a/.github/workflows/scala.yml +++ /dev/null @@ -1,114 +0,0 @@ -#name: Baboon Build -# -#on: -# push: -# branches: [ "main" ] -# tags: -# - "v*.*.*" -# pull_request: -# branches: [ "main" ] -# -#permissions: -# contents: write -# -#jobs: -# build: -# strategy: -# fail-fast: false -# matrix: -# # don't forget to update prepare-release and the includes below -# os: [ ubuntu-latest, macos-12, windows-2022, macos-14 ] -# java-version: [ '17' ] -# #graalvm-version: [ '22.3.1' ] -# include: -# - os: ubuntu-latest -# executable-suffix: '' -# native-build-args: --verbose -J-Xmx10g -# - os: macos-12 -# executable-suffix: '' -# native-build-args: --verbose -J-Xmx13g -# - os: macos-14 -# executable-suffix: '' -# native-build-args: --verbose -J-Xmx13g -# - os: windows-2022 -# executable-suffix: '.exe' -# # e2e is disabled due to unstable docker step -# #e2e: false -# native-build-args: --verbose -J-Xmx10g -# runs-on: ${{ matrix.os }} -# steps: -# - uses: actions/checkout@v4 -# - name: Set up GraalVM (Java ${{ matrix.java-version }}) -# uses: graalvm/setup-graalvm@v1 -# with: -# #version: '${{ matrix.graalvm-version }}' -# java-version: '${{ matrix.java-version }}' -# distribution: 'graalvm-community' -# components: 'native-image' -# github-token: ${{ secrets.GITHUB_TOKEN }} -# cache: 'sbt' -# native-image-job-reports: true -# - if: matrix.os == 'macos-14' -# run: | -# brew install sbt -# - name: Run tests -# run: sbt test -# - name: Build NI -# run: sbt GraalVMNativeImage/packageBin -# - uses: actions/upload-artifact@v4 -# with: -# name: native-image-${{ matrix.os }} -# path: | -# target/graalvm-native-image/** -# - name: Run test build -# shell: bash -# run: bash test.sh -# prepare-release: -# runs-on: ubuntu-latest -# needs: [ build ] -# steps: -# - uses: actions/checkout@v4 -# - 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: | -# pushd . -# cd tmp/ -# 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/**