Skip to content

Commit

Permalink
#406: Fix nightly build (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvomiero authored Jun 27, 2024
1 parent 28c66ee commit dd966b4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 21 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:
- name: Build native images with nativ maven plugin and extract in tar.gz
shell: bash
run: |
mvn -B -ntp -Pnative -DskipTests=true package -pl cli
cd cli
mvn -B -ntp -Pnative -P!include-docs -DskipTests=true package
- uses: actions/upload-artifact@v3
with:
name: natives
Expand Down
53 changes: 33 additions & 20 deletions cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,39 @@
</buildArgs>
</configuration>
</plugin>
<!-- Assembly Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>create-distribution</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>${releaseName}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>/src/main/assembly/release.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<!-- New profile for including documentation -->
<profile>
<id>include-docs</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<!-- Include documentation into release -->
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -249,26 +282,6 @@
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>create-distribution</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>${releaseName}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>/src/main/assembly/release.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down

0 comments on commit dd966b4

Please sign in to comment.