-
Notifications
You must be signed in to change notification settings - Fork 0
134 lines (100 loc) · 4.01 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
name: 'Rebol-Triangulate CI'
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
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/install-siskin@v0.7.1
- name: Build 64bit Rebol Triangulate extension
run: ./siskin Rebol-Triangulate.nest --msvc %triangulate-x64
- name: Prepare 64bit Rebol Triangulate extension
run: COPY .\msvc\Release-x64\triangulate-x64.dll triangulate-windows-x64.rebx
- name: Build 32bit Rebol Triangulate extension
run: ./siskin Rebol-Triangulate.nest --msvc %triangulate-x86
- name: Prepare 32bit Rebol Triangulate extension
run: COPY .\msvc\Release-Win32\triangulate-x86.dll triangulate-windows-x86.rebx
- name: Install Rebol for extension test
uses: oldes/install-rebol@v3.16.0
- name: Test Triangulate extension
run: ./rebol3 test/triangulate-test.r3
# - name: Test image triangulation
# run: ./rebol3 test/triangulate-image.r3
###############################################################################
# Collecting build artifacts...
- uses: actions/upload-artifact@v3
with:
name: Rebol-Triangulate-CI-${{github.run_id}}
path: ./triangulate-windows-x64.rebx
- uses: actions/upload-artifact@v2
with:
name: Rebol-Triangulate-CI-${{github.run_id}}
path: ./triangulate-windows-x86.rebx
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/install-siskin@v0.7.1
# - name: Build 32bit Rebol Triangulate extension
# run: ./siskin Rebol-Triangulate.nest [%triangulate-linux-x86]
- name: Build 64bit Rebol Triangulate extension
run: ./siskin Rebol-Triangulate.nest %triangulate-x64
# - name: Prepare 32bit Rebol Triangulate extension
# run: |
# mv .\build\triangulate-linux-x86.so triangulate-linux-x86.rebx
# gzip -9 ./triangulate-linux-x86.rebx
- name: Prepare 64bit Rebol Triangulate extension
run: mv ./build/triangulate-x64.so triangulate-linux-x64.rebx
- name: Install Rebol for extension test
uses: oldes/install-rebol@v3.16.0
- name: Test Triangulate extension
run: ./rebol3 test/triangulate-test.r3
# - name: Test image triangulation
# run: ./rebol3 test/triangulate-image.r3
- name: Compress 64bit Rebol Triangulate extension
run: gzip -9 ./triangulate-linux-x64.rebx
- uses: actions/upload-artifact@v3
with:
name: Rebol-Triangulate-CI-${{github.run_id}}
path: ./triangulate-linux-*
macos:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Siskin Builder
uses: oldes/install-siskin@v0.7.1
- name: Build 64bit Rebol Triangulate extension
run: ./siskin Rebol-Triangulate.nest %triangulate-x64
- name: Prepare 64bit Rebol Triangulate extension
run: mv ./build/triangulate-x64.dylib triangulate-macos-x64.rebx
- name: Install Rebol for extension test
uses: oldes/install-rebol@v3.16.0
- name: Test Triangulate extension
run: ./rebol3 test/triangulate-test.r3
# - name: Test image triangulation
# run: ./rebol3 test/triangulate-image.r3
- name: Compress 64bit Rebol Triangulate extension
run: gzip -9 ./triangulate-macos-x64.rebx
- uses: actions/upload-artifact@v3
with:
name: Rebol-Triangulate-CI-${{github.run_id}}
path: ./triangulate-macos-*