From a308f1cd6a866a06937326ee31989f4506255949 Mon Sep 17 00:00:00 2001 From: Rodrigo Antunes Date: Wed, 7 Feb 2024 20:27:58 -0300 Subject: [PATCH] kie-issues#921: Drop KIE Tools JIT executor native Github workflow (#2148) --- .../publish_jitexecutor_native/README.md | 3 - .../publish_jitexecutor_native/package.json | 18 --- .../workflows/publish_jitexecutor_native.yml | 143 ------------------ 3 files changed, 164 deletions(-) delete mode 100644 .github/supporting-files/publish_jitexecutor_native/README.md delete mode 100644 .github/supporting-files/publish_jitexecutor_native/package.json delete mode 100644 .github/workflows/publish_jitexecutor_native.yml diff --git a/.github/supporting-files/publish_jitexecutor_native/README.md b/.github/supporting-files/publish_jitexecutor_native/README.md deleted file mode 100644 index c7f70f2a193..00000000000 --- a/.github/supporting-files/publish_jitexecutor_native/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# JIT Executor :: Native - -Native distributions of the JIT Executor for Windows, macOS and Linux. diff --git a/.github/supporting-files/publish_jitexecutor_native/package.json b/.github/supporting-files/publish_jitexecutor_native/package.json deleted file mode 100644 index 2a60dd2fda2..00000000000 --- a/.github/supporting-files/publish_jitexecutor_native/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "@kie-tools/jitexecutor-native", - "version": "0.0.0", - "description": "", - "license": "Apache-2.0", - "keywords": [], - "homepage": "https://github.com/apache/incubator-kie-tools", - "repository": { - "type": "git", - "url": "https://github.com/apache/incubator-kie-tools.git" - }, - "bugs": { - "url": "https://github.com/apache/incubator-kie-tools/issues" - }, - "files": [ - "dist" - ] -} \ No newline at end of file diff --git a/.github/workflows/publish_jitexecutor_native.yml b/.github/workflows/publish_jitexecutor_native.yml deleted file mode 100644 index 0dd09f41087..00000000000 --- a/.github/workflows/publish_jitexecutor_native.yml +++ /dev/null @@ -1,143 +0,0 @@ -name: "Publish jitexecutor-native" - -on: - workflow_dispatch: - inputs: - kogito_runtime_version: - description: "Kogito Runtime version" - required: true - npm_version: - description: "NPM Version" - required: true - pull_request: - paths: - - ".github/supporting-files/publish_jitexecutor_native" - - ".github/workflows/publish_jitexecutor_native.yml" - -jobs: - build_jitexecutor_native_binaries: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: true - matrix: - os: [ubuntu-latest, macos-latest, windows-latest] - - steps: - - name: "Set long paths for Windows" - if: runner.os == 'Windows' - run: git config --system core.longpaths true - - - name: "Checkout kie-kogito-apps" - uses: actions/checkout@v3 - with: - repository: apache/incubator-kie-kogito-apps - ref: ${{ github.event.inputs.kogito_runtime_version }} - - - name: "Set up Maven" - uses: stCarolas/setup-maven@v4.5 - with: - maven-version: 3.8.6 - - - name: "Set up JDK 11" - if: runner.os != 'Windows' - uses: actions/setup-java@v3 - with: - java-version: "11" - distribution: "zulu" - - - name: "Build macOS" - if: runner.os == 'macOS' - run: | - brew install make && \ - wget https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/graalvm-ce-java11-darwin-amd64-22.3.0.tar.gz && \ - tar -xzf graalvm-ce-java11-darwin-amd64-22.3.0.tar.gz && \ - sudo mv graalvm-ce-java11-22.3.0 /Library/Java/JavaVirtualMachines/graalvm-ce-java11-darwin-amd64-22.3.0 - export PATH=/Library/Java/JavaVirtualMachines/graalvm-ce-java11-darwin-amd64-22.3.0/Contents/Home/bin:$PATH && \ - export GRAALVM_HOME=/Library/Java/JavaVirtualMachines/graalvm-ce-java11-darwin-amd64-22.3.0/Contents/Home && \ - gu install native-image && \ - mvn clean package -B -ntp -DskipTests -f ./jitexecutor && mvn clean package -B -ntp -DskipTests -Pnative -am -f ./jitexecutor - - - name: "Build Linux" - if: runner.os == 'Linux' - run: | - sudo apt update && \ - sudo apt install -y \ - build-essential \ - libgtk-3-dev \ - libappindicator3-dev \ - gir1.2-appindicator3-0.1 && \ - mvn clean package -B -ntp -DskipTests -f ./jitexecutor && mvn clean package -B -ntp -DskipTests -Pnative -am -f ./jitexecutor - - - name: "Configure Pagefile" - if: runner.os == 'Windows' - uses: al-cheb/configure-pagefile-action@86589fd789a4de3e62ba628dda2cb10027b66d67 #v1.3 - with: - minimum-size: 16GB - maximum-size: 16GB - disk-root: "C:" - - - name: "Setup MSCV" - if: runner.os == 'Windows' - uses: ilammy/msvc-dev-cmd@v1 - - - name: "Setup MSBUILD" - if: runner.os == 'Windows' - uses: microsoft/setup-msbuild@v1 - - - name: "Setup GraalVM" - if: runner.os == 'Windows' - uses: graalvm/setup-graalvm@babc303d7e5b8f3062a94b90b49c3444cf291633 #v1 - with: - version: "22.3.0" - java-version: "11" - components: "native-image" - - - name: "Build Windows" - if: runner.os == 'Windows' - shell: cmd - run: | - mvn clean package -B -ntp -DskipTests -f ./jitexecutor && mvn clean package -B -ntp -DskipTests -Pnative -am -f ./jitexecutor - - - name: "Upload JIT Executor binary" - uses: actions/upload-artifact@v3 - with: - name: jitexecutor_${{ runner.os }} - path: ./jitexecutor/jitexecutor-runner/target/jitexecutor-runner-${{ github.event.inputs.kogito_runtime_version }}-run* - - pack_and_publish: - runs-on: ubuntu-latest - if: github.event_name != 'pull_request' - needs: [build_jitexecutor_native_binaries] - steps: - - name: "Checkout kie-tools" - uses: actions/checkout@v3 - - - name: "Download Windows binary" - uses: actions/download-artifact@v2 - with: - name: jitexecutor_Windows - path: ./.github/supporting-files/publish_jitexecutor_native/dist/win32 - - - name: "Download macOS binary" - uses: actions/download-artifact@v2 - with: - name: jitexecutor_macOS - path: ./.github/supporting-files/publish_jitexecutor_native/dist/darwin - - - name: "Download Linux binary" - uses: actions/download-artifact@v2 - with: - name: jitexecutor_Linux - path: ./.github/supporting-files/publish_jitexecutor_native/dist/linux - - - name: "Pack and publish" - working-directory: ./.github/supporting-files/publish_jitexecutor_native - env: - NPM_TOKEN: ${{ secrets.KIEGROUP_NPM_TOKEN }} - run: | - mv ./dist/linux/jitexecutor-runner-${{ github.event.inputs.kogito_runtime_version }}-runner ./dist/linux/jitexecutor - mv ./dist/darwin/jitexecutor-runner-${{ github.event.inputs.kogito_runtime_version }}-runner ./dist/darwin/jitexecutor - mv ./dist/win32/jitexecutor-runner-${{ github.event.inputs.kogito_runtime_version }}-runner.exe ./dist/win32/jitexecutor.exe - npm version ${{ github.event.inputs.npm_version }} - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc - npm publish --access public