Skip to content

Commit 0828fb6

Browse files
karllessardCraigacp
authored andcommitted
Deploy native artifacts (#649)
* Deploy native artifacts * Update build.yml
1 parent b61febb commit 0828fb6

2 files changed

Lines changed: 0 additions & 85 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
run: |
5757
gcc --version
5858
mvn -version
59-
echo "<settings><servers><server><id>central</id><username>${{ secrets.CI_DEPLOY_USERNAME }}</username><password>${{ secrets.CI_DEPLOY_PASSWORD }}</password></server></servers></settings>" > $HOME/.m2/settings.xml
6059
mvn clean install -pl '!tensorflow-framework' -B -U -e -Djavacpp.platform=${{ github.job }} -Djavacpp.platform.extension=${{ matrix.ext }}
6160
- name: Build native artifact
6261
run: mvn -f tensorflow-core/tensorflow-core-native/pom.xml package -B -e -Djavacpp.platform=${{ github.job }} -Djavacpp.platform.extension=${{ matrix.ext }}
@@ -85,7 +84,6 @@ jobs:
8584
run: |
8685
gcc --version
8786
mvn -version
88-
echo "<settings><servers><server><id>central</id><username>${{ secrets.CI_DEPLOY_USERNAME }}</username><password>${{ secrets.CI_DEPLOY_PASSWORD }}</password></server></servers></settings>" > $HOME/.m2/settings.xml
8987
mvn clean install -pl '!tensorflow-framework' -B -U -e -Djavacpp.platform=${{ github.job }} -Djavacpp.platform.extension=${{ matrix.ext }}
9088
- name: Build native artifact
9189
run: mvn -f tensorflow-core/tensorflow-core-native/pom.xml package -B -e -Djavacpp.platform=${{ github.job }} -Djavacpp.platform.extension=${{ matrix.ext }}
@@ -115,7 +113,6 @@ jobs:
115113
run: |
116114
clang --version
117115
mvn -version
118-
echo "<settings><servers><server><id>central</id><username>${{ secrets.CI_DEPLOY_USERNAME }}</username><password>${{ secrets.CI_DEPLOY_PASSWORD }}</password></server></servers></settings>" > $HOME/.m2/settings.xml
119116
mvn clean install -pl '!tensorflow-framework' -B -U -e -Djavacpp.platform=${{ github.job }} -Djavacpp.platform.extension=${{ matrix.ext }}
120117
- name: Build native artifact
121118
run: mvn -f tensorflow-core/tensorflow-core-native/pom.xml package -B -e -Djavacpp.platform=${{ github.job }} -Djavacpp.platform.extension=${{ matrix.ext }}

tensorflow-core/tensorflow-core-native/pom.xml

Lines changed: 0 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -85,51 +85,6 @@
8585
</properties>
8686
<build>
8787
<plugins>
88-
<!-- <plugin>-->
89-
<!-- <artifactId>maven-dependency-plugin</artifactId>-->
90-
<!-- <version>3.6.1</version>-->
91-
<!-- <executions>-->
92-
<!-- <execution>-->
93-
<!-- <id>copy-native-artifacts</id>-->
94-
<!-- <phase>validate</phase>-->
95-
<!-- <goals>-->
96-
<!-- <goal>copy</goal>-->
97-
<!-- </goals>-->
98-
<!-- <configuration>-->
99-
<!-- <outputDirectory>${project.build.directory}</outputDirectory>-->
100-
<!-- <overWriteSnapshots>true</overWriteSnapshots>-->
101-
<!-- <overWriteReleases>true</overWriteReleases>-->
102-
<!-- <useBaseVersion>true</useBaseVersion>-->
103-
<!-- <artifactItems>-->
104-
<!-- <artifactItem>-->
105-
<!-- <groupId>${project.groupId}</groupId>-->
106-
<!-- <artifactId>${project.artifactId}</artifactId>-->
107-
<!-- <version>${project.version}</version>-->
108-
<!-- <classifier>${javacpp.platform.linux-x86_64}</classifier>-->
109-
<!-- </artifactItem>-->
110-
<!-- <artifactItem>-->
111-
<!-- <groupId>${project.groupId}</groupId>-->
112-
<!-- <artifactId>${project.artifactId}</artifactId>-->
113-
<!-- <version>${project.version}</version>-->
114-
<!-- <classifier>${javacpp.platform.linux-x86_64}-gpu</classifier>-->
115-
<!-- </artifactItem>-->
116-
<!-- <artifactItem>-->
117-
<!-- <groupId>${project.groupId}</groupId>-->
118-
<!-- <artifactId>${project.artifactId}</artifactId>-->
119-
<!-- <version>${project.version}</version>-->
120-
<!-- <classifier>${javacpp.platform.macosx-arm64}</classifier>-->
121-
<!-- </artifactItem>-->
122-
<!-- <artifactItem>-->
123-
<!-- <groupId>${project.groupId}</groupId>-->
124-
<!-- <artifactId>${project.artifactId}</artifactId>-->
125-
<!-- <version>${project.version}</version>-->
126-
<!-- <classifier>${javacpp.platform.linux-arm64}</classifier>-->
127-
<!-- </artifactItem>-->
128-
<!-- </artifactItems>-->
129-
<!-- </configuration>-->
130-
<!-- </execution>-->
131-
<!-- </executions>-->
132-
<!-- </plugin>-->
13388
<plugin>
13489
<groupId>org.codehaus.mojo</groupId>
13590
<artifactId>build-helper-maven-plugin</artifactId>
@@ -565,43 +520,6 @@
565520
</executions>
566521
</plugin>
567522

568-
<!-- <plugin>-->
569-
<!-- <artifactId>maven-deploy-plugin</artifactId>-->
570-
<!-- <version>3.1.1</version>-->
571-
<!-- <executions>-->
572-
<!-- <execution>-->
573-
<!-- &lt;!&ndash;-->
574-
<!-- Deploy only native artifact-->
575-
<!-- This is used by the CI build to only deploy the native JAR artifact in the platform-specific runners.-->
576-
<!-- Other artifacts will be deployed in a second pass, when activating the `deploying` profile-->
577-
<!-- &ndash;&gt;-->
578-
<!-- <id>native-only</id>-->
579-
<!-- <goals>-->
580-
<!-- <goal>deploy-file</goal>-->
581-
<!-- </goals>-->
582-
<!-- <configuration>-->
583-
<!-- &lt;!&ndash; 'url' property must be provided in command line &ndash;&gt;-->
584-
<!-- <file>${project.build.directory}/${project.artifactId}-${project.version}-${native.classifier}.jar</file>-->
585-
<!-- <repositoryId>central</repositoryId>-->
586-
<!-- <groupId>${project.groupId}</groupId>-->
587-
<!-- <artifactId>${project.artifactId}</artifactId>-->
588-
<!-- <classifier>${native.classifier}</classifier>-->
589-
<!-- <pomFile>pom.xml</pomFile>-->
590-
<!-- <generatePom>false</generatePom>-->
591-
<!-- </configuration>-->
592-
<!-- </execution>-->
593-
<!-- </executions>-->
594-
<!-- </plugin>-->
595-
596-
<plugin>
597-
<groupId>org.sonatype.central</groupId>
598-
<artifactId>central-publishing-maven-plugin</artifactId>
599-
<configuration>
600-
<skipPublishing>true</skipPublishing>
601-
<outputFilename>${project.artifactId}-${project.version}-${native.classifier}.zip</outputFilename>
602-
</configuration>
603-
</plugin>
604-
605523
<plugin>
606524
<artifactId>maven-surefire-plugin</artifactId>
607525
<executions>

0 commit comments

Comments
 (0)