FIX: wrap the WebPAnimEncoder
handle so Rebol doesn't try to free it
#8
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-WebP CI' | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [ master ] | |
paths: | |
- src/** | |
- ci-test.r3 | |
- Rebol-WebP.nest | |
pull_request: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
windows: | |
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 WebP libraries | |
run: ./siskin Rebol-WebP.nest libwebp-x64 | |
- name: Build 64bit Rebol WebP extension | |
run: ./siskin Rebol-WebP.nest -o ./build/webp-windows-x64.rebx --msvc webp-windows-x64 | |
- name: Install Rebol for extension test | |
uses: oldes/install-rebol@v3.17.0 | |
with: | |
product: Bulk # used `resize` in tests | |
- name: Test extension | |
run: ./rebol3.exe ci-test.r3 | |
############################################################################### | |
# Collecting build artifacts... | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Rebol-WebP-Windows-${{github.run_id}} | |
path: ./build/*.rebx | |
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 WebP libraries | |
run: ./siskin Rebol-WebP.nest libwebp | |
- name: Build 64bit Rebol WebP extension | |
run: ./siskin Rebol-WebP.nest -o ./build/webp-linux-x64.rebx webp-linux-x64 | |
- name: Setup library location | |
run: | | |
sudo ldconfig /usr/local/lib | |
sudo ldconfig -v | |
ldd -v ./build/webp-linux-x64.rebx | |
- name: Install Rebol for extension test | |
uses: oldes/install-rebol@v3.17.0 | |
with: | |
product: Bulk # used `resize` in tests | |
- name: Test extension | |
run: ./rebol3 ci-test.r3 | |
############################################################################### | |
# Collecting build artifacts... | |
- name: Compress Rebol/WebP extension | |
run: gzip -9 ./build/webp-linux-x64.rebx | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Rebol-WebP-Linux-${{github.run_id}} | |
path: ./build/* | |
macos: | |
strategy: | |
fail-fast: true | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Siskin Builder | |
uses: oldes/install-siskin@v0.17.0 | |
- name: Build and install WebP libraries | |
run: ./siskin Rebol-WebP.nest libwebp | |
- name: Build 64bit Rebol WebP extension | |
run: ./siskin Rebol-WebP.nest -o ./build/webp-macos-x64.rebx webp-macos-x64 | |
- name: Install Rebol for extension test | |
uses: oldes/install-rebol@v3.17.0 | |
with: | |
product: Bulk # used `resize` in tests | |
- name: Test extension | |
run: ./rebol3 ci-test.r3 | |
############################################################################### | |
# Collecting build artifacts... | |
- name: Compress Rebol/WebP extension | |
run: gzip -9 ./build/webp-macos-x64.rebx | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Rebol-WebP-macOS-${{github.run_id}} | |
path: ./build/* |