diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9427716..064e468 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/README.md b/README.md index ff827ea..d2779e1 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/src/pixie/fontformats/opentype.nim b/src/pixie/fontformats/opentype.nim index 84d7f34..bb38f6e 100644 --- a/src/pixie/fontformats/opentype.nim +++ b/src/pixie/fontformats/opentype.nim @@ -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/ diff --git a/tests/all.nim b/tests/all.nim new file mode 100644 index 0000000..1a4e9f1 --- /dev/null +++ b/tests/all.nim @@ -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 diff --git a/tests/images/context/clearRect_1.png b/tests/images/context/clearRect_1.png index 994056e..80156ec 100644 Binary files a/tests/images/context/clearRect_1.png and b/tests/images/context/clearRect_1.png differ