Skip to content

Commit f9eb69e

Browse files
java and golang on macos enabled (#316)
1 parent 4651fb6 commit f9eb69e

File tree

12 files changed

+33
-31
lines changed

12 files changed

+33
-31
lines changed

.github/workflows/build-golang.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Go
1+
name: Golang
22

33
on:
44
workflow_call:
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
os: [ ubuntu-latest, windows-latest] # , 'macos-latest' ] disabled due to macos issues
17+
os: [ ubuntu-latest, windows-latest, macos-latest ]
1818
steps:
1919
- uses: actions/checkout@v2
2020
- name: Download workflow artifact

.github/workflows/build-java.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
os: [ ubuntu-latest, windows-latest] # , macos-latest ] - disabled due to interesting macos issues
17+
os: [ ubuntu-latest, windows-latest, macos-latest ]
1818

1919
steps:
2020
- uses: actions/checkout@v2

.github/workflows/build-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Python SDK
1+
name: Python
22

33
on:
44
workflow_call:

.github/workflows/release-java.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release Java Maven Package
1+
name: Java (Release)
22

33
on:
44
workflow_dispatch:

.github/workflows/release-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release Python SDK
1+
name: Python (release)
22

33
on:
44
workflow_dispatch:

.github/workflows/release-ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release Ruby Gem
1+
name: Ruby (release)
22

33
on:
44
workflow_dispatch:

.github/workflows/release-wasm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Wasm (Release)"
1+
name: "Wasm (release)"
22

33
on:
44
workflow_dispatch:

java/src/test/java/Base58.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import java.util.Arrays;
2+
13
public class Base58 {
24

35
private static final char[] ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
@@ -6,17 +8,15 @@ public class Base58 {
68
private static final int BASE_256 = 256;
79

810
private static final int[] INDEXES = new int[128];
11+
912
static {
10-
for (int i = 0; i < INDEXES.length; i++) {
11-
INDEXES[i] = -1;
12-
}
13+
Arrays.fill(INDEXES, -1);
1314
for (int i = 0; i < ALPHABET.length; i++) {
1415
INDEXES[ALPHABET[i]] = i;
1516
}
1617
}
1718

1819

19-
2020
public static String encode(byte[] input) {
2121
if (input.length == 0) {
2222
// paying with the same coin

java/src/test/java/Hex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public static byte[] hexStringToByteArray(String s) {
55
byte[] data = new byte[len / 2];
66
for (int i = 0; i < len; i += 2) {
77
data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)
8-
+ Character.digit(s.charAt(i+1), 16));
8+
+ Character.digit(s.charAt(i + 1), 16));
99
}
1010
return data;
1111
}

java/src/test/java/LdProofTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
import java.util.HashMap;
1414

1515
public class LdProofTest {
16+
private static Value stringValue(String s) {
17+
return Value.newBuilder().setStringValue(s).build();
18+
}
19+
1620
@Test
1721
public void testGenerateCapabilityInvocationProofWithJcs() throws InvalidProtocolBufferException, DidException {
1822
var proofDict = new HashMap<String, Value>();
@@ -41,7 +45,4 @@ public void testGenerateCapabilityInvocationProofWithJcs() throws InvalidProtoco
4145
Assertions.assertNotNull(signedCapability);
4246
Assertions.assertNotNull(signedCapability.getSignedDocument());
4347
}
44-
private static Value stringValue(String s) {
45-
return Value.newBuilder().setStringValue(s).build();
46-
}
4748
}

0 commit comments

Comments
 (0)