Skip to content

Commit

Permalink
github action #18
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefvand committed Oct 19, 2024
1 parent 7ffd961 commit e4a2e2b
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ name: CI Build

on:
push:
branches:
- main
- dev
branches: [main, dev]
pull_request:
branches:
- main
branches: [main]

jobs:
build:
Expand All @@ -24,9 +21,6 @@ jobs:
- os: ubuntu-latest
c_compiler: gcc
cpp_compiler: g++
- os: ubuntu-latest
c_compiler: clang
cpp_compiler: clang++
- os: macos-latest
c_compiler: clang
cpp_compiler: clang++
Expand Down Expand Up @@ -58,7 +52,7 @@ jobs:
choco install ninja -y
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y
# Set up MSVC environment for Windows
# Set up MSVC environment
- name: Set up MSVC environment (Windows)
if: matrix.os == 'windows-latest'
shell: cmd
Expand All @@ -72,7 +66,7 @@ jobs:
SET "VS_VARS_CMD=%VS_PATH%\VC\Auxiliary\Build\vcvars64.bat"
echo Using vcvars64.bat from: %VS_VARS_CMD%
CALL "%VS_VARS_CMD%" || exit /b 1
where cl # Verify cl.exe is in the PATH
where cl # Ensure cl.exe is in PATH
# Configure CMake for Windows
- name: Configure CMake (Windows)
Expand Down

0 comments on commit e4a2e2b

Please sign in to comment.