TEST: fixed path to modules directory on Linux #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |