@@ -78,50 +78,13 @@ jobs:
7878 # Build native executable per runner
7979 package :
8080 if : needs.maven-release.outputs.already_released != 'true'
81- needs : [ maven-release ]
82- name : ' Build with Graal on ${{ matrix.os }}'
81+ needs : [maven-release]
8382 strategy :
84- fail-fast : true
8583 matrix :
8684 os : [ ubuntu-latest, macOS-latest, macos-13 ]
87- runs-on : ${{ matrix.os }}
88- steps :
89- - name : ' Check out repository'
90- uses : actions/checkout@v4
91-
92- - uses : actions/setup-java@v4
93- with :
94- distribution : ' temurin'
95- java-version : ' 21'
96- cache : ' maven'
97-
98- - uses : graalvm/setup-graalvm@v1
99- with :
100- java-version : ' 21'
101- distribution : ' graalvm'
102- github-token : ${{ secrets.GITHUB_TOKEN }}
103- native-image-job-reports : ' true'
104-
105- - name : ' Build project'
106- run : mvn install -DskipTests
107-
108- - name : ' Build Native Image'
109- run : |
110- pushd server
111- mvn -ntp -B --file pom.xml -Pnative package -DskipTests
112- popd
113-
114- - name : ' Create distribution'
115- run : |
116- pushd server
117- mvn -ntp -B --file pom.xml -Pdist package -DskipTests
118- popd
119-
120- - name : ' Upload build artifact'
121- uses : actions/upload-artifact@v4
122- with :
123- name : power-server-${{ runner.os }}-${{ runner.arch }}
124- path : server/target/distributions/*.tar.gz
85+ uses : ./.github/workflows/native-build.yml
86+ with :
87+ platform : ${{ matrix.os }}
12588
12689 # Collect all executables and release
12790 release :
0 commit comments