Skip to content

TEST: change modules directory to the test folder #51

TEST: change modules directory to the test folder

TEST: change modules directory to the test folder #51

Workflow file for this run

name: 'Rebol-Blend2D 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@v4
- name: Install Siskin Builder
uses: oldes/install-siskin@v0.17.0
- name: Build 64bit static Blend2d library
run: ./siskin Rebol-Blend2D.nest static-lib-x64
- name: Build 64bit Rebol Blend2d extension
run: ./siskin Rebol-Blend2D.nest --msvc blend2d-windows-x64
- name: Prepare 64bit Rebol Blend2d extension
run: COPY .\msvc\Release-x64\blend2d-windows-x64.dll .\test\blend2d-windows-x64.rebx
- name: Install Rebol for extension test
uses: oldes/install-rebol@v3.16.0
with:
product: Bulk # premultiply is not part of Core in this version
- name: Test extension
run: ./rebol3.exe test/test.r3
###############################################################################
# Collecting build artifacts...
- uses: actions/upload-artifact@v3
with:
name: Rebol-Blend2D-CI-${{github.run_id}}
path: ./test/blend2d-windows-x64.rebx
- uses: actions/upload-artifact@v3
with:
name: Rebol-Blend2D-CI-${{github.run_id}}-test-results-windows-x64
path: ./test/test-result*
macos:
runs-on: macos-12
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Siskin Builder
uses: oldes/install-siskin@v0.17.0
- name: Build 64bit static Blend2d library
run: ./siskin Rebol-Blend2D.nest static-lib-x64
- name: Build 64bit Rebol Blend2d extension
run: ./siskin Rebol-Blend2D.nest blend2d-macos-x64
- name: Prepare 64bit Rebol Blend2d extension
run: mv ./build/blend2d-macos-x64.dylib ./test/blend2d-macos-x64.rebx
- name: Install Rebol for extension test
uses: oldes/install-rebol@v3.16.0
with:
product: Bulk # premultiply is not part of Core in this version
- name: Test extension
run: ./rebol3 test/test.r3
- name: Compress 64bit Rebol Blend2d extension
run: gzip -9 ./test/blend2d-macos-x64.rebx
###############################################################################
# Collecting build artifacts...
- uses: actions/upload-artifact@v3
with:
name: Rebol-Blend2D-CI-${{github.run_id}}
path: ./test/blend2d-macos-x64.rebx.gz
- uses: actions/upload-artifact@v3
with:
name: Rebol-Blend2D-CI-${{github.run_id}}-test-results-macos-x64
path: ./test/test-result*
linux:
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 64bit static Blend2d library
run: ./siskin Rebol-Blend2D.nest static-lib-x64
- name: Build 64bit Rebol Blend2d extension
run: ./siskin Rebol-Blend2D.nest blend2d-linux-x64
- name: Prepare 64bit Rebol Blend2d extension
run: mv ./build/blend2d-linux-x64.so ./test/blend2d-linux-x64.rebx
- name: Install Rebol for extension test
uses: oldes/install-rebol@v3.16.0
with:
product: Bulk # premultiply is not part of Core in this version
- name: Test extension
run: ./rebol3 test/test.r3
- name: Compress 64bit Rebol Blend2d extension
run: gzip -9 ./test/blend2d-linux-x64.rebx
###############################################################################
# Collecting build artifacts...
- uses: actions/upload-artifact@v3
with:
name: Rebol-Blend2D-CI-${{github.run_id}}
path: ./test/blend2d-linux-x64.rebx.gz
- uses: actions/upload-artifact@v3
with:
name: Rebol-Blend2D-CI-${{github.run_id}}-test-results-linux-x64
path: ./test/test-result*