From f59e8ea5feabfa9474f9f2c1a3589a49cdc2ae7f Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Tue, 14 Nov 2023 08:40:45 +0200 Subject: [PATCH] Add nightly build against langchain4j main --- .../workflows/build-against-langchain4j.yml | 46 +++++++++++++++++++ .github/workflows/build.yml | 9 ---- 2 files changed, 46 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/build-against-langchain4j.yml diff --git a/.github/workflows/build-against-langchain4j.yml b/.github/workflows/build-against-langchain4j.yml new file mode 100644 index 000000000..595637b50 --- /dev/null +++ b/.github/workflows/build-against-langchain4j.yml @@ -0,0 +1,46 @@ +name: Build against Langchain4j main + +on: + schedule: + - cron: '0 2 * * *' + workflow_dispatch: + +defaults: + run: + shell: bash + +jobs: + build: + name: Build on ${{ matrix.os }} - ${{ matrix.java }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + java: [17, 21] + runs-on: ${{ matrix.os }} + steps: + - name: Prepare git + run: git config --global core.autocrlf false + if: startsWith(matrix.os, 'windows') + + - uses: actions/checkout@v3 + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: ${{ matrix.java }} + cache: 'maven' + + - name: Build langchain4j + run: | + mkdir langchain4j + cd langchain4j + git clone https://github.com/langchain4j/langchain4j.git + cd langchain4j + mvn -B clean install -DskipTests + + - name: Build with Maven + run: mvn -B clean install -Dno-format + + - name: Build with Maven (Native) + run: mvn -B install -Dnative -Dquarkus.native.container-build -Dnative.surefire.skip diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5cc346247..d42ab99ec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,15 +52,6 @@ jobs: java-version: ${{ matrix.java }} cache: 'maven' - # This task will be moved into a nightly build once we have a release. -# - name: Build langchain4j -# run: | -# mkdir langchain4j -# cd langchain4j -# git clone https://github.com/langchain4j/langchain4j.git -# cd langchain4j -# mvn -B clean install -DskipTests - - name: Build with Maven run: mvn -B clean install -Dno-format