Skip to content

Commit 071309e

Browse files
committed
ci: add environment variables in test stage
1 parent b4167d9 commit 071309e

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

.github/workflows/self-hosted.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,11 @@ jobs:
3030
with:
3131
submodules: recursive
3232

33-
- uses: actions/setup-python@v5
34-
with:
35-
python-version: '3.12'
36-
37-
- name: Install CUDA
38-
env:
39-
cuda: ${{ matrix.cuda }}
40-
run: source ./scripts/install_cuda_ubuntu.sh
41-
shell: bash
42-
43-
- name: Export gcc and g++ variables
33+
- name: Set environment variables
4434
run: |
45-
sudo apt-get install -y gcc-${{ matrix.gcc }} g++-${{ matrix.gcc }}
35+
echo "CUDA_PATH=/usr/local/cuda-12.8" >> $GITHUB_ENV
36+
echo "${CUDA_PATH}/bin" >> $GITHUB_PATH
37+
echo "LD_LIBRARY_PATH=${CUDA_PATH}/lib64:${LD_LIBRARY_PATH} >> $GITHUB_ENV
4638
echo "СС=/usr/bin/gcc-${{ matrix.gcc }}" >> $GITHUB_ENV
4739
echo "CXX=/usr/bin/g++-${{ matrix.gcc }}" >> $GITHUB_ENV
4840
echo "CUDAHOSTCXX=/usr/bin/g++-${{ matrix.gcc }}" >> $GITHUB_ENV

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Ubuntu
44

55
on:
66
push:
7-
branches: [ master ]
7+
branches: [ master, self-hosted-runner ]
88
pull_request:
99
branches: [ master ]
1010
workflow_dispatch:
@@ -34,8 +34,6 @@ jobs:
3434
python-version: '3.12'
3535

3636
- name: Install CUDA
37-
env:
38-
cuda: ${{ matrix.cuda }}
3937
run: |
4038
source ./scripts/install_cuda_ubuntu.sh
4139
if [[ $? -eq 0 ]]; then

0 commit comments

Comments
 (0)