Skip to content

Autocast

Autocast #107

Workflow file for this run

name: CMake Windows
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
BUILD_TYPE: Release
jobs:
build_windows_cpu:
name: build_windows_cpu
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DTINYTORCH_USE_CUDA=OFF -DTINYTORCH_TEST_CUDA=OFF -DTINYTORCH_BUILD_TEST=ON
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
run: cd ${{github.workspace}}/build && ctest
# - name: Demo
# run: cd ${{github.workspace}}/demo/bin/${{env.BUILD_TYPE}} && ./TinyTorch_demo.exe
# build_windows_gpu:
# name: build_windows_gpu
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: true
# - name: Update cuda driver
# run: |
# nvidia-smi
# - name: cuda-toolkit
# uses: Jimver/[email protected]
# with:
# use-github-cache: false
# use-local-cache: false
# - name: Configure CMake
# run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DTINYTORCH_USE_CUDA=ON -DTINYTORCH_TEST_CUDA=ON -DTINYTORCH_BUILD_TEST=ON
# - name: Build
# run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
# - name: Test
# run: cd ${{github.workspace}}/build && ctest
# - name: Demo
# run: cd ${{github.workspace}}/demo/bin/${{env.BUILD_TYPE}} && ./TinyTorch_demo.exe