improve github actions

This commit is contained in:
Ryan Oldenburg 2021-06-02 23:58:39 -05:00
parent ebae5e79f2
commit 4096ed585a
5 changed files with 16 additions and 22 deletions

View file

@ -1,26 +1,17 @@
name: Run tests
name: Github Actions
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Cache choosenim
id: cache-choosenim
uses: actions/cache@v1
with:
path: ~/.choosenim
key: ${{ runner.os }}-choosenim-stable
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v1
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-stable
- uses: actions/checkout@v2
- uses: jiro4989/setup-nim-action@v1
- run: nimble test -y
- run: nimble test -d:release -y
- run: nimble test --gc:orc -d:release -y
- run: nim cpp -d:release -r tests/all.nim

View file

@ -8,6 +8,8 @@ This library is being actively developed and we'd be happy for you to use it.
`nimble install pixie`
![Github Actions](https://github.com/treeform/pixie/workflows/Github%20Actions/badge.svg)
Features:
* Typesetting and rasterizing text, including styled rich text via spans.
* Drawing paths, shapes and curves with even-odd and non-zero windings.

View file

@ -1,5 +1,4 @@
import flatty/binny, math, pixie/common, pixie/paths, sets, tables,
unicode, vmath
import flatty/binny, math, pixie/common, pixie/paths, sets, tables, unicode, vmath
## See https://docs.microsoft.com/en-us/typography/opentype/spec/

2
tests/all.nim Normal file
View file

@ -0,0 +1,2 @@
import test_bmp, test_context, test_fonts, test_gif, test_images,
test_images_draw, test_jpg, test_masks, test_paints, test_paths, test_png, test_svg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB