Skip to content

Commit

Permalink
CI test for 0.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Sep 19, 2024
1 parent 4512a2c commit 49c5a3b
Show file tree
Hide file tree
Showing 71 changed files with 707 additions and 482 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Linux

on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:

jobs:
raku:
strategy:
matrix:
os:
- ubuntu-latest
raku-version:
- 'latest'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: Raku/setup-raku@v1
with:
raku-version: ${{ matrix.raku-version }}
- name: Update apt-get
run: sudo apt-get update -qq
- name: Install GD
run: sudo apt-get install -y libgd3
- name: Run Special Tests
run: raku run-tests -i
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# vim swp files
*.swp
.precomp
.precomp/
/GD-Raw-*
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Revision history for GD::Raw

{{$NEXT}}
- Initial version in the zef ecosystem
35 changes: 24 additions & 11 deletions META6.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
{
"perl" : "6.*",
"name" : "GD::Raw",
"license" : "Artistic-2.0",
"version" : "0.2",
"description" : "Low level language bindings to GD Graphics Library",
"provides" : {
"GD::Raw" : "lib/GD/Raw.pm"
},
"author" : "Dagur Valberg Johannsson",
"depends" : [ ],
"source-url" : "git://github.com/dagurval/perl6-gd-raw.git"
"auth": "zef:raku-community-modules",
"authors": [
"Dagur Valberg Johannsson",
"Raku Community"
],
"build-depends": [
],
"depends": [
],
"description": "Low level language bindings to GD Graphics Library",
"license": "Artistic-2.0",
"name": "GD::Raw",
"perl": "6.*",
"provides": {
"GD::Raw": "lib/GD/Raw.rakumod"
},
"resources": [
],
"source-url": "https://github.com/raku-community-modules/GD-Raw.git",
"tags": [ "GD", "IMAGE"
],
"test-depends": [
],
"version": "0.3"
}
34 changes: 27 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Actions Status](https://github.com/raku-community-modules/GD-Raw/actions/workflows/test.yml/badge.svg)](https://github.com/raku-community-modules/GD-Raw/actions)

NAME
====

Expand All @@ -6,18 +8,36 @@ GD::Raw - Low level language bindings to GD Graphics Library
SYNOPSIS
========

use GD::Raw;

my $fh = fopen("my-image.png", "rb");
my $img = gdImageCreateFromPng($fh);
```raku
use GD::Raw;

say "Image resolution is ", gdImageSX($img), "x", gdImageSX($img);
my $fh = fopen("my-image.png", "rb");
my $img = gdImageCreateFromPng($fh);
LEAVE gdImageDestroy($_) with $img;

gdImageDestroy($img);
say "Image resolution is ", gdImageSX($img), "x", gdImageSX($img);
```

DESCRIPTION
===========

`GD::Raw` is a low level language bindings to LibGD. It does not attempt to provide you with an perlish interface, but tries to stay as close to it's C origin as possible.
`GD::Raw` is a low level language bindings to LibGD. It does not attempt to provide you with an rakuish interface, but tries to stay as close to its `C` origin as possible.

LibGD is large and this module far from covers it all. Feel free to add anything your missing and submit a pull request!

AUTHORS
=======

* Dagur Valberg Johannsson

* Raku Community

COPYRIGHT AND LICENSE
=====================

Copyright 2013 - 2018 Dagur Valberg Johannsson

Copyright 2024 Raku Community

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

31 changes: 0 additions & 31 deletions README.pod

This file was deleted.

9 changes: 9 additions & 0 deletions dist.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name = GD::Raw

[ReadmeFromPod]
filename = lib/GD/Raw.rakumod

[UploadToZef]

[Badges]
provider = github-actions/linux.yml
Loading

0 comments on commit 49c5a3b

Please sign in to comment.