Skip to content

Commit

Permalink
Transition to GitHub Actions (#100)
Browse files Browse the repository at this point in the history
* Transition to GitHub Actions

* Fix CI indentation

* Remove build step
  • Loading branch information
madsmtm authored Aug 11, 2022
1 parent 0ee134f commit 1ffcb0f
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 87 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on:
pull_request:
push:
branches: [master]

env:
RUST_BACKTRACE: 1
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Cdebuginfo=0 --deny=warnings"
RUSTDOCFLAGS: "--deny=warnings"

jobs:
fmt:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
components: rustfmt
- name: Check Formatting
run: cargo fmt --all -- --check

tests:
name: Tests
# Note: `raw-window-handle` doesn't have any `#[cfg(...)]` guards, so
# we don't bother testing on other platforms
runs-on: ubuntu-latest
strategy:
matrix:
rust_version: [stable, nightly]

steps:
- uses: actions/checkout@v2

- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust_version }}

- name: Check documentation
run: cargo doc --no-deps --document-private-items

- name: Run tests
run: cargo test --verbose
61 changes: 0 additions & 61 deletions .travis.yml

This file was deleted.

4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ alloc = []
[dependencies]
cty = "0.2"

[badges]
travis-ci = { repository = "rust-windowing/raw-window-handle" }
appveyor = { repository = "rust-windowing/raw-window-handle" }

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# `raw-window-handle`: A common windowing interoperability library for Rust

[![Crates.io](https://img.shields.io/crates/v/raw-window-handle.svg?maxAge=2592000)](https://crates.io/crates/raw-window-handle)
[![Docs](https://docs.rs/raw-window-handle/badge.svg)](https://docs.rs/raw-window-handle)
[![CI Status](https://github.com/rust-windowing/raw-window-handle/workflows/CI/badge.svg)](https://github.com/rust-windowing/raw-window-handle/actions)

This library provides standard types for accessing a window's platform-specific
raw window handle and display's platform-specific raw display handle. This does
Expand Down
22 changes: 0 additions & 22 deletions appveyor.yml

This file was deleted.

0 comments on commit 1ffcb0f

Please sign in to comment.