forked from rebolsource/r3
-
-
Notifications
You must be signed in to change notification settings - Fork 9
149 lines (114 loc) · 4.68 KB
/
main.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
name: 'Rebol CI'
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
paths:
- make/**
- src/**
- .github/workflows/main.yml
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
#workflow_dispatch:
jobs:
windows:
strategy:
fail-fast: true
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Siskin Builder
uses: oldes/[email protected]
- name: Build 64bit Rebol/Bulk using MSVC
run: ./siskin.exe make/rebol3.nest --msvc %rebol3-bulk-windows-x64
- name: Prepare 64bit Rebol/Bulk for upload
run: MOVE ./msvc/Release-x64/rebol3-bulk-windows-x64.exe ./rebol3-bulk-windows-x64.exe
- name: Build 64bit test extension using MSVC
run: ./siskin.exe make/rebol3.nest --msvc %test-x64.rebx
- name: Prepare 64bit test extension
run: MOVE ./msvc/Release-x64/test-x64.rebx.dll ./test-x64.rebx
- name: Test 64bit Rebol/Bulk
run: ./rebol3-bulk-windows-x64.exe -s ./src/tests/run-tests.r3
- name: Test Rebol/SQLite extension
run: ./rebol3-bulk-windows-x64.exe -s ./src/tests/test-extension-sqlite.r3
- name: Test Rebol/Blend2D extension
run: ./rebol3-bulk-windows-x64.exe -s ./src/tests/test-extension-blend2d.r3
- name: Test Rebol/Triangulate extension
run: ./rebol3-bulk-windows-x64.exe -s ./src/tests/test-extension-triangulate.r3
###############################################################################
# Collecting build artifacts...
- uses: actions/upload-artifact@v3
with:
name: Rebol-CI-${{github.run_id}}
path: ./rebol3-*.exe
linux:
strategy:
fail-fast: true
matrix:
os: [ubuntu-20.04]
#os: [ubuntu-20.04, ubuntu-18.04]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Siskin Builder
uses: oldes/[email protected]
- name: Build 64bit Rebol/Bulk using gcc
run: ./siskin make/rebol3.nest %rebol3-bulk-linux-x64
- name: Build 64bit test extension using gcc
run: |
./siskin make/rebol3.nest %test-x64.rebx
cp ./build/test-x64.rebx ./src/tests/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/$PWD/src/tests/
- name: Test 64bit Rebol/Bulk
run: ./build/rebol3-bulk-linux-x64 -s ./src/tests/run-tests.r3
- name: Test Rebol/SQLite extension
run: ./build/rebol3-bulk-linux-x64 -s ./src/tests/test-extension-sqlite.r3
- name: Test Rebol/Blend2D extension
run: ./build/rebol3-bulk-linux-x64 -s ./src/tests/test-extension-blend2d.r3
- name: Test Rebol/Triangulate extension
run: ./build/rebol3-bulk-linux-x64 -s ./src/tests/test-extension-triangulate.r3
- name: Prepare 64bit Rebol/Bulk for upload
run: |
mv ./build/rebol3-bulk-linux-x64 ./rebol3-bulk-linux-x64
gzip -9 ./rebol3-bulk-linux-x64
#- name: Build 64bit Rebol/Bulk using clang
# run: |
# ./siskin make/rebol3.nest %rebol3-bulk-x64-libc-clang
# mv ./build/rebol3-bulk-x64-libc-clang ./rebol3-bulk-x64-libc-clang
# gzip -9 ./rebol3-bulk-x64-libc-clang
- uses: actions/upload-artifact@v3
with:
name: Rebol-CI-${{github.run_id}}
path: ./rebol3-*.gz
macos:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Siskin Builder
uses: oldes/[email protected]
- name: Build 64bit Rebol/Bulk using clang
run: ./siskin make/rebol3.nest %rebol3-bulk-macos-x64
- name: Build 64bit test extension
run: |
./siskin make/rebol3.nest %test-x64.rebx
cp ./build/test-x64.rebx ./src/tests/
- name: Test 64bit Rebol/Bulk
run: ./build/rebol3-bulk-macos-x64 -s ./src/tests/run-tests.r3
- name: Test Rebol/SQLite extension
run: ./build/rebol3-bulk-macos-x64 -s ./src/tests/test-extension-sqlite.r3
- name: Test Rebol/Blend2D extension
run: ./build/rebol3-bulk-macos-x64 -s ./src/tests/test-extension-blend2d.r3
- name: Test Rebol/Triangulate extension
run: ./build/rebol3-bulk-macos-x64 -s ./src/tests/test-extension-triangulate.r3
- name: Prepare 64bit Rebol/Bulk for upload
run: |
mv ./build/rebol3-bulk-macos-x64 ./rebol3-bulk-macos-x64
gzip -9 ./rebol3-bulk-macos-x64
- uses: actions/upload-artifact@v3
with:
name: Rebol-CI-${{github.run_id}}
path: ./rebol3-*.gz