Skip to content

fix: Fix cmake options #113

fix: Fix cmake options

fix: Fix cmake options #113

Workflow file for this run

name: CMake MacOS
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
BUILD_TYPE: Release
jobs:
build_macos_cpu:
name: build_macos_cpu
runs-on: macos-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 && ./TinyTorch_demo