Add proper compilation flags for MSVC and WSL in CMake #433
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Test | |
# | |
## Run this workflow every time a new commit pushed to your repository | |
on: push | |
jobs: | |
windows-msvc: | |
# Name the Job | |
name: Windows MSVC Build & Test | |
# Set the type of machine to run on | |
runs-on: windows-latest | |
steps: | |
# Checks out a copy of your repository on the ubuntu-latest machine | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Configure MSVC Dev Cmd | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: List working directory | |
run: dir | |
- name: Test | |
run: .\test.bat | |
windows-clang: | |
# Name the Job | |
name: Windows Clang Build & Test | |
# Set the type of machine to run on | |
runs-on: windows-latest | |
steps: | |
# Checks out a copy of your repository on the ubuntu-latest machine | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Configure MSVC Dev Cmd | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: List working directory | |
run: dir | |
- name: Test | |
run: .\test.bat clang-cl | |
linux-gcc: | |
# Name the Job | |
name: Linux (GCC) Build & Test | |
# Set the type of machine to run on | |
runs-on: ubuntu-latest | |
steps: | |
# Checks out a copy of your repository on the ubuntu-latest machine | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: GCC Version | |
run: gcc -v | |
- name: Test | |
run: CC=gcc ./test.sh | |
linux-clang: | |
# Name the Job | |
name: Linux (Clang) Build & Test | |
# Set the type of machine to run on | |
runs-on: ubuntu-latest | |
steps: | |
# Checks out a copy of your repository on the ubuntu-latest machine | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Clang Version | |
run: clang -v | |
- name: Test | |
run: CC=clang ./test.sh | |
# mac: | |
# # Name the Job | |
# name: Mac Build & Test | |
# # Set the type of machine to run on | |
# runs-on: macos-latest | |
# | |
# steps: | |
# # Checks out a copy of your repository on the ubuntu-latest machine | |
# - name: Checkout code | |
# uses: actions/checkout@v3 | |
# - name: Compiler Version | |
# run: cc -v | |
# - name: Test | |
# run: ./test.sh |