-
Notifications
You must be signed in to change notification settings - Fork 1
82 lines (62 loc) · 2.08 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
name: 'Rebol-OpenCV CI'
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
paths:
- src/**
- test.r3
- Rebol-OpenCV.nest
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@v4
- name: Install Siskin Builder
uses: oldes/install-siskin@v0.17.0
- name: Build OpenCV libraries
run: ./siskin Rebol-OpenCV.nest opencv-libraries-x64
- name: Build 64bit Rebol OpenCV extension
run: ./siskin Rebol-OpenCV.nest opencv-windows-x64.rebx
- name: Install Rebol for extension test
uses: oldes/install-rebol@v3.17.0
- name: Test extension
run: ./rebol3.exe test.r3
###############################################################################
# Collecting build artifacts...
- uses: actions/upload-artifact@v4
with:
name: Rebol-OpenCV-Windows-${{github.run_id}}
path: ./build/*
linux:
strategy:
fail-fast: true
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Siskin Builder
uses: oldes/install-siskin@v0.17.0
- name: Build and install OpenCV libraries
run: ./siskin Rebol-OpenCV.nest opencv-libraries
- name: Build 64bit Rebol OpenCV extension
run: ./siskin Rebol-OpenCV.nest -o ./build/opencv-linux-x64.rebx opencv-linux-x64
- name: Install Rebol for extension test
uses: oldes/install-rebol@v3.17.0
- name: Test extension
run: ./rebol3 test.r3
###############################################################################
# Collecting build artifacts...
- name: Compress Rebol/OpenCV extension
run: gzip -9 ./build/opencv-linux-x64.rebx
- uses: actions/upload-artifact@v4
with:
name: Rebol-OpenCV-Linux-${{github.run_id}}
path: ./build/*