Update c-cpp.yml #43
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: C/C++ CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache VS2019 Build Tools | |
uses: actions/cache@v4 | |
with: | |
key: vs2019-build-tools | |
path: | | |
~/vs2019layout | |
# - name: Run clang-tidy linter | |
# run: clang-tidy *.c *.h | |
# - name: Build x86 project | |
# shell: cmd | |
# run: > | |
# "C:\Progra~2\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars32.bat" | |
# && cl /W3 main.c hd.c /Fe"hd.exe" | |
# - name: Chocolatey | |
# shell: cmd | |
# run: > | |
# choco install visualstudio2019buildtools | |
# --version=16.7.7.0 | |
# --package-parameters | |
# "--layout C:\Users\runneradmin\vs2019layout --passive --locale en-US --add Microsoft.Component.MSBuild --add Microsoft.VisualStudio.Component.CoreBuildTools --add Microsoft.VisualStudio.Component.VC.v142.x86.x64 --add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core" | |
- name: Utility Versions | |
shell: cmd | |
run: | | |
echo wget | |
wget --version | |
echo node | |
node --version | |
echo java | |
java -version | |
echo javac | |
javac -version | |
echo nasm | |
nasm -v | |
echo curl | |
curl --version | |
echo clang | |
clang --version | |
- name: CL version | |
shell: cmd | |
run: > | |
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars32.bat" | |
&& cl | |
# - name: configure | |
# run: ./configure | |
# - name: make | |
# run: make | |
# - name: make check | |
# run: make check | |
# - name: make distcheck | |
# run: make distcheck |