installing nashorn on windows #31
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
name: infinispan-cpp-client-pr | |
env: | |
ISPN_VER: "15.0.0.Dev07" | |
CLIENT_VERSION: ${{ github.event.release.tag_name }} | |
on: | |
push: | |
branches: | |
- 'main' | |
- '9.3.x' | |
pull_request: | |
branches: | |
- 'main' | |
- '9.3.x' | |
jobs: | |
run-ci-tests-stream-8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Inject slug/short variables | |
uses: rlespinasse/github-slug-action@v4 | |
- run: echo $GITHUB_BASE_REF | |
- run: mkdir build && chmod a+rwx . documentation build | |
- run: podman build -t quay.io/rigazilla/ci-build-centos-8:latest -f ci-build/centos-stream8.Dockerfile . | |
- run: podman run -v `pwd`:/home/jboss/cpp-client quay.io/rigazilla/ci-build-centos-8:latest /bin/bash -c "cd cpp-client && INFINISPAN_VERSION=15.0.0.Dev07 ISPN_CLIENT_VERSION=$GITHUB_REF_NAME-latest PLATFORM_TAG=el8 ./build.sh" | |
- if: ${{ github.event_name == 'push' }} | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "build/*.rpm,builddeb/*.deb" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
tag: ${{ env.GITHUB_REF_NAME }}-latest | |
run-ci-tests-stream-9: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Inject slug/short variables | |
uses: rlespinasse/github-slug-action@v4 | |
- run: echo $GITHUB_REF_NAME | |
- run: mkdir build && chmod a+rwx . documentation build | |
- run: podman build -t quay.io/rigazilla/ci-build-centos-9:latest -f ci-build/centos-stream9.Dockerfile . | |
- run: podman run -v `pwd`:/home/jboss/cpp-client quay.io/rigazilla/ci-build-centos-9:latest /bin/bash -c "cd cpp-client && INFINISPAN_VERSION=15.0.0.Dev07 CLIENT_VERSION=$GITHUB_REF_NAME-latest PLATFORM_TAG=el9 ./build.sh" | |
- if: ${{ github.event_name == 'push' }} | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "build/*.rpm,builddeb/*.deb" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
tag: ${{ env.GITHUB_REF_NAME }}-latest | |
run-ci-tests-win: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Inject slug/short variables | |
uses: rlespinasse/github-slug-action@v4 | |
- run: echo $GITHUB_REF_NAME | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
with: | |
msbuild-architecture: x64 | |
- name: Build Protobuf | |
shell: cmd | |
run: | | |
cd ${{ github.workspace }} | |
git clone -b v3.8.0 https://github.com/protocolbuffers/protobuf.git | |
mkdir libs | |
cd protobuf | |
mkdir build && cd build | |
cmake -G "Visual Studio 17 2022" -Dprotobuf_MSVC_STATIC_RUNTIME=OFF -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}\libs -Dprotobuf_BUILD_TESTS=OFF ${{ github.workspace }}\protobuf\cmake | |
cmake --build . --config RelWithDebInfo --target install | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" # Version range or exact version of a Python version to use, using SemVer's version range syntax | |
architecture: "x64" # optional x64 or x86. Defaults to x64 if not specified | |
- uses: ssciwr/doxygen-install@v1 | |
- shell: cmd | |
run: | | |
echo '::echo::on' | |
where swig | |
where mvn | |
where java | |
dir C:\ProgramData\Chocolatey\tools | |
set generator="Visual Studio 17 2022" | |
set SWIG_DIR=C:\ProgramData\Chocolatey\bin | |
set SWIG_EXECUTABLE=C:\ProgramData\Chocolatey\bin\swig.exe | |
set MVN_PROGRAM=C:\ProgramData\chocolatey\lib\maven\apache-maven-3.8.6\bin\mvn | |
set PROTOBUF_LIBRARY=${{ github.workspace }}\libs\lib\libprotobuf.lib | |
set PROTOBUF_PROTOC_EXECUTABLE=${{ github.workspace }}\libs\bin\protoc.exe | |
set PROTOBUF_PROTOC_LIBRARY=${{ github.workspace }}\libs\lib\libprotoc.lib | |
set PROTOBUF_INCLUDE_DIR=${{ github.workspace }}\libs\include | |
set INFINISPAN_VERSION=15.0.0.Dev07 | |
set CLIENT_VERSION=%GITHUB_REF_NAME%-latest | |
set ISPN_CLIENT_VERSION=%GITHUB_REF_NAME%-latest | |
build.bat | |
- if: ${{ github.event_name == 'push' }} | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "build_win/*.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
tag: ${{ env.GITHUB_REF_NAME }}-latest | |
prerelease: true |