mirror of
https://github.com/floci-io/floci.git
synced 2026-12-04 02:28:08 -05:00
Fix: Github Actions
This commit is contained in:
1 parent
d97e9f3ce9
commit
5ec7dd2894
1 file changed
+22
-8
@@ -17,7 +17,7 @@ jobs:
|
||||
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '24'
|
||||
java-version: '25'
|
||||
distribution: 'temurin'
|
||||
cache: maven
|
||||
|
||||
@@ -49,7 +49,11 @@ jobs:
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: native-amd64
|
||||
path: target/*-runner
|
||||
path: |
|
||||
target/*-runner
|
||||
target/*.properties
|
||||
target/*.so
|
||||
if-no-files-found: warn
|
||||
retention-days: 1
|
||||
|
||||
build-native-arm64:
|
||||
@@ -71,7 +75,11 @@ jobs:
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: native-arm64
|
||||
path: target/*-runner
|
||||
path: |
|
||||
target/*-runner
|
||||
target/*.properties
|
||||
target/*.so
|
||||
if-no-files-found: warn
|
||||
retention-days: 1
|
||||
|
||||
push-jvm:
|
||||
@@ -140,11 +148,11 @@ jobs:
|
||||
name: native-arm64
|
||||
path: native/arm64/
|
||||
|
||||
- name: Prepare binaries
|
||||
- name: Prepare amd64 target
|
||||
run: |
|
||||
chmod +x native/amd64/* native/arm64/*
|
||||
cp native/amd64/*-runner native-amd64
|
||||
cp native/arm64/*-runner native-arm64
|
||||
mkdir -p target
|
||||
cp native/amd64/* target/
|
||||
chmod +x target/*-runner
|
||||
|
||||
- name: Build and push amd64 native image
|
||||
uses: docker/build-push-action@v6
|
||||
@@ -156,7 +164,13 @@ jobs:
|
||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/floci:${{ steps.version.outputs.version }}-amd64
|
||||
build-args: |
|
||||
VERSION=${{ steps.version.outputs.version }}
|
||||
BINARY_FILE=native-amd64
|
||||
|
||||
- name: Prepare arm64 target
|
||||
run: |
|
||||
rm -rf target
|
||||
mkdir -p target
|
||||
cp native/arm64/* target/
|
||||
chmod +x target/*-runner
|
||||
|
||||
- name: Build and push arm64 native image
|
||||
uses: docker/build-push-action@v6
|
||||
|
||||
Reference in new issue
Block a user