Skip to content

Commit df2e892

Browse files
committed
Attempt to fix native builds
1 parent 8b36b64 commit df2e892

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
-w /code \
7878
--entrypoint="" \
7979
netty-centos6 \
80-
bash -ic "./mvnw -B clean install -DskipTests=true ; ./mvnw -B deploy -DaltDeploymentRepository=local-staging::default::file:///root/local-staging -DskipTests=true ; ls -Fla /root/local-staging"
80+
bash -ic "./mvnw -B clean install -DskipTests=true ; ./mvnw -B deploy -DaltDeploymentRepository=local-staging::default::file:///root/local-staging -DskipTests=true"
8181
8282
- name: Upload local staging directory
8383
uses: actions/upload-artifact@v4
@@ -126,8 +126,7 @@ jobs:
126126
-pl resolver-dns-native-macos,transport-native-unix-common,transport-native-kqueue \
127127
deploy \
128128
-DskipTests \
129-
-DserverId=github \
130-
-DaltDeploymentRepository="artifactory::default::https://maven.pkg.github.com/riptano/netty"
129+
-DaltDeploymentRepository=local-staging::default::file:///root/local-staging"
131130
132131
- name: Upload local staging directory
133132
uses: actions/upload-artifact@v4
@@ -172,12 +171,10 @@ jobs:
172171

173172
- name: Build and stage native libraries
174173
run: |
175-
./mvnw -B -ntp clean package org.sonatype.plugins:nexus-staging-maven-plugin:deploy \
174+
./mvnw -B -Pmac-m1-cross-compile deploy \
176175
-pl resolver-dns-native-macos,transport-native-unix-common,transport-native-kqueue \
177-
-DserverId=github \
178-
-DaltStagingDirectory=$HOME/local-staging \
179-
-DskipRemoteStaging=true \
180-
-DskipTests=true
176+
-DskipTests \
177+
-DaltDeploymentRepository=local-staging::default::file:///root/local-staging
181178
182179
- name: Upload local staging directory
183180
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)