Skip to content

Commit c8f9733

Browse files
committed
(actions) fix env vars
1 parent dc48c4d commit c8f9733

File tree

1 file changed

+24
-14
lines changed

1 file changed

+24
-14
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: CI
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
env:
6+
NUM_THREADS: 4
7+
58
jobs:
69
build:
710
name: ${{ matrix.build_name }}
@@ -17,27 +20,34 @@ jobs:
1720
# WITH_CUDA: false
1821
# WITH_CUDNN: false
1922
- BUILD_NAME: default-make
23+
ENV:
2024
- BUILD_NAME: no-io-make
21-
WITH_IO: false
25+
ENV:
26+
WITH_IO: false
2227
- BUILD_NAME: cuda-make
23-
WITH_CUDA: true
28+
ENV:
29+
WITH_CUDA: true
2430
- BUILD_NAME: cudnn-make
25-
WITH_CUDA: true
26-
WITH_CUDNN: true
31+
ENV:
32+
WITH_CUDA: true
33+
WITH_CUDNN: true
2734
- BUILD_NAME: default-cmake
28-
WITH_CMAKE: true
35+
ENV:
36+
WITH_CMAKE: true
2937
- BUILD_NAME: no-io-cmake
30-
WITH_CMAKE: true
31-
WITH_IO: false
38+
ENV:
39+
WITH_CMAKE: true
40+
WITH_IO: false
3241
- BUILD_NAME: cuda-cmake
33-
WITH_CMAKE: true
34-
WITH_CUDA: true
42+
ENV:
43+
WITH_CMAKE: true
44+
WITH_CUDA: true
3545
- BUILD_NAME: cudnn-cmake
36-
WITH_CMAKE: true
37-
WITH_CUDA: true
38-
WITH_CUDNN: true
39-
env:
40-
NUM_THREADS: 4
46+
ENV:
47+
WITH_CMAKE: true
48+
WITH_CUDA: true
49+
WITH_CUDNN: true
50+
env: ${{ matrix.env }}
4151
steps:
4252
- uses: actions/checkout@v3
4353
- name: Defaults

0 commit comments

Comments
 (0)