Skip to content

ci: delete cuda architecture flag #153

ci: delete cuda architecture flag

ci: delete cuda architecture flag #153

Workflow file for this run

# Original script from https://github.com/ptheywood/cuda-cmake-github-actions
name: Ubuntu
on:
push:
branches: [ master, self-hosted-runner ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
name: Build ${{ matrix.os }} GCC ${{ matrix.gcc }} CUDA ${{ matrix.cuda }}
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
cuda: "12.8"
gcc: 13
env:
build_dir: "build"
config: "Release"
artifact: "cubool-ubuntu-build.tar.xz"
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# - uses: actions/setup-python@v5
# with:
# python-version: '3.7'
- name: Install CUDA
env:
cuda: ${{ matrix.cuda }}
run: source ./scripts/install_cuda_ubuntu.sh
shell: bash
# sudo apt-get install -y gcc-${{ matrix.gcc }} g++-${{ matrix.gcc }}
- name: Export gcc and g++ variables
run: |
echo "СС=/usr/bin/gcc-${{ matrix.gcc }}" >> $GITHUB_ENV
echo "CXX=/usr/bin/g++-${{ matrix.gcc }}" >> $GITHUB_ENV
echo "CUDAHOSTCXX=/usr/bin/g++-${{ matrix.gcc }}" >> $GITHUB_ENV
echo "CUDACXX=/usr/local/cuda-${{ matrix.cuda }}/bin/nvcc" >> $GITHUB_ENV
- name: Configure CMake build
run: cmake . -B ${{ env.build_dir }} -DCMAKE_BUILD_TYPE=${{ env.config }} -DCUBOOL_BUILD_TESTS=YES
- name: Build library sources
working-directory: ${{ env.build_dir }}
run: cmake --build . --target all --verbose -j `nproc`
# - name: Run unit-tests (sequential backend)
# working-directory: ${{ env.build_dir }}
# run: bash scripts/run_tests_fallback.sh
# shell: bash
# - name: Run regression-tests (sequential backend)
# working-directory: ${{ env.build_dir }}/python
# run: bash run_tests.sh
# shell: bash
# - name: Prepare upload binary
# shell: bash
# run: tar cfz ${{ env.artifact }} ${{ env.build_dir }}
# - name: Upload binary
# uses: actions/upload-artifact@v4
# with:
# name: ${{ env.artifact }}
# path: ${{ env.artifact }}