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

Commit

Permalink
CI: build & test crates individually
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Nov 3, 2020
1 parent 71db765 commit e06fe4e
Showing 1 changed file with 80 additions and 13 deletions.
93 changes: 80 additions & 13 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
name: CI

jobs:
check:
build:
runs-on: ubuntu-latest
container:
image: ubuntu:20.10
Expand All @@ -19,24 +19,91 @@ jobs:
- "1.40.0"
steps:
- run: apt-get update -y
- run: apt-get install -y libgtk-3-dev libglib2.0-dev libgraphene-1.0-dev git xvfb curl
- run: apt-get install -y libgtk-3-dev libglib2.0-dev libgraphene-1.0-dev git xvfb curl libcairo-gobject2 libcairo2-dev
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
name: "Docs"
with:
command: doc
#- run: xvfb-run --auto-servernum cargo test
- uses: actions-rs/cargo@v1
name: "Build"
with:
command: build
# atk
- name: "atk: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path atk/Cargo.toml --all-features
- name: "atk-sys: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path atk/sys/Cargo.toml --all-features
- name: "atk: build"
run: cargo build --manifest-path atk/Cargo.toml --all-features
# cairo
- name: "cairo: build"
run: cargo build --manifest-path cairo/Cargo.toml --all-features
# gdk
- name: "gdk: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path gdk/Cargo.toml --all-features
- name: "gdk: build"
run: cargo build --manifest-path gdk/Cargo.toml --all-features
# gdk-pixbuf
- name: "gdk-pixbuf: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path gdk-pixbuf/Cargo.toml --all-features
- name: "gdk-pixbuf-sys: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path gdk-pixbuf/sys/Cargo.toml --all-features
- name: "gdk-pixbuf: build"
run: cargo build --manifest-path gdk-pixbuf/Cargo.toml --all-features
# gdkx11
- name: "gdkx11: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path gdkx11/Cargo.toml --all-features
- name: "gdkx11-sys: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path gdkx11/sys/Cargo.toml --all-features
- name: "gdkx11: build"
run: cargo build --manifest-path gdkx11/Cargo.toml --all-features
# gio
- name: "gio: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path gio/Cargo.toml --all-features
- name: "gio: build"
run: cargo build --manifest-path gio/Cargo.toml --all-features
# glib
- name: "glib: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path glib/Cargo.toml --all-features
- name: "glib: build"
run: cargo build --manifest-path glib/Cargo.toml --all-features
# glib-macros
- name: "glib-macros: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path glib-macros/Cargo.toml"
- name: "glib-macros: build"
run: cargo build --manifest-path glib-macros/Cargo.toml"
# graphene
- name: "graphene: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path graphene/Cargo.toml --all-features
- name: "graphene-sys: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path graphene/sys/Cargo.toml --all-features
- name: "graphene: build"
run: cargo build --manifest-path graphene/Cargo.toml --all-features
# gtk
- name: "gtk: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path gtk/Cargo.toml --all-features
- name: "gtk-sys: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path gtk/sys/Cargo.toml --all-features
- name: "gtk: build"
run: cargo build --manifest-path gtk/Cargo.toml --all-features
# pango
- name: "pango: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path pango/Cargo.toml --all-features
- name: "pango-sys: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path pango/sys/Cargo.toml --all-features
- name: "pango: build"
run: cargo build --manifest-path pango/Cargo.toml --all-features
# pangocairo
- name: "pangocairo: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path pangocairo/Cargo.toml --all-features
- name: "pangocairo-sys: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path pangocairo/sys/Cargo.toml --all-features
- name: "pangocairo: build"
run: cargo build --manifest-path pangocairo/Cargo.toml --all-features

# examples
- name: "examples"
run: cargo build --manifest-path examples/Cargo.toml --bins --examples --all-features

- run: git diff -R --exit-code
# - name: Cleanup xvfb pidx
# uses: bcomnes/cleanup-xvfb@v1
- uses: bcomnes/cleanup-xvfb@v1

fmt:
name: rust fmt
Expand Down

0 comments on commit e06fe4e

Please sign in to comment.