Skip to content

Commit 95a3ae7

Browse files
committed
Try
1 parent 9431b03 commit 95a3ae7

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/call_build_native.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,27 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
# pre-build:
12-
# runs-on: ubuntu-latest
13-
# steps:
14-
# - uses: actions/checkout@v4
15-
# - name: Get native library version from Maven project
16-
# shell: bash
17-
# run: |
18-
# NATIVE_LIB_VERSION=$(mvn help:evaluate -Dexpression=natives.lib.version -q -DforceStdout)
19-
# echo "NATIVE_LIB_VERSION=$NATIVE_LIB_VERSION" >> GITHUB_OUTPUT
11+
pre-build:
12+
runs-on: ubuntu-latest
13+
outputs:
14+
natives-lib-version: ${{ steps.get-natives-lib-version.outputs.natives-lib-version }}
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Get natives library version from Maven project
18+
id: get-natives-lib-version
19+
shell: bash
20+
run: |
21+
echo "natives-lib-version=$(mvn help:evaluate -Dexpression=natives.lib.version -q -DforceStdout)" >> GITHUB_OUTPUT
2022
21-
build-native:
22-
# needs: [ pre-build ]
23+
build-natives:
24+
needs: [ pre-build ]
2325
uses: atraplet/clarabel4j-native/.github/workflows/build_natives.yml@feature/add_native_build
2426
with:
25-
native-lib-version: 0.10.0
27+
natives-lib-version: ${{needs.pre-build.outputs.natives-lib-version}}
2628

2729
build:
2830
runs-on: ubuntu-latest
29-
needs: [ build-native ]
31+
needs: [ build-natives ]
3032
steps:
3133
- uses: actions/checkout@v4
3234
- name: Download libraries

0 commit comments

Comments
 (0)