-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
50 lines (41 loc) · 1.41 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
environment:
CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
VCPKG_TRIPLET: "x64-windows"
cache:
- "C:/Tools/vcpkg/installed/"
configuration:
- Release
image: Visual Studio 2017
install:
- ps: vcpkg install glfw3:$env:VCPKG_TRIPLET
- ps: vcpkg install glew:$env:VCPKG_TRIPLET
- ps: vcpkg install portaudio:$env:VCPKG_TRIPLET
- ps: vcpkg list
build_script:
# Build and run tests
- ps: mkdir testbuild
- ps: cd testbuild
- ps: cmake -G"$env:CMAKE_GENERATOR" -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DNES_DISABLE_IO=ON ..
- ps: cmake --build . --target ALL_BUILD --config $env:CONFIGURATION
- ps: git clone -q https://github.com/jmckiern/nes-tests.git
- ps: iex "./$env:CONFIGURATION/NES-Emulator.exe --test ../tests/testlist.csv"
- ps: cd ..
# Build main project
- ps: mkdir build
- ps: cd build
- ps: cmake -G"$env:CMAKE_GENERATOR" -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake ..
- ps: cmake --build . --target ALL_BUILD --config $env:CONFIGURATION
- ps: cd ..
after_build:
- ps: 7z a -tzip NES-Emulator_$env:VCPKG_TRIPLET.zip ./build/$env:CONFIGURATION/*
artifacts:
- path: "build/NES-Emulator_$(VCPKG_TRIPLET).zip"
name: NES-Emulator
deploy:
provider: GitHub
description: ""
auth_token:
secure: m3cBOTDVPvla+9ySt/Q2Bt6dYjkOrNPPGc/mH1txvGRRbGK07uLLLlkKDGU/u+BI
on:
APPVEYOR_REPO_TAG: true
artifact: NES-Emulator