Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

[DRAFT] Port to vello and winit #56

Merged
merged 21 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[target.'cfg(all())']
# TODO - Replace with Cargo.toml config
rustflags = [
# Global lints/warnings.
# We do this here instead of in the crate root because we want to apply
Expand Down
73 changes: 5 additions & 68 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,77 +58,14 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --features=x11 --no-default-features
args: --all-targets --no-default-features

# We use --all-targets to skip doc tests; we run them in a parallel task
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-targets --no-default-features --features=svg,image,x11

# we test the gtk backend as a separate job because gtk install takes
# a long time.
test-stable-gtk:
runs-on: ubuntu-latest
name: cargo test (gtk)
steps:
- uses: actions/checkout@v2

- name: install libgtk-3-dev
run: |
sudo apt update
sudo apt install libgtk-3-dev

- name: install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: restore cache
uses: Swatinem/rust-cache@v2

# We use --all-targets to skip doc tests; there are no gtk-specific
# doctests in masonry anyway
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-targets --features=svg,image

test-stable-wasm:
runs-on: macOS-latest
name: cargo test (wasm32)
steps:
- uses: actions/checkout@v2

- name: install wasm-pack
uses: jetli/[email protected]
with:
version: latest

- name: install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
components: clippy
profile: minimal
override: true

- name: restore cache
uses: Swatinem/rust-cache@v2

# We use --all-targets to skip doc tests; there are no wasm-specific
# doctests in masonry anyway
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
# TODO: Add svg feature when it's no longer broken with wasm
args: --all-targets --features=image --no-run --target wasm32-unknown-unknown
args: --all-targets --no-default-features

doctest-stable:
runs-on: macOS-latest
Expand All @@ -150,7 +87,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: --doc --no-default-features --features=svg,image
args: --doc --no-default-features

# This tests the future rust compiler to catch errors ahead of time without
# breaking CI
Expand Down Expand Up @@ -178,12 +115,12 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: check
args: --no-default-features --features=x11
args: --no-default-features
continue-on-error: true

- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --no-default-features --features=x11,svg,image
args: --all-targets --no-default-features
continue-on-error: true
Loading
Loading