forked from ArkScript-lang/Ark
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (58 loc) · 1.65 KB
/
Copy pathmsvc.yml
File metadata and controls
70 lines (58 loc) · 1.65 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: "CMake - MSVC"
on:
push:
branches: [dev]
pull_request:
branches: [dev]
env:
BUILD_TYPE: Release
CC: cl
CXX: cl
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
config:
- {
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Configure CMake Ark
shell: bash
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX -DARK_BUILD_EXE=On -DARK_BUILD_MODULES=On -DARK_MOD_ALL=On
- name: Configure CMake Integration tests
shell: bash
run: |
cd tests/cpp
cmake -Bbuild -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX
- name: Build Ark
shell: bash
run: |
cmake --build build --config $BUILD_TYPE
- name: Build Integration tests
shell: bash
run: |
cd tests/cpp
cmake --build build --config $BUILD_TYPE
- name: Tests
shell: bash
run: bash .github/launch-tests
- name: Organize files for upload
shell: bash
run: |
mkdir -p artifact/lib
cp build/$BUILD_TYPE/ark.exe artifact
cp build/$BUILD_TYPE/ArkReactor.lib artifact
cp lib/*.arkm artifact/lib
cp -r lib/std/ artifact/lib
rm -rf artifact/lib/std/{.git,.github,tests/__arkscript__}
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ark-windows-msvc-version
path: artifact