Skip to content

Commit 0039a8a

Browse files
committed
ci: copy-pasting for new version due to flag change
1 parent fa16106 commit 0039a8a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/build-tests.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,26 @@ jobs:
6565
- run: echo "USE_BAZEL_VERSION=$(cat .bazelversion)" >> $env:GITHUB_ENV
6666
if: ${{ startsWith(matrix.cases.os, 'windows') }}
6767

68+
# out of @examples repo build requires WORKSPACE-based external dependency system
69+
- run: bazelisk build --jobs=1 @rules_cuda_examples//basic:all
70+
- run: bazelisk build --jobs=1 @rules_cuda_examples//rdc:all
71+
- run: bazelisk build --jobs=1 @rules_cuda_examples//if_cuda:main
72+
- run: bazelisk build --jobs=1 @rules_cuda_examples//if_cuda:main --enable_cuda=False
73+
# in @examples repo build, bzlmod is enabled by default since Bazel 7
74+
- run: cd examples && bazelisk build --jobs=1 //basic:all
75+
- run: cd examples && bazelisk build --jobs=1 //rdc:all
76+
- run: cd examples && bazelisk build --jobs=1 //if_cuda:main
77+
- run: cd examples && bazelisk build --jobs=1 //if_cuda:main --enable_cuda=False
78+
- run: bazelisk shutdown
79+
# run some repo integration tests
80+
- run: cd tests/integration && ./test_all.sh
81+
82+
# Use Bazel 7
83+
- run: echo "USE_BAZEL_VERSION=7.5.0" >> $GITHUB_ENV
84+
if: ${{ !startsWith(matrix.cases.os, 'windows') }}
85+
- run: echo "USE_BAZEL_VERSION=7.5.0" >> $env:GITHUB_ENV
86+
if: ${{ startsWith(matrix.cases.os, 'windows') }}
87+
6888
# out of @examples repo build requires WORKSPACE-based external dependency system
6989
- run: bazelisk build --jobs=1 --noenable_bzlmod @rules_cuda_examples//basic:all
7090
- run: bazelisk build --jobs=1 --noenable_bzlmod @rules_cuda_examples//rdc:all

0 commit comments

Comments
 (0)