mirror of
https://github.com/YuWanTingbb/unofficial-gpt4.git
synced 2025-10-16 07:03:17 +00:00
Update maven-publish.yml
This commit is contained in:
19
.github/workflows/maven-publish.yml
vendored
19
.github/workflows/maven-publish.yml
vendored
@@ -25,24 +25,21 @@ jobs:
|
|||||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||||
restore-keys: ${{ runner.os }}-m2
|
restore-keys: ${{ runner.os }}-m2
|
||||||
|
|
||||||
- name: Install GraalVM
|
- name: Install GraalVM compatible with Java 17
|
||||||
uses: DeLaGuardo/setup-graalvm@5.0
|
uses: gluonhq/setup-graalvm-ce@v1
|
||||||
with:
|
with:
|
||||||
graalvm-version: '21.3.0' # Ensure this version is compatible with Java 17
|
graalvm-version: '21.3.0' # Make sure this version is compatible with Java 17
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
|
|
||||||
- name: Set JAVA_HOME to GraalVM
|
- name: Install native-image component
|
||||||
run: echo "JAVA_HOME=${{ env.GRAALVM_HOME }}" >> $GITHUB_ENV
|
run: gu install native-image
|
||||||
|
|
||||||
- name: Set execute permissions for mvnw
|
- name: Set execute permissions for mvnw
|
||||||
run: chmod +x ./mvnw
|
run: chmod +x ./mvnw
|
||||||
|
|
||||||
- name: Build native image with Maven
|
- name: Build native image with Maven
|
||||||
run: ./mvnw native:compile -Pnative
|
run: ./mvnw native:compile -Pnative
|
||||||
|
|
||||||
- name: Move binary to target folder
|
|
||||||
run: mv ./gpt-4-copilot-0.0.4 ./target/gpt-4-copilot-0.0.4 Replace your-binary-name with the actual name of your binary file
|
|
||||||
|
|
||||||
- name: Upload native image from target folder
|
- name: Upload native image from target folder
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
Reference in New Issue
Block a user