From 544fe4acdd20f5f701ea7799599ec53d899452fb Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Wed, 14 Apr 2021 16:26:00 +0200 Subject: [PATCH 1/2] Make backend testing more granular in CI This removes the old `cargo check examples` job in favour of adding a unique job for each backend. This should make it easier to spot backend-specific issues, and will allow to better keep track of known problems with specific backends without accidentally letting new problems slide in. --- .github/workflows/conrod.yml | 90 ++++++++++++++++++++++++++++++++++-- 1 file changed, 85 insertions(+), 5 deletions(-) diff --git a/.github/workflows/conrod.yml b/.github/workflows/conrod.yml index f49c7d1c5..1fd9569bc 100644 --- a/.github/workflows/conrod.yml +++ b/.github/workflows/conrod.yml @@ -18,7 +18,7 @@ jobs: command: fmt args: --all -- --check - cargo-test: + cargo-test-core: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -36,14 +36,14 @@ jobs: uses: actions-rs/cargo@v1 with: command: test - args: --lib --bins --verbose + args: -p conrod_core --verbose - name: Test docs uses: actions-rs/cargo@v1 with: command: test - args: --doc --verbose + args: -p conrod_core --doc --verbose - cargo-check-examples: + cargo-check-gfx: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -61,7 +61,87 @@ jobs: uses: actions-rs/cargo@v1 with: command: check - args: --examples --verbose + args: -p conrod_gfx --examples --verbose + + cargo-check-glium: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Update apt + run: sudo apt update + - name: Install libxcb dev tools + run: sudo apt-get install libxcb-composite0-dev + - name: Install stable + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Run check + uses: actions-rs/cargo@v1 + with: + command: check + args: -p conrod_glium --examples --verbose + + cargo-check-piston: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Update apt + run: sudo apt update + - name: Install libxcb dev tools + run: sudo apt-get install libxcb-composite0-dev + - name: Install stable + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Run check + uses: actions-rs/cargo@v1 + with: + command: check + args: -p conrod_piston --examples --verbose + + cargo-check-rendy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Update apt + run: sudo apt update + - name: Install libxcb dev tools + run: sudo apt-get install libxcb-composite0-dev + - name: Install stable + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Run check + uses: actions-rs/cargo@v1 + with: + command: check + args: -p conrod_rendy --examples --verbose + + cargo-check-wgpu: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Update apt + run: sudo apt update + - name: Install libxcb dev tools + run: sudo apt-get install libxcb-composite0-dev + - name: Install stable + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Run check + uses: actions-rs/cargo@v1 + with: + command: check + args: -p conrod_wgpu --examples --verbose cargo-publish: if: github.event_name == 'push' && github.ref == 'refs/heads/master' From 5bda3e48be2d42f639a0d0257185c31e6709702f Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Wed, 14 Apr 2021 16:31:05 +0200 Subject: [PATCH 2/2] Add missing job for conrod_vulkano backend --- .github/workflows/conrod.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/conrod.yml b/.github/workflows/conrod.yml index 1fd9569bc..06007ac03 100644 --- a/.github/workflows/conrod.yml +++ b/.github/workflows/conrod.yml @@ -123,6 +123,26 @@ jobs: command: check args: -p conrod_rendy --examples --verbose + cargo-check-vulkano: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Update apt + run: sudo apt update + - name: Install libxcb dev tools + run: sudo apt-get install libxcb-composite0-dev + - name: Install stable + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Run check + uses: actions-rs/cargo@v1 + with: + command: check + args: -p conrod_vulkano --examples --verbose + cargo-check-wgpu: runs-on: ubuntu-latest steps: