This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
771 additions
and
2,394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macOS-latest, windows-2019, ubuntu-latest] | ||
os: [macOS-latest, windows-2019] | ||
name: cargo clippy+test | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -56,7 +56,7 @@ jobs: | |
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --manifest-path=Cargo.toml --all-targets --features=x11,raw-win-handle --no-default-features -- -D warnings | ||
args: --manifest-path=Cargo.toml --all-targets --features=x11 --no-default-features -- -D warnings | ||
|
||
# Test packages in deeper-to-higher dependency order | ||
- name: cargo test glazier | ||
|
@@ -65,113 +65,113 @@ jobs: | |
command: test | ||
args: --manifest-path=Cargo.toml --no-default-features --features=x11 | ||
|
||
# we test the wayland backend as a separate job | ||
test-stable-wayland: | ||
runs-on: ubuntu-latest | ||
name: cargo clippy+test (wayland) | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: install wayland | ||
run: | | ||
sudo apt update | ||
sudo apt install libwayland-dev libpango1.0-dev libxkbcommon-dev | ||
- name: install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
components: clippy | ||
profile: minimal | ||
override: true | ||
|
||
- name: restore cache | ||
uses: Swatinem/rust-cache@v1 | ||
|
||
- name: cargo clippy glazier | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --manifest-path=Cargo.toml --all-targets --features=wayland,raw-win-handle --no-default-features -- -D warnings | ||
|
||
- name: cargo test glazier | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --manifest-path=Cargo.toml --features wayland --no-default-features | ||
|
||
# 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 clippy+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 | ||
components: clippy | ||
profile: minimal | ||
override: true | ||
|
||
- name: restore cache | ||
uses: Swatinem/rust-cache@v1 | ||
|
||
- name: cargo clippy glazier | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --manifest-path=Cargo.toml --all-targets --features=raw-win-handle -- -D warnings | ||
|
||
- name: cargo test glazier | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --manifest-path=Cargo.toml | ||
|
||
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@v1 | ||
|
||
- name: cargo clippy glazier (wasm) | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --manifest-path=Cargo.toml --all-targets --target wasm32-unknown-unknown -- -D warnings | ||
|
||
# Test wasm32 relevant packages in deeper-to-higher dependency order | ||
# TODO: Find a way to make tests work. Until then the tests are merely compiled. | ||
- name: cargo test compile glazier | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --manifest-path=Cargo.toml --no-run --target wasm32-unknown-unknown | ||
# # we test the wayland backend as a separate job | ||
# test-stable-wayland: | ||
# runs-on: ubuntu-latest | ||
# name: cargo clippy+test (wayland) | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# | ||
# - name: install wayland | ||
# run: | | ||
# sudo apt update | ||
# sudo apt install libwayland-dev libpango1.0-dev libxkbcommon-dev | ||
# | ||
# - name: install stable toolchain | ||
# uses: actions-rs/toolchain@v1 | ||
# with: | ||
# toolchain: stable | ||
# components: clippy | ||
# profile: minimal | ||
# override: true | ||
# | ||
# - name: restore cache | ||
# uses: Swatinem/rust-cache@v1 | ||
# | ||
# - name: cargo clippy glazier | ||
# uses: actions-rs/cargo@v1 | ||
# with: | ||
# command: clippy | ||
# args: --manifest-path=Cargo.toml --all-targets --features=wayland --no-default-features -- -D warnings | ||
# | ||
# - name: cargo test glazier | ||
# uses: actions-rs/cargo@v1 | ||
# with: | ||
# command: test | ||
# args: --manifest-path=Cargo.toml --features wayland --no-default-features | ||
# | ||
# # 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 clippy+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 | ||
# components: clippy | ||
# profile: minimal | ||
# override: true | ||
# | ||
# - name: restore cache | ||
# uses: Swatinem/rust-cache@v1 | ||
# | ||
# - name: cargo clippy glazier | ||
# uses: actions-rs/cargo@v1 | ||
# with: | ||
# command: clippy | ||
# args: --manifest-path=Cargo.toml --all-targets -- -D warnings | ||
# | ||
# - name: cargo test glazier | ||
# uses: actions-rs/cargo@v1 | ||
# with: | ||
# command: test | ||
# args: --manifest-path=Cargo.toml | ||
|
||
# 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@v1 | ||
# | ||
# - name: cargo clippy glazier (wasm) | ||
# uses: actions-rs/cargo@v1 | ||
# with: | ||
# command: clippy | ||
# args: --manifest-path=Cargo.toml --all-targets --target wasm32-unknown-unknown -- -D warnings | ||
# | ||
# # Test wasm32 relevant packages in deeper-to-higher dependency order | ||
# # TODO: Find a way to make tests work. Until then the tests are merely compiled. | ||
# - name: cargo test compile glazier | ||
# uses: actions-rs/cargo@v1 | ||
# with: | ||
# command: test | ||
# args: --manifest-path=Cargo.toml --no-run --target wasm32-unknown-unknown | ||
|
||
doctest-stable: | ||
runs-on: macOS-latest | ||
|
@@ -222,7 +222,7 @@ jobs: | |
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --manifest-path=Cargo.toml --all-targets --features=raw-win-handle -- -D warnings | ||
args: --manifest-path=Cargo.toml --all-targets -- -D warnings | ||
continue-on-error: true | ||
|
||
# Test packages in deeper-to-higher dependency order | ||
|
@@ -260,7 +260,7 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macOS-latest, windows-2019, ubuntu-latest] | ||
os: [macOS-latest, windows-2019] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.