Skip to content

Commit 0c1736a

Browse files
fix mock release test
1 parent aad9c0d commit 0c1736a

File tree

2 files changed

+8
-137
lines changed

2 files changed

+8
-137
lines changed

.github/workflows/github_actions.yml

Lines changed: 0 additions & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -11,97 +11,7 @@ on:
1111
pull_request:
1212

1313
jobs:
14-
Test_Windows:
15-
runs-on: windows-2019
16-
steps:
17-
- name: checkout
18-
uses: actions/checkout@v3
19-
20-
- name: assemble
21-
uses: gradle/[email protected]
22-
with:
23-
arguments: assemble
24-
25-
- name: test
26-
uses: gradle/[email protected]
27-
with:
28-
arguments: test
29-
env:
30-
ORG_GRADLE_PROJECT_TILEDB_SERIALIZATION: OFF
31-
ORG_GRADLE_PROJECT_TILEDB_S3: OFF
32-
33-
34-
Test_Ubuntu_macOS:
35-
runs-on: ${{ matrix.os }}
36-
strategy:
37-
matrix:
38-
os: [ ubuntu-latest, macos-13, macos-13-xlarge ]
39-
steps:
40-
- name: checkout
41-
uses: actions/checkout@v3
42-
43-
- name: Set up Java
44-
uses: actions/setup-java@v3
45-
with:
46-
distribution: 'adopt'
47-
java-version: '11'
48-
check-latest: true
49-
50-
- run: |
51-
unset SYSTEM
52-
./gradlew checkFormat
53-
shell: bash
54-
name: checkFormat
55-
56-
- run: |
57-
unset SYSTEM
58-
./gradlew assemble
59-
shell: bash
60-
name: assemble
61-
62-
- run: |
63-
unset SYSTEM
64-
./gradlew test
65-
shell: bash
66-
name: test
67-
68-
env:
69-
ORG_GRADLE_PROJECT_TILEDB_SERIALIZATION: OFF
70-
ORG_GRADLE_PROJECT_TILEDB_S3: OFF
71-
72-
Examples:
73-
runs-on: ubuntu-latest
74-
75-
steps:
76-
- name: checkout
77-
uses: actions/checkout@v3
78-
79-
- run: |
80-
unset SYSTEM
81-
./gradlew assemble;
82-
shell: bash
83-
name: assemble
84-
85-
- name: Run examples
86-
run: |
87-
cd build/libs
88-
rm *javadoc* *sources*
89-
p=$(readlink -f *.jar)
90-
cd ../../src/main/java/examples/io/tiledb/java/api
91-
javac -cp $p *.java
92-
for x in $(ls -1 *.java | sed 's/.java//');
93-
do
94-
echo $x;
95-
class_name=examples.io.tiledb.java.api.$x;
96-
java -cp $p $class_name;
97-
done
98-
99-
env:
100-
ORG_GRADLE_PROJECT_TILEDB_SERIALIZATION: OFF
101-
ORG_GRADLE_PROJECT_TILEDB_S3: OFF
102-
10314
Create_Artifacts_Windows:
104-
if: startsWith(github.ref, 'refs/tags/') || contains(github.ref, 'test')
10515
needs: [Test_Windows, Examples]
10616
name: Create_Artifacts_Windows
10717
runs-on: windows-2019
@@ -148,7 +58,6 @@ jobs:
14858
ORG_GRADLE_PROJECT_TILEDB_S3: ON
14959

15060
Create_Artifacts_Ubuntu_MacOS:
151-
if: startsWith(github.ref, 'refs/tags/') || contains(github.ref, 'test')
15261
needs: [Test_Ubuntu_macOS, Examples]
15362
name: Create_Artifacts_Ubuntu_MacOS
15463
runs-on: ${{ matrix.os }}
@@ -225,7 +134,6 @@ jobs:
225134
ORG_GRADLE_PROJECT_TILEDB_S3: ON
226135

227136
Mock-Release:
228-
if: startsWith(github.ref, 'refs/tags/')
229137
needs: [Create_Artifacts_Ubuntu_MacOS, Create_Artifacts_Windows]
230138
name: Mock-Release
231139
runs-on: ubuntu-latest
@@ -259,7 +167,6 @@ jobs:
259167

260168

261169
Test-Mock-Release:
262-
if: startsWith(github.ref, 'refs/tags/')
263170
needs: [ Mock-Release ]
264171
name: Test-Mock-Release
265172
runs-on: ${{ matrix.os }}
@@ -306,50 +213,6 @@ jobs:
306213
class_name=examples.io.tiledb.java.api.$x;
307214
java -cp "$p" $class_name;
308215
done
309-
env:
310-
ORG_GRADLE_PROJECT_TILEDB_SERIALIZATION: ON
311-
ORG_GRADLE_PROJECT_TILEDB_S3: ON
312-
313-
Actual-Release:
314-
needs: [ Test-Mock-Release ]
315-
name: Actual-Release
316-
runs-on: ubuntu-latest
317-
steps:
318-
319-
- name: Checkout
320-
uses: actions/checkout@v3
321-
322-
- uses: actions/download-artifact@v2
323-
324-
- name: assemble
325-
run: |
326-
chmod +x ./ci/assemble_full_jar.sh;
327-
./ci/assemble_full_jar.sh;
328-
329-
- name: Create Release
330-
id: create_release
331-
uses: softprops/action-gh-release@v1
332-
env:
333-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
334-
with:
335-
files: jars/*.jar
336-
tag_name: ${{ github.event.release.tag_name }}
337-
name: ${{ github.event.release.tag_name }}
338-
body: ${{steps.github_release.outputs.changelog}}
339-
draft: false
340-
prerelease: false
341-
342-
- name: Upload to maven
343-
run: |
344-
chmod +x ./ci/upload_to_maven.sh
345-
./ci/upload_to_maven.sh
346-
shell: bash
347-
env:
348-
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
349-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
350-
GPG_SECRET_KEYS_ENC: ${{ secrets.GPG_SECRET_KEYS_ENC }}
351-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
352-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
353216
env:
354217
ORG_GRADLE_PROJECT_TILEDB_SERIALIZATION: ON
355218
ORG_GRADLE_PROJECT_TILEDB_S3: ON

src/main/java/examples/io/tiledb/java/api/ArrayDenseCreate.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,26 @@ public class ArrayDenseCreate {
3434
public static void main(String[] args) throws Exception {
3535

3636
// Create TileDB context
37+
System.out.println("context before");
38+
3739
Context ctx = new Context();
40+
System.out.println("context done");
3841
// Create getDimensions
3942
Dimension<Long> d1 =
4043
new Dimension<Long>(ctx, "d1", Long.class, new Pair<Long, Long>(1l, 4l), 2l);
4144
Dimension<Long> d2 =
4245
new Dimension<Long>(ctx, "d2", Long.class, new Pair<Long, Long>(1l, 4l), 2l);
4346

47+
System.out.println("dim done");
48+
4449
// Create getDomain
4550
Domain domain = new Domain(ctx);
51+
System.out.println("domain done");
4652
domain.addDimension(d1);
4753
domain.addDimension(d2);
4854

55+
System.out.println("added dims");
56+
4957
// Create and add getAttributes
5058
Attribute a1 = new Attribute(ctx, "a1", Integer.class);
5159
Attribute a2 = new Attribute(ctx, "a2", String.class);

0 commit comments

Comments
 (0)