Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/ci-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@ jobs:
name: linux-x86_64-java8-local-staging
path: ~/linux-x86_64-java8-local-staging

- name: Copy previous build artifacts to local maven repository
run: |
cp -r ~/linux-aarch64-local-staging/deferred/* ~/.m2/repository/
cp -r ~/linux-riscv64-local-staging/deferred/* ~/.m2/repository/
cp -r ~/linux-x86_64-java8-local-staging/deferred/* ~/.m2/repository/

- name: Generate netty-all and deploy to local staging.
run: ./mvnw -Plinux-native-dependencies -pl all org.sonatype.plugins:nexus-staging-maven-plugin:deploy -DaltStagingDirectory=/root/all-local-staging -DskipRemoteStaging=true -DskipTests=true

- name: Merge staging repositories
run: |
mkdir -p ~/local-staging/deferred
Expand All @@ -135,6 +144,8 @@ jobs:
cp -r ~/linux-riscv64-local-staging/deferred/* ~/local-staging/deferred/
cat ~/linux-x86_64-java8-local-staging/deferred/.index >> ~/local-staging/deferred/.index
cp -r ~/linux-x86_64-java8-local-staging/deferred/* ~/local-staging/deferred/
cat ~/all-local-staging/deferred/.index >> ~/local-staging/deferred/.index
cp -r ~/all-local-staging/deferred/* ~/local-staging/deferred/

- uses: s4u/[email protected]
with:
Expand Down
26 changes: 26 additions & 0 deletions all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,32 @@
</dependency>
</dependencies>
</profile>
<profile>
<id>linux-native-dependencies</id>
<dependencies>
<!-- Depend on all our native jars for linux only -->
<!-- As this is executed on either macOS or Linux we directly need to specify the classifier -->
<!-- These dependencies will also be "merged" into the dependency section by the flatten plugin -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>netty-transport-native-epoll</artifactId>
<classifier>linux-x86_64</classifier>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>netty-transport-native-epoll</artifactId>
<classifier>linux-aarch_64</classifier>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>netty-transport-native-epoll</artifactId>
<classifier>linux-riscv64</classifier>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>

<!-- The linux profile will only include the native jar for epoll to the all jar.
If you want to also include the native jar for kqueue use -Puber.
Expand Down
Loading