@@ -43,34 +43,34 @@ jobs:
43
43
- uses : actions/checkout@v4
44
44
with :
45
45
ref : ${{ inputs.ref || github.ref }}
46
- # - name: Install Rust
47
- # uses: actions-rs/toolchain@v1
48
- # with:
49
- # toolchain: stable
50
- # target: ${{ matrix.target }}
51
- # override: true
52
- # - name: Install cargo-binstall
53
- # uses: taiki-e/install-action@cargo-binstall
54
- # - name: Install Zig
55
- # uses: goto-bus-stop/setup-zig@v2
56
- # with:
57
- # version: 0.10.1
58
- # - name: Install cargo-zigbuild
59
- # run: cargo binstall --no-confirm cargo-zigbuild
60
- # - name: Run compile script
61
- # run: |
62
- # chmod +x .github/scripts/compile_all_targets_java_new.sh
63
- # .github/scripts/compile_all_targets_java_new.sh ${{ matrix.target }}
64
- # shell: bash
65
- # - name: Upload dynamic libs
66
- # uses: actions/upload-artifact@v4
67
- # with:
68
- # name: ${{ matrix.target }}
69
- # path: bindings/java/java_code/src/main/resources/${{ matrix.target }}
46
+ - name : Install Rust
47
+ uses : actions-rs/toolchain@v1
48
+ with :
49
+ toolchain : stable
50
+ target : ${{ matrix.target }}
51
+ override : true
52
+ - name : Install cargo-binstall
53
+ uses : taiki-e/install-action@cargo-binstall
54
+ - name : Install Zig
55
+ uses : goto-bus-stop/setup-zig@v2
56
+ with :
57
+ version : 0.10.1
58
+ - name : Install cargo-zigbuild
59
+ run : cargo binstall --no-confirm cargo-zigbuild
60
+ - name : Run compile script
61
+ run : |
62
+ chmod +x .github/scripts/compile_all_targets_java_new.sh
63
+ .github/scripts/compile_all_targets_java_new.sh ${{ matrix.target }}
64
+ shell : bash
65
+ - name : Upload dynamic libs
66
+ uses : actions/upload-artifact@v4
67
+ with :
68
+ name : ${{ matrix.target }}
69
+ path : bindings/java/java_code/src/main/resources/${{ matrix.target }}
70
70
71
71
test :
72
72
name : Test on ${{ matrix.target }}
73
- # needs: build
73
+ needs : build
74
74
strategy :
75
75
matrix :
76
76
include :
@@ -89,27 +89,27 @@ jobs:
89
89
- uses : actions/checkout@v4
90
90
with :
91
91
ref : ${{ inputs.ref || github.ref }}
92
- # - name: Download artifacts
93
- # uses: actions/download-artifact@v4
94
- # with:
95
- # name: ${{ matrix.target }}
96
- # path: bindings/java/java_code/src/main/resources/${{ matrix.target }}
97
- # - name: Set up JDK
98
- # uses: actions/setup-java@v3
99
- # with:
100
- # distribution: 'temurin'
101
- # java-version: '17'
102
- # - name: Build with Gradle (no tests)
103
- # run: ./gradlew build -x test
104
- # working-directory: bindings/java/java_code
105
- # - name: Run Gradle tests
106
- # run: ./gradlew test --info --stacktrace --scan
107
- # working-directory: bindings/java/java_code
92
+ - name : Download artifacts
93
+ uses : actions/download-artifact@v4
94
+ with :
95
+ name : ${{ matrix.target }}
96
+ path : bindings/java/java_code/src/main/resources/${{ matrix.target }}
97
+ - name : Set up JDK
98
+ uses : actions/setup-java@v3
99
+ with :
100
+ distribution : ' temurin'
101
+ java-version : ' 17'
102
+ - name : Build with Gradle (no tests)
103
+ run : ./gradlew build -x test
104
+ working-directory : bindings/java/java_code
105
+ - name : Run Gradle tests
106
+ run : ./gradlew test --info --stacktrace --scan
107
+ working-directory : bindings/java/java_code
108
108
109
109
publish :
110
110
name : Publish
111
111
if : ${{ inputs.release-type != 'none' && github.event_name == 'workflow_dispatch' }}
112
- # needs: [build, test]
112
+ needs : [build, test]
113
113
runs-on : ubuntu-latest
114
114
steps :
115
115
- uses : actions/checkout@v4
0 commit comments