Skip to content

Commit

Permalink
CI changes to add coregraphics
Browse files Browse the repository at this point in the history
  • Loading branch information
raphlinus committed Apr 28, 2020
1 parent 1d9f714 commit a167f50
Showing 1 changed file with 29 additions and 8 deletions.
37 changes: 29 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,22 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-targets --exclude piet-cairo -- -D warnings
args: --workspace --all-targets --exclude piet-cairo --exclude piet-coregraphics -- -D warnings
if: contains(matrix.os, 'windows')

- name: cargo clippy (not windows)
- name: cargo clippy (mac)
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-targets --exclude piet-direct2d -- -D warnings
if: contains(matrix.os, 'windows') != true
if: contains(matrix.os, 'macOS')

- name: cargo clippy (linux)
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-targets --exclude piet-direct2d --exclude piet-coregraphics -- -D warnings
if: contains(matrix.os, 'ubuntu')

- name: cargo test (windows)
uses: actions-rs/cargo@v1
Expand All @@ -81,7 +88,14 @@ jobs:
with:
command: test
args: --workspace --exclude piet-direct2d
if: contains(matrix.os, 'windows') != true
if: contains(matrix.os, 'macOS')

- name: cargo test (not windows)
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --exclude piet-direct2d --exclude piet-coregraphics
if: contains(matrix.os, 'ubuntu')

test-stable-wasm:
runs-on: ${{ matrix.os }}
Expand All @@ -105,13 +119,13 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-targets --exclude piet-cairo --exclude piet-direct2d --target wasm32-unknown-unknown -- -D warnings
args: --workspace --all-targets --exclude piet-cairo --exclude piet-direct2d --exclude piet-coregraphics --target wasm32-unknown-unknown -- -D warnings

- name: cargo test compile
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --exclude piet-cairo --exclude piet-direct2d --no-run --target wasm32-unknown-unknown
args: --workspace --exclude piet-cairo --exclude piet-direct2d --exclude piet-coregraphics --no-run --target wasm32-unknown-unknown

test-nightly:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -146,12 +160,19 @@ jobs:
args: --workspace --exclude piet-cairo
if: contains(matrix.os, 'windows')

- name: cargo test (not windows)
- name: cargo test (mac)
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --exclude piet-direct2d
if: contains(matrix.os, 'windows') != true
if: contains(matrix.os, 'macOS')

- name: cargo test (linux)
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --exclude piet-direct2d --exclude piet-coregraphics
if: contains(matrix.os, 'ubuntu')

check-docs:
name: Docs
Expand Down

0 comments on commit a167f50

Please sign in to comment.