File tree Expand file tree Collapse file tree 2 files changed +22
-9
lines changed
Expand file tree Collapse file tree 2 files changed +22
-9
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,11 @@ mkdir "$buildDir"
99
1010cd " $buildDir "
1111
12- VERSION=$( " ${GITHUB_WORKSPACE} /scripts/mumble-version.py" )
13- BUILD_NUMBER=$( " ${GITHUB_WORKSPACE} /scripts/mumble-build-number.py" --commit " ${GITHUB_SHA} " --version " ${VERSION} " \
14- --password " ${MUMBLE_BUILD_NUMBER_TOKEN} " --default 0)
15-
1612# Run cmake with all necessary options
1713cmake -G Ninja \
1814 -S " $GITHUB_WORKSPACE " \
1915 -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
20- -DBUILD_NUMBER=$BUILD_NUMBER \
16+ -DBUILD_NUMBER=$MUMBLE_BUILD_NUMBER \
2117 $CMAKE_OPTIONS \
2218 -DCMAKE_UNITY_BUILD=ON \
2319 -Ddisplay-install-paths=ON \
Original file line number Diff line number Diff line change 1111
1212
1313jobs :
14- pre_run :
14+ skip_test :
1515 runs-on : ubuntu-latest
1616 outputs :
1717 should_skip : ${{ steps.skip_check.outputs.should_skip }}
2222 concurrent_skipping : same_content_newer
2323 skip_after_successful_duplicate : ' true'
2424
25+ fetch_build_number :
26+ runs-on : ubuntu-latest
27+ outputs :
28+ build_number : ${{ steps.fetch.outputs.build_number }}
29+ steps :
30+ - uses : actions/checkout@v3
31+ with :
32+ fetch-depth : 1
33+ - id : fetch
34+ shell : bash
35+ run : |
36+ echo "build_number=$( '${{ github. workspace }}/scripts/mumble-build-number.py' \
37+ --commit ${{ github.sha }} --version $( '${{ github.workspace }}/scripts/mumble-version.py' ) \
38+ --password '${{ secrets.BUILD_NUMBER_TOKEN }}' --default 0 )" >> $GITHUB_OUTPUT
39+
40+
2541 build :
26- needs : pre_run
27- if : needs.pre_run.outputs.should_skip != 'true'
42+ needs : [ skip_test, fetch_build_number ]
43+
44+ if : needs.skip_test.outputs.should_skip != 'true'
2845
2946 strategy :
3047 fail-fast : false
6986 run : ./.github/workflows/build.sh
7087 shell : bash
7188 env :
72- MUMBLE_BUILD_NUMBER_TOKEN : ${{ secrets.BUILD_NUMBER_TOKEN }}
89+ MUMBLE_BUILD_NUMBER : ${{ needs.fetch_build_number.outputs.build_number }}
7390
7491 - name : Test
7592 working-directory : ${{ github.workspace }}/build
You can’t perform that action at this time.
0 commit comments