@@ -211,6 +211,7 @@ jobs:
211
211
then
212
212
echo "This is a PUSH event"
213
213
branch=${{ github.ref_name }}
214
+ build_version=${{ needs.check_changelog.outputs.next_version }}
214
215
commit=${{ github.sha }}
215
216
clone_url=${{ github.event.repository.clone_url }}
216
217
else
@@ -227,6 +228,7 @@ jobs:
227
228
228
229
cd build
229
230
cmake -DGITHUB_CLONE_URL=${clone_url} \
231
+ -DBUILD_VERSION=${build_version} \
230
232
-DGITHUB_BRANCH=${branch} \
231
233
-DGITHUB_COMMIT=${commit} \
232
234
-DSUNSHINE_CONFIGURE_FLATPAK_MAN=ON \
@@ -377,7 +379,7 @@ jobs:
377
379
- name : Build Linux
378
380
env :
379
381
BRANCH : ${{ github.head_ref || github.ref_name }}
380
- BUILD_VERSION : ${{ needs.check_changelog.outputs.next_version_bare }}
382
+ BUILD_VERSION : ${{ needs.check_changelog.outputs.next_version }}
381
383
COMMIT : ${{ github.event.pull_request.head.sha || github.sha }}
382
384
timeout-minutes : 5
383
385
run : |
@@ -500,18 +502,24 @@ jobs:
500
502
run : |
501
503
${{ steps.python.outputs.python-path }} -m pip install gcovr
502
504
${{ steps.python.outputs.python-path }} -m gcovr -r .. \
503
- --exclude ../ tests/ \
504
- --exclude ../third-party/ \
505
+ --exclude '.* tests/.*' \
506
+ --exclude '.*tests/.*' \
505
507
--xml-pretty \
506
508
-o coverage.xml
507
509
508
510
- name : Upload coverage
509
511
# any except canceled or skipped
510
- if : always() && (steps.test_report.outcome == 'success')
511
- uses : codecov/codecov-action@v3
512
+ if : >-
513
+ always() &&
514
+ (steps.test_report.outcome == 'success') &&
515
+ startsWith(github.repository, 'LizardByte/')
516
+ uses : codecov/codecov-action@v4
512
517
with :
518
+ disable_search : true
519
+ fail_ci_if_error : true
513
520
files : ./build/coverage.xml
514
521
flags : ${{ runner.os }}
522
+ token : ${{ secrets.CODECOV_TOKEN }}
515
523
516
524
- name : Create/Update GitHub Release
517
525
if : ${{ needs.setup_release.outputs.create_release == 'true' }}
@@ -560,13 +568,16 @@ jobs:
560
568
if [ -z "$branch" ]
561
569
then
562
570
echo "This is a PUSH event"
571
+ build_version=${{ needs.check_changelog.outputs.next_version }}
563
572
clone_url=${{ github.event.repository.clone_url }}
564
573
branch="${{ github.ref_name }}"
574
+ commit=${{ github.sha }}
565
575
default_branch="${{ github.event.repository.default_branch }}"
566
576
else
567
577
echo "This is a PR event"
568
578
clone_url=${{ github.event.pull_request.head.repo.clone_url }}
569
579
branch="${{ github.event.pull_request.head.ref }}"
580
+ commit=${{ github.event.pull_request.head.sha }}
570
581
default_branch="${{ github.event.pull_request.head.repo.default_branch }}"
571
582
fi
572
583
echo "Branch: ${branch}"
@@ -575,7 +586,9 @@ jobs:
575
586
mkdir build
576
587
cd build
577
588
cmake \
589
+ -DBUILD_VERSION="${build_version}" \
578
590
-DGITHUB_BRANCH="${branch}" \
591
+ -DGITHUB_COMMIT="${commit}" \
579
592
-DGITHUB_CLONE_URL="${clone_url}" \
580
593
-DGITHUB_DEFAULT_BRANCH="${default_branch}" \
581
594
-DSUNSHINE_CONFIGURE_HOMEBREW=ON \
@@ -613,7 +626,7 @@ jobs:
613
626
echo "publish=${PUBLISH}" >> $GITHUB_OUTPUT
614
627
615
628
- name : Validate and Publish Homebrew Formula
616
- uses : LizardByte/homebrew-release-action@v2024.314.134529
629
+ uses : LizardByte/homebrew-release-action@v2024.417.220943
617
630
with :
618
631
formula_file : ${{ github.workspace }}/homebrew/sunshine.rb
619
632
git_email : ${{ secrets.GH_BOT_EMAIL }}
@@ -673,6 +686,8 @@ jobs:
673
686
if [ -z "$branch" ]
674
687
then
675
688
echo "This is a PUSH event"
689
+ branch="${{ github.ref_name }}"
690
+ build_version=${{ needs.check_changelog.outputs.next_version }}
676
691
commit=${{ github.sha }}
677
692
clone_url=${{ github.event.repository.clone_url }}
678
693
else
@@ -686,6 +701,8 @@ jobs:
686
701
mkdir build
687
702
cd build
688
703
cmake \
704
+ -DBUILD_VERSION=${build_version} \
705
+ -DGITHUB_BRANCH=${branch} \
689
706
-DGITHUB_COMMIT=${commit} \
690
707
-DGITHUB_CLONE_URL=${clone_url} \
691
708
-DSUNSHINE_CONFIGURE_PORTFILE=ON \
@@ -821,20 +838,26 @@ jobs:
821
838
cd ${build_dir}
822
839
${{ steps.python.outputs.python-path }} -m pip install gcovr
823
840
sudo ${{ steps.python.outputs.python-path }} -m gcovr -r ../${dir} \
824
- --exclude ../ ${dir}/tests/ \
825
- --exclude ../ ${dir}/third-party/ \
841
+ --exclude '.* ${dir}/tests/.*' \
842
+ --exclude '.* ${dir}/third-party/.*' \
826
843
--gcov-object-directory $(pwd) \
827
844
--verbose \
828
845
--xml-pretty \
829
846
-o ${{ github.workspace }}/build/coverage.xml
830
847
831
848
- name : Upload coverage
832
849
# any except canceled or skipped
833
- if : always() && (steps.test_report.outcome == 'success')
834
- uses : codecov/codecov-action@v3
850
+ if : >-
851
+ always() &&
852
+ (steps.test_report.outcome == 'success') &&
853
+ startsWith(github.repository, 'LizardByte/')
854
+ uses : codecov/codecov-action@v4
835
855
with :
856
+ disable_search : true
857
+ fail_ci_if_error : false # todo: re-enable this when action is fixed
836
858
files : ./build/coverage.xml
837
859
flags : ${{ runner.os }}-${{ matrix.os_version }}
860
+ token : ${{ secrets.CODECOV_TOKEN }}
838
861
839
862
- name : Create/Update GitHub Release
840
863
if : ${{ needs.setup_release.outputs.create_release == 'true' && matrix.release }}
@@ -1014,7 +1037,7 @@ jobs:
1014
1037
shell : msys2 {0}
1015
1038
env :
1016
1039
BRANCH : ${{ github.head_ref || github.ref_name }}
1017
- BUILD_VERSION : ${{ needs.check_changelog.outputs.next_version_bare }}
1040
+ BUILD_VERSION : ${{ needs.check_changelog.outputs.next_version }}
1018
1041
COMMIT : ${{ github.event.pull_request.head.sha || github.sha }}
1019
1042
run : |
1020
1043
mkdir build
@@ -1059,18 +1082,24 @@ jobs:
1059
1082
run : |
1060
1083
${{ steps.python-path.outputs.python-path }} -m pip install gcovr
1061
1084
${{ steps.python-path.outputs.python-path }} -m gcovr -r .. \
1062
- --exclude ../ tests/ \
1063
- --exclude ../third-party/ \
1085
+ --exclude '.* tests/.*' \
1086
+ --exclude '.*tests/.*' \
1064
1087
--xml-pretty \
1065
1088
-o coverage.xml
1066
1089
1067
1090
- name : Upload coverage
1068
1091
# any except canceled or skipped
1069
- if : always() && (steps.test_report.outcome == 'success')
1070
- uses : codecov/codecov-action@v3
1092
+ if : >-
1093
+ always() &&
1094
+ (steps.test_report.outcome == 'success') &&
1095
+ startsWith(github.repository, 'LizardByte/')
1096
+ uses : codecov/codecov-action@v4
1071
1097
with :
1098
+ disable_search : true
1099
+ fail_ci_if_error : true
1072
1100
files : ./build/coverage.xml
1073
1101
flags : ${{ runner.os }}
1102
+ token : ${{ secrets.CODECOV_TOKEN }}
1074
1103
1075
1104
- name : Package Windows Debug Info
1076
1105
working-directory : build
0 commit comments