Skip to content

Commit b4c7420

Browse files
committed
ci
1 parent c71d50a commit b4c7420

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
105105
- name: Assembly JAR
106106
run: |
107-
mvn package
107+
mvn package -Dmaven.test.skip
108108
109109
- uses: actions/upload-artifact@v3
110110
with:

src/main/java/dev/zarr/bloscjava/Blosc.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
import java.nio.file.StandardCopyOption;
88

99
public class Blosc {
10-
private static final String OS = System.getProperty("os.name").toLowerCase();
11-
12-
1310
static {
1411
try {
1512
System.load(loadLibraryFromJarToTemp().getAbsolutePath());
@@ -57,12 +54,13 @@ public static byte[] decompress(byte[] src) {
5754

5855

5956
private static File loadLibraryFromJarToTemp() throws IOException {
57+
final String os = System.getProperty("os.name").toLowerCase();
6058
final String filePrefix = "libbloscjni";
6159
InputStream is = null;
6260
try {
6361
String extension = ".so";
64-
if (OS.contains("mac")) extension = ".dylib";
65-
if (OS.contains("win")) extension = ".dll";
62+
if (os.contains("mac")) extension = ".dylib";
63+
if (os.contains("win")) extension = ".dll";
6664

6765
// attempt to look up the static library in the jar file
6866
String libraryFileName = filePrefix + extension;

0 commit comments

Comments
 (0)