forked from wren-lang/wren-cli
-
Notifications
You must be signed in to change notification settings - Fork 6
97 lines (92 loc) · 2.71 KB
/
ci.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Build & CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build_and_test_windows:
runs-on: windows-2019
steps:
- name: Checkout wren-console
uses: actions/checkout@v2
- name: Pin dependencies
shell: bash
run: |
cat WREN_ESSENTIALS >> $GITHUB_ENV
- name: Checkout wren-essentials
uses: actions/checkout@v2
with:
repository: joshgoebel/wren-essentials
path: deps/wren-essentials
ref: ${{env.WREN_ESSENTIALS}}
- name: build
run: |
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\"
dir $Env:GITHUB_WORKSPACE
.\MSBuild.exe $Env:GITHUB_WORKSPACE\projects\vs2019\wrenc.vcxproj /p:Configuration="Debug 64bit" /p:Platform="x64"
cd $Env:GITHUB_WORKSPACE
dir $Env:GITHUB_WORKSPACE
.\bin\wrenc_d.exe package.wren install
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: wrenc-windows
path: |
bin/wrenc_d.exe
- name: test
run: |
cd $Env:GITHUB_WORKSPACE
python3 .\util\test.py --suffix=_d
build_and_test_mac:
runs-on: macos-10.15
steps:
- name: Checkout wren-console
uses: actions/checkout@v2
- name: Pin dependencies
run: |
cat WREN_ESSENTIALS >> $GITHUB_ENV
- name: Checkout wren-essentials
uses: actions/checkout@v2
with:
repository: joshgoebel/wren-essentials
path: deps/wren-essentials
ref: ${{env.WREN_ESSENTIALS}}
- name: build & test
run: |
make -j8 -C projects/make.mac/
./bin/wrenc package.wren install
python3 ./util/test.py
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: wrenc-mac
path: |
bin/wrenc
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout wren-console
uses: actions/checkout@v2
- name: Pin dependencies
run: |
cat WREN_ESSENTIALS >> $GITHUB_ENV
- name: Checkout wren-essentials
uses: actions/checkout@v2
with:
repository: joshgoebel/wren-essentials
path: deps/wren-essentials
ref: ${{env.WREN_ESSENTIALS}}
- name: build & test
run: |
make -j8 -C projects/make/
./bin/wrenc package.wren install
python3 ./util/test.py
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: wrenc-linux
path: |
bin/wrenc