I'm really getting to the end of my tether here, I'm taking the first steps into using appveyor with github and c++.
With a ‘hello world’ main.cpp I've figured out how to get it to make a build with visual studio when I make a commit, however what I really want is to save the main.exe that I have created onto my local machine.
I am using the following appveyor.yml file:
os: Visual Studio 2019
environment:
HOME: "%HOMEDRIVE%%HOMEPATH%"
MY_REPO_URL: "https://github.com/lawnjelly/ci_test"
VS: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat
TARGET: release_debug
ARCH: amd64
install:
- if defined VS call "%VS%" %ARCH% # if defined - so we can also use mingw
before_build:
- cd %APPVEYOR_BUILD_FOLDER%\..
- git clone --depth=1 %MY_REPO_URL% && cd ci_test
- cl.exe
build_script:
- cl.exe main.cpp
- ls
after_build:
- dir /s
artifacts:
- path: main.exe
name: MyBuild