forked from pharo-project/pharo-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
121 lines (106 loc) · 3.96 KB
/
continuous-integration-workflow.yaml
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: Continuous integration
on: [push, pull_request]
jobs:
build-unixes:
name: Build Unixes
runs-on: ${{ matrix.variant.os }}
strategy:
matrix:
variant:
- os: ubuntu-18.04
appname: Pharo
vmExecutable: pharo
- os: macos-latest
appname: Pharo
vmExecutable: Pharo
env:
APPNAME: ${{matrix.variant.appname}}
VM_EXECUTABLE_NAME: ${{ matrix.variant.vmExecutable }}
CC: clang
CXX: clang++
steps:
- name: Install dependencies (Linux)
if: matrix.variant.os == 'ubuntu-18.04'
run: sudo apt-get install uuid-dev
- name: Install dependencies (OS X)
if: matrix.variant.os == 'macos-latest'
run: brew install autoconf automake libtool
- uses: actions/checkout@v1
- name: CMake configuration
run: |
mkdir -p build
cd build
cmake .. -DAPPNAME=$APPNAME -DVM_EXECUTABLE_NAME=$VM_EXECUTABLE_NAME
- name: make
run: cd build && make
- name: make install
run: cd build && make install
- name: Package artifacts
run: |
cd build
make package
mkdir -p ../artifacts
cp -f build/packages/*.zip build/packages/*.sha1 ../artifacts
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: build-artifacts
path: artifacts
- name: Run tests
continue-on-error: true
run: scripts/runTests.sh
- name: Upload test results
continue-on-error: true
uses: actions/upload-artifact@v1
with:
name: test-results
path: test-results
build-windows-cygwin:
name: Build Windows Cygwin
runs-on: windows-2016
strategy:
matrix:
variant:
- appname: Pharo
vmExecutable: Pharo
env:
APPNAME: ${{matrix.variant.appname}}
VM_EXECUTABLE_NAME: ${{ matrix.variant.vmExecutable }}
steps:
- uses: actions/checkout@v1
- name: Install Cygwin
run: .\scripts\installCygwin.ps1 "setup-x86_64.exe" x86_64
- name: CMake configuration
run: |
mkdir -p build
cd build
cmake .. -DAPPNAME=$APPNAME -DVM_EXECUTABLE_NAME=$VM_EXECUTABLE_NAME
shell: pwsh.exe -File .\scripts\runScriptInCygwinBash.ps1 {0}
- name: make
run: cd build && make
shell: pwsh.exe -File .\scripts\runScriptInCygwinBash.ps1 {0}
- name: make install
run: cd build && make install
shell: pwsh.exe -File .\scripts\runScriptInCygwinBash.ps1 {0}
- name: Package artifacts
run: |
cd build
make package
mkdir -p ../artifacts
cp -f build/packages/*.zip build/packages/*.sha1 ../artifacts
shell: pwsh.exe -File .\scripts\runScriptInCygwinBash.ps1 {0}
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: build-artifacts
path: artifacts
- name: Run tests
continue-on-error: true
run: scripts/runTests.sh
shell: pwsh.exe -File .\scripts\runScriptInCygwinBash.ps1 {0}
- name: Upload test results
continue-on-error: true
uses: actions/upload-artifact@v1
with:
name: test-results
path: test-results