File tree Expand file tree Collapse file tree 3 files changed +67
-3
lines changed
Expand file tree Collapse file tree 3 files changed +67
-3
lines changed Original file line number Diff line number Diff line change 1+ name : release
2+ on :
3+ release :
4+ type : [published]
5+
6+ jobs :
7+ publish-to-maven :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Checkout code
11+ uses : actions/checkout@v3
12+ - name : Install Java and Maven
13+ uses : actions/setup-java@v1
14+ with :
15+ java-version : 8
16+ - name : Release Maven package
17+ uses : samuelmeuli/action-maven-publish@v1
18+ with :
19+ gpg_private_key : ${{ secrets.gpg_private_key }}
20+ gpg_passphrase : ${{ secrets.gpg_passphrase }}
21+ nexus_username : ${{ secrets.nexus_username }}
22+ nexus_password : ${{ secrets.nexus_password }}
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # install cross
4+ cargo install cross
5+
6+ # x86_64-unknown-linux-gnu
7+ cross build --release --target x86_64-unknown-linux-gnu
8+ cp ../target/x86_64-unknown-linux-gnu/release/libprql_java.so java/src/main/resources/libprql_java-linux64.so
9+
10+ # x86_64-unknown-linux-musl
11+ cross build --release --target x86_64-unknown-linux-musl
12+ cp ../target/x86_64-unknown-linux-musl/release/libprql_java.so java/src/main/resources/libprql_java-linux64-musl.so
13+
14+ # x86_64-apple-darwin
15+ cross build --release --target x86_64-apple-darwin
16+ cp ../target/x86_64-apple-darwin/release/libprql_java.dylib java/src/main/resources/libprql_java-osx-x86_64.dylib
17+
18+ # x86_64-pc-windows-gnu
19+ cross build --release --target x86_64-pc-windows-gnu
20+ cp ../target/x86_64-pc-windows-gnu/release/prql_java.dll java/src/main/resources/libprql_java-win64.dylib
21+
22+ # aarch64-unknown-linux-gnu
23+ cross build --release --target aarch64-unknown-linux-gnu
24+ cp ../target/x86_64-unknown-linux-gnu/release/libprql_java.so java/src/main/resources/libprql_java-linux-aarch64.so
25+
26+ # aarch64-unknown-linux-musl
27+ cross build --release --target aarch64-unknown-linux-musl
28+ cp ../target/aarch64-unknown-linux-musl/release/libprql_java.so java/src/main/resources/libprql_java-linux-aarch64-musl.so
29+
30+ # aarch64-apple-darwin
31+ cross build --release --target aarch64-apple-darwin
32+ cp ../target/x86_64-apple-darwin/release/libprql_java.dylib java/src/main/resources/libprql_java-osx-arm64.dylib
Original file line number Diff line number Diff line change 2222
2323 <groupId >io.github.doki23</groupId >
2424 <artifactId >prql-java</artifactId >
25- <version >1.0-SNAPSHOT </version >
25+ <version >0.0.2 </version >
2626
2727 <name >${project.groupId} :${project.artifactId} </name >
2828 <description >prql compiler api for java</description >
7070 <version >1.6.0</version >
7171 <executions >
7272 <execution >
73- <id >Run Script </id >
74- <phase >initialize </phase >
73+ <id >Rust build for test </id >
74+ <phase >generate-resources </phase >
7575 <goals >
7676 <goal >exec</goal >
7777 </goals >
8282 </arguments >
8383 </configuration >
8484 </execution >
85+ <execution >
86+ <id >Rust build for release</id >
87+ <phase >prepare-package</phase >
88+ <goals >
89+ <goal >exec</goal >
90+ </goals >
91+ <configuration >
92+ <executable >../cross.sh</executable >
93+ </configuration >
94+ </execution >
8595 </executions >
8696 </plugin >
8797
You can’t perform that action at this time.
0 commit comments