Skip to content

Commit 35d12f3

Browse files
committed
Fix release on CI
1 parent f8ee084 commit 35d12f3

File tree

6 files changed

+32
-10
lines changed

6 files changed

+32
-10
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,32 @@ jobs:
1717
LD_LIBRARY_PATH: "/usr/lib/x86_64-linux-gnu"
1818
strategy:
1919
matrix:
20-
jdk: [8, 11, 17]
20+
jdk: [8, 11, 17, 21, 24]
2121
steps:
2222
- uses: actions/checkout@v2
2323
- name: Cache M2 local repository
24-
uses: actions/cache@v2
24+
uses: actions/cache@v4
2525
with:
2626
path: ~/.m2/repository
2727
key: m2
2828
- name: Install dependencies
2929
run: |
3030
sudo apt-get -y update
31-
sudo apt-get -y install libopenblas-dev libarpack2-dev gcc-aarch64-linux-gnu gcc-x86-64-linux-gnu
31+
sudo apt-get -y install libopenblas-dev libarpack2-dev gcc-aarch64-linux-gnu gcc-riscv64-linux-gnu gcc-x86-64-linux-gnu
3232
# Build with JDK 17
3333
- name: Set up JDK 17
34-
uses: actions/setup-java@v1
34+
uses: actions/setup-java@v4
3535
with:
3636
java-version: 17
37+
distribution: temurin
3738
- name: Build
3839
run: mvn --batch-mode compile test-compile
3940
# Test with JDK ${{ matrix.jdk }}
4041
- name: Set up JDK ${{ matrix.jdk }}
41-
uses: actions/setup-java@v1
42+
uses: actions/setup-java@v4
4243
with:
4344
java-version: ${{ matrix.jdk }}
45+
distribution: temurin
4446
- name: Test
4547
run: mvn --batch-mode --projects blas,lapack,arpack surefire:test
4648

@@ -54,19 +56,20 @@ jobs:
5456
steps:
5557
- uses: actions/checkout@v2
5658
- name: Cache M2 local repository
57-
uses: actions/cache@v2
59+
uses: actions/cache@v4
5860
with:
5961
path: ~/.m2/repository
6062
key: m2
6163
- name: Install dependencies
6264
run: |
6365
sudo apt-get -y update
64-
sudo apt-get -y install gcc-aarch64-linux-gnu gcc-x86-64-linux-gnu
66+
sudo apt-get -y install gcc-aarch64-linux-gnu gcc-riscv64-linux-gnu gcc-x86-64-linux-gnu
6567
- name: Set up JDK 17
66-
uses: actions/setup-java@v1
68+
uses: actions/setup-java@v4
6769
with: # running setup-java again overwrites the settings.xml
6870
java-version: 17
69-
server-id: ossrh
71+
distribution: temurin
72+
server-id: central
7073
server-username: MAVEN_USERNAME
7174
server-password: MAVEN_PASSWORD
7275
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
@@ -76,7 +79,7 @@ jobs:
7679
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
7780
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
7881
- name: Upload Benchmarks
79-
uses: actions/upload-artifact@v2
82+
uses: actions/upload-artifact@v4
8083
with:
8184
name: benchmarks
8285
path: benchmarks/target/netlib-benchmarks.jar

arpack/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ information or have any questions.
2727
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2828
<modelVersion>4.0.0</modelVersion>
2929

30+
<name>Netlib ARPACK</name>
31+
3032
<parent>
3133
<groupId>dev.ludovic.netlib</groupId>
3234
<artifactId>parent</artifactId>

benchmarks/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ information or have any questions.
2727
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2828
<modelVersion>4.0.0</modelVersion>
2929

30+
<name>Netlib Benchmarks</name>
31+
3032
<parent>
3133
<groupId>dev.ludovic.netlib</groupId>
3234
<artifactId>parent</artifactId>

blas/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ information or have any questions.
2727
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2828
<modelVersion>4.0.0</modelVersion>
2929

30+
<name>Netlib BLAS</name>
31+
3032
<parent>
3133
<groupId>dev.ludovic.netlib</groupId>
3234
<artifactId>parent</artifactId>

lapack/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ information or have any questions.
2727
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2828
<modelVersion>4.0.0</modelVersion>
2929

30+
<name>Netlib LAPACK</name>
31+
3032
<parent>
3133
<groupId>dev.ludovic.netlib</groupId>
3234
<artifactId>parent</artifactId>

pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,17 @@ information or have any questions.
153153
</execution>
154154
</executions>
155155
</plugin>
156+
<plugin>
157+
<groupId>org.sonatype.central</groupId>
158+
<artifactId>central-publishing-maven-plugin</artifactId>
159+
<version>0.8.0</version>
160+
<extensions>true</extensions>
161+
<configuration>
162+
<publishingServerId>central</publishingServerId>
163+
<autoPublish>true</autoPublish>
164+
<waitUntil>published</waitUntil>
165+
</configuration>
166+
</plugin>
156167
</plugins>
157168
<pluginManagement>
158169
<plugins>

0 commit comments

Comments
 (0)