Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-windowing/glutin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.17.0
Choose a base ref
...
head repository: rust-windowing/glutin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jun 28, 2018

  1. Typo fix (#1037)

    Oops
    SimonSapin authored and francesca64 committed Jun 28, 2018
    Copy the full SHA
    4227ea7 View commit details

Commits on Jul 8, 2018

  1. Copy the full SHA
    3a0854c View commit details

Commits on Jul 11, 2018

  1. Copy the full SHA
    bda3741 View commit details

Commits on Aug 2, 2018

  1. Update winit to 0.17.0 (#1055) (#1056)

    * Update winit to 0.17.0
    
    * Update CHANGELOG.md
    felixrabe authored and francesca64 committed Aug 2, 2018
    Copy the full SHA
    9e023e7 View commit details
  2. Copy the full SHA
    4ebe927 View commit details

Commits on Aug 3, 2018

  1. Update cocoa and core-graphics (#1047)

    * Update Cocoa and core-graphics
    
    * Version 0.18
    paulrouget authored and francesca64 committed Aug 3, 2018
    Copy the full SHA
    ee97106 View commit details

Commits on Sep 11, 2018

  1. Merges context creation code. (#1029)

    * Merge context creation code.
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    
    * iOS p1
    
    * iOS p2
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    
    * Adds examples
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    
    * Made emscripten panic when trying to share contexts. Made
    non-`shareable_with_windowed_contexts` fallback to being shareable if
    unsupported. Updated docs.
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    
    * Marked unsafe functions as unsafe. Changed docs.
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    
    * Adds README-SHARING.md, adds safe api
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    
    * Doc grammar/spelling changes + decreased warnings.
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    
    * Spelling check
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    
    * iOS: Fix warnings
    
    * Fix warning
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored and francesca64 committed Sep 11, 2018
    Copy the full SHA
    209ab92 View commit details

Commits on Oct 17, 2018

  1. Copy the full SHA
    8f782a2 View commit details

Commits on Oct 30, 2018

  1. Wayland: make libEGL loading behaviour consistent (#1075)

    * Wayland: make libEGL loading behaviour consistent
    
    The x11 implementation will try to load libEGL.so if so.1 is not
    available but the wayland one didn't and so either required the user to
    create the sym link themselves or install the devel packages which did
    it for them.
    
    This resolves the latter issues faced in #949
    
    * Update changelog
    mkdewidar authored and francesca64 committed Oct 30, 2018
    Copy the full SHA
    ec13728 View commit details

Commits on Nov 7, 2018

  1. Copy the full SHA
    78240da View commit details
  2. Changelog improvements (#1077)

    atouchet authored and francesca64 committed Nov 7, 2018
    Copy the full SHA
    704de51 View commit details
  3. Update gl_generator (#1079)

    Eijebong authored and francesca64 committed Nov 7, 2018
    Copy the full SHA
    3377691 View commit details

Commits on Nov 10, 2018

  1. Update to winit 0.18.0 + release glutin 0.19.0 (#1081)

    * Update to winit 0.18.0 + release glutin 0.19.0
    
    * Update release date
    
    * Actually bump glutin version
    francesca64 authored Nov 10, 2018
    Copy the full SHA
    72e8c95 View commit details

Commits on Dec 5, 2018

  1. Copy the full SHA
    6e64954 View commit details
  2. Support NetBSD platform (#1085)

    * Add "netbsd" as target OS like other BSD's
    
    * Add CHANGELOG entry
    iquiw authored and francesca64 committed Dec 5, 2018
    Copy the full SHA
    1ad6560 View commit details

Commits on Dec 21, 2018

  1. Misc fixes (#1088)

    * api: ios: use trait signature in raw_handle()
    
    * egl: remove dead code warning on finish_pbuffer()
    
    finish_pbuffer() is only used by android api and windows platform.
    This patch enables finish_pbuffer() only for those os.
    ceyusa authored and francesca64 committed Dec 21, 2018
    Copy the full SHA
    0351a24 View commit details

Commits on Dec 29, 2018

  1. Unify Context new and new_shared functions, add ContextBuilder::buid …

    …method, and clarify docs (#1092)
    
    * Unify Context new and new_shared functions, add ContextBuilder::build method, and clarify docs
    
    * Fix build
    
    * Add CHANGELOG entry and fix doc typos
    
    * Update CHANGELOG.md
    
    Co-Authored-By: Osspial <osspial@gmail.com>
    Osspial authored and francesca64 committed Dec 29, 2018
    Copy the full SHA
    2bee4b0 View commit details

Commits on Dec 31, 2018

  1. Fix broken link in dlopen (#1093)

    * Fix broken `link` in dlopen
    
    * Update src/api/dlopen.rs
    
    Co-Authored-By: varkor <github@varkor.com>
    varkor authored and francesca64 committed Dec 31, 2018
    Copy the full SHA
    8e61035 View commit details

Commits on Jan 15, 2019

  1. Copy the full SHA
    564c2b7 View commit details

Commits on Jan 16, 2019

  1. Copy the full SHA
    c16f997 View commit details

Commits on Feb 26, 2019

  1. Make NoBackendAvailable Sync (#1097)

    joetsoi authored and francesca64 committed Feb 26, 2019
    Copy the full SHA
    96b965a View commit details
  2. Gentz' misc stuff, containing the following: (#1101)

    Adds context sharing support for the X11 and Wayland backends
    Separated context support for both Wayland and X11.
    Add sharing support to windows.
    Added CHANGELOG entry and fix doc typos
    Merged @Osspial's context_api_polish changes
    Marked unsafe functions that should be safe as safe.
    Refactored code to be more consistent/cleaner. Ran rustfmt on everything.
    Removed `shareable_with_windowed_contexts` and separate ext for OSMesa.
    Merged @Yyt's macos fix.
    Renamed `GlWindow` to `CombinedContext`.
    We no longer load `libegl.so` and `libgl.so` multiple times.
    Renamed `GlContext{,Ext}` to `ContextTrait{,Ext}`.
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Feb 26, 2019
    Copy the full SHA
    6598843 View commit details
  3. Update README. (#1103)

    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Feb 26, 2019
    Copy the full SHA
    23b3b10 View commit details

Commits on Mar 3, 2019

  1. Revert code example in README.md (#1107)

    The example was not representative of the current API.
    wschella authored and goddessfreya committed Mar 3, 2019
    Copy the full SHA
    b2a5ed7 View commit details
  2. Changes for Rust 2018. Removed distinction between `{Combined,Separat…

    …ed}Context`s. Style changes. Doc update. Changelog. Unwraps. Fix android build. egl + glx + wgl context recreation support. An extra example. Improved osmesa ext. (#1105)
    
    Changes for Rust 2018. Removed distinction between `{Combined,Separated}Context`s. Style changes. Doc update. Changelog. Unwraps. Fix android build. egl + glx + wgl context recreation support. An extra example. Improved osmesa ext. (#1105)
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Mar 3, 2019
    Copy the full SHA
    c0b3605 View commit details
  3. Use the shared_library dependency only on required platforms (#1108)

    * Conditionalize shared_library dependency, only used for *nix platforms
    iceiix authored and goddessfreya committed Mar 3, 2019
    Copy the full SHA
    af42114 View commit details

Commits on Mar 6, 2019

  1. Made pf_reqs public. (#1111)

    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Mar 6, 2019
    Copy the full SHA
    6a046d0 View commit details
  2. Badges. (#1113)

    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Mar 6, 2019
    Copy the full SHA
    fad332c View commit details

Commits on Mar 9, 2019

  1. Update winit to 0.19 (#1115)

    Eijebong authored and goddessfreya committed Mar 9, 2019
    Copy the full SHA
    23bb3f8 View commit details

Commits on Mar 10, 2019

  1. Improvements to the headless api and separating out ffi bindings. New…

    … winit release. Style changes. Got rid of separated contexts in favour of raw contexts. (#1110)
    
    Improvements to the headless api and separating out ffi bindings. New winit release. Style changes. Got rid of separated contexts in favour of raw contexts. (#1110)
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Mar 10, 2019
    Copy the full SHA
    647e6cd View commit details
  2. Version bump.

    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya committed Mar 10, 2019
    Copy the full SHA
    71a71e2 View commit details
  3. Bump versions 2

    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya committed Mar 10, 2019
    Copy the full SHA
    6b3212c View commit details
  4. Bump version (#1116)

    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Mar 10, 2019
    Copy the full SHA
    7ed5dbe View commit details
  5. Travis update. (#1117)

    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Mar 10, 2019
    Copy the full SHA
    f0d9890 View commit details
  6. Travis better code. (#1118)

    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Mar 10, 2019
    Copy the full SHA
    521a352 View commit details
  7. Bump readme. (#1119)

    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Mar 10, 2019
    Copy the full SHA
    d06f2ca View commit details

Commits on Mar 15, 2019

  1. Blank backend support. (#1120)

    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Mar 15, 2019
    Copy the full SHA
    2c997b6 View commit details

Commits on Mar 16, 2019

  1. Add README.mds to crate.io crates. (#1124)

    Add `README.md`s to crate.io crates.
    goddessfreya authored Mar 16, 2019
    Copy the full SHA
    3b56571 View commit details

Commits on Mar 18, 2019

  1. Copy the full SHA
    d96fd6f View commit details

Commits on Mar 19, 2019

  1. Fixes headless issues w/linux relating to invalid drop order. Resolves

    …#988, afaik. Also adds debug to more structs. (#1125)
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Mar 19, 2019
    Copy the full SHA
    e291a19 View commit details

Commits on Mar 20, 2019

  1. Open libGL.so (#1127)

    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Mar 20, 2019
    Copy the full SHA
    600030a View commit details

Commits on Mar 24, 2019

  1. Added headless guards to EGL and GLX. Gets rid of libc dependency. U…

    …pdate changelog, fixed multiwindow example. (#1126)
    
    Added headless guards to EGL and GLX. Gets rid of libc dependency. Update changelog, fixed multiwindow example. Add OSMesa example
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Mar 24, 2019
    Copy the full SHA
    2695ebc View commit details

Commits on Apr 2, 2019

  1. Attempt to implement context sharing on Mac (#1132)

    Attempt to implement context sharing on Mac
    tene authored and goddessfreya committed Apr 2, 2019
    Copy the full SHA
    7d345fa View commit details
  2. 0.21 Api changes. (#1129)

    0.21 Api changes. 
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Apr 2, 2019
    Copy the full SHA
    90f0ef4 View commit details

Commits on Apr 6, 2019

  1. Copy the full SHA
    9b8dd2a View commit details

Commits on Apr 8, 2019

  1. Transition to proper headless support on linux. (#1133)

    * Transition to proper headless support on linux.
    * Account for display being null.
    * Add docs.
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya committed Apr 8, 2019
    Copy the full SHA
    1ed68d6 View commit details
  2. Readme bump (#1139)

    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Apr 8, 2019
    Copy the full SHA
    45d436c View commit details

Commits on Apr 9, 2019

  1. RC2 (#1142)

    RC2
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Apr 9, 2019
    Copy the full SHA
    5bde1e7 View commit details

Commits on Apr 14, 2019

  1. RC3 (#1143)

    * RC3
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    
    * Changes
    
    Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
    goddessfreya authored Apr 14, 2019
    Copy the full SHA
    24c5fdf View commit details

Commits on Apr 16, 2019

  1. Update x11-dl (#1144)

    Update x11-dl
    atouchet authored and goddessfreya committed Apr 16, 2019
    Copy the full SHA
    dcdfc01 View commit details
Showing with 12,879 additions and 7,033 deletions.
  1. +0 −56 .circleci/config.yml
  2. +1 −0 .github/FUNDING.yml
  3. +4 −0 .github/PULL_REQUEST_TEMPLATE.md
  4. +122 −0 .github/workflows/ci.yml
  5. +0 −3 .gitmodules
  6. +0 −33 .travis.yml
  7. +338 −18 CHANGELOG.md
  8. +10 −52 Cargo.toml
  9. +2 −2 LICENSE
  10. +35 −94 README.md
  11. +2 −0 _typos.toml
  12. +0 −24 appveyor.yml
  13. +0 −147 build.rs
  14. +0 −76 examples/fullscreen.rs
  15. +0 −51 examples/multiwindow.rs
  16. +0 −108 examples/support/mod.rs
  17. +0 −46 examples/transparent.rs
  18. +0 −39 examples/window.rs
  19. +34 −0 glutin-winit/CHANGELOG.md
  20. +27 −0 glutin-winit/Cargo.toml
  21. +19 −0 glutin-winit/LICENSE
  22. +6 −0 glutin-winit/README.md
  23. +26 −0 glutin-winit/build.rs
  24. +44 −0 glutin-winit/src/event_loop.rs
  25. +231 −0 glutin-winit/src/lib.rs
  26. +82 −0 glutin-winit/src/window.rs
  27. +90 −0 glutin/Cargo.toml
  28. +1 −0 glutin/LICENSE
  29. +1 −0 glutin/README.md
  30. +25 −0 glutin/build.rs
  31. +118 −0 glutin/src/api/cgl/appkit.rs
  32. +246 −0 glutin/src/api/cgl/config.rs
  33. +317 −0 glutin/src/api/cgl/context.rs
  34. +116 −0 glutin/src/api/cgl/display.rs
  35. +64 −0 glutin/src/api/cgl/mod.rs
  36. +209 −0 glutin/src/api/cgl/surface.rs
  37. +426 −0 glutin/src/api/egl/config.rs
  38. +501 −0 glutin/src/api/egl/context.rs
  39. +217 −0 glutin/src/api/egl/device.rs
  40. +819 −0 glutin/src/api/egl/display.rs
  41. +125 −0 glutin/src/api/egl/mod.rs
  42. +603 −0 glutin/src/api/egl/surface.rs
  43. +374 −0 glutin/src/api/glx/config.rs
  44. +482 −0 glutin/src/api/glx/context.rs
  45. +296 −0 glutin/src/api/glx/display.rs
  46. +209 −0 glutin/src/api/glx/mod.rs
  47. +331 −0 glutin/src/api/glx/surface.rs
  48. +10 −0 glutin/src/api/mod.rs
  49. +557 −0 glutin/src/api/wgl/config.rs
  50. +463 −0 glutin/src/api/wgl/context.rs
  51. +255 −0 glutin/src/api/wgl/display.rs
  52. +149 −0 glutin/src/api/wgl/mod.rs
  53. +312 −0 glutin/src/api/wgl/surface.rs
  54. +536 −0 glutin/src/config.rs
  55. +713 −0 glutin/src/context.rs
  56. +592 −0 glutin/src/display.rs
  57. +178 −0 glutin/src/error.rs
  58. +87 −0 glutin/src/lib.rs
  59. +57 −0 glutin/src/lib_loading.rs
  60. +4 −0 glutin/src/platform/mod.rs
  61. +102 −0 glutin/src/platform/x11.rs
  62. +15 −0 glutin/src/prelude.rs
  63. +552 −0 glutin/src/surface.rs
  64. +20 −0 glutin_egl_sys/Cargo.toml
  65. +1 −0 glutin_egl_sys/LICENSE
  66. +3 −0 glutin_egl_sys/README.md
  67. +61 −0 glutin_egl_sys/build.rs
  68. +250 −0 glutin_egl_sys/src/egl.rs
  69. +38 −0 glutin_egl_sys/src/lib.rs
  70. +46 −0 glutin_examples/Cargo.toml
  71. +1 −0 glutin_examples/LICENSE
  72. +40 −0 glutin_examples/build.rs
  73. +10 −0 glutin_examples/examples/android.rs
  74. +30 −0 glutin_examples/examples/drm.rs
  75. +142 −0 glutin_examples/examples/egl_device.rs
  76. +341 −0 glutin_examples/examples/switch_render_thread.rs
  77. +7 −0 glutin_examples/examples/window.rs
  78. +471 −0 glutin_examples/src/lib.rs
  79. +13 −0 glutin_gles2_sys/Cargo.toml
  80. +1 −0 glutin_gles2_sys/LICENSE
  81. +3 −0 glutin_gles2_sys/README.md
  82. +20 −0 glutin_gles2_sys/build.rs
  83. +49 −0 glutin_gles2_sys/src/lib.rs
  84. +16 −0 glutin_glx_sys/Cargo.toml
  85. +1 −0 glutin_glx_sys/LICENSE
  86. +3 −0 glutin_glx_sys/README.md
  87. +43 −0 glutin_glx_sys/build.rs
  88. +42 −0 glutin_glx_sys/src/lib.rs
  89. +13 −0 glutin_wgl_sys/Cargo.toml
  90. +1 −0 glutin_wgl_sys/LICENSE
  91. +3 −0 glutin_wgl_sys/README.md
  92. +39 −0 glutin_wgl_sys/build.rs
  93. +20 −0 glutin_wgl_sys/src/lib.rs
  94. +16 −0 rustfmt.toml
  95. +0 −108 src/api/android/ffi.rs
  96. +0 −203 src/api/android/mod.rs
  97. +0 −23 src/api/caca/ffi.rs
  98. +0 −124 src/api/caca/mod.rs
  99. +0 −15 src/api/dlopen.rs
  100. +0 −39 src/api/egl/ffi.rs
  101. +0 −786 src/api/egl/mod.rs
  102. +0 −551 src/api/glx/mod.rs
  103. +0 −80 src/api/ios/ffi.rs
  104. +0 −356 src/api/ios/mod.rs
  105. +0 −8 src/api/mod.rs
  106. +0 −209 src/api/osmesa/mod.rs
  107. +0 −12 src/api/wgl/gl.rs
  108. +0 −47 src/api/wgl/make_current_guard.rs
  109. +0 −812 src/api/wgl/mod.rs
  110. +0 −147 src/headless.rs
  111. +0 −808 src/lib.rs
  112. +0 −26 src/os/android.rs
  113. +0 −3 src/os/ios.rs
  114. +0 −29 src/os/macos.rs
  115. +0 −25 src/os/mod.rs
  116. +0 −35 src/os/unix.rs
  117. +0 −28 src/os/windows.rs
  118. +0 −5 src/platform/android/mod.rs
  119. +0 −88 src/platform/emscripten/ffi.rs
  120. +0 −207 src/platform/emscripten/mod.rs
  121. +0 −60 src/platform/ios/mod.rs
  122. +0 −187 src/platform/linux/mod.rs
  123. +0 −89 src/platform/linux/wayland.rs
  124. +0 −302 src/platform/linux/x11.rs
  125. +0 −96 src/platform/macos/headless.rs
  126. +0 −129 src/platform/macos/helpers.rs
  127. +0 −232 src/platform/macos/mod.rs
  128. +0 −25 src/platform/mod.rs
  129. +0 −136 src/platform/windows/context.rs
  130. +0 −193 src/platform/windows/mod.rs
  131. +0 −61 tests/headless.rs
56 changes: 0 additions & 56 deletions .circleci/config.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: kchibisov
4 changes: 4 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- [ ] Tested on all platforms changed
- [ ] Added an entry to `CHANGELOG.md` if knowledge of this change could be valuable to users
- [ ] Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
- [ ] Created or updated an example program if it would help users understand this functionality
122 changes: 122 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
name: CI

on:
pull_request:
paths:
- '**.rs'
- '**.toml'
- '.github/workflows/ci.yml'
push:
branches: [master]
paths:
- '**.rs'
- '**.toml'
- '.github/workflows/ci.yml'

jobs:
check-formatting:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@v1
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- uses: taiki-e/install-action@v2
with:
tool: typos-cli
- name: Check Formatting
run: cargo fmt --all -- --check
- name: run typos
run: typos
- name: Typos info
if: failure()
run: |
echo 'To fix typos, please run `typos -w`'
echo 'To check for a diff, run `typos`'
echo 'You can find typos here: https://crates.io/crates/typos'
tests:
name: Tests
strategy:
fail-fast: false
matrix:
rust_version: [1.70.0, stable, nightly]
platform:
- { target: x86_64-pc-windows-msvc, os: windows-latest, }
- { target: i686-pc-windows-msvc, os: windows-latest, }
- { target: i686-pc-windows-msvc, os: windows-latest, options: --no-default-features, features: wgl }
- { target: i686-pc-windows-msvc, os: windows-latest, options: --no-default-features, features: egl }
- { target: x86_64-pc-windows-gnu, os: windows-latest, host: -x86_64-pc-windows-gnu }
- { target: i686-pc-windows-gnu, os: windows-latest, host: -i686-pc-windows-gnu }
- { target: i686-unknown-linux-gnu, os: ubuntu-latest, }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,wayland,x11" }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,wayland" }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,x11" }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: glx }
- { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' }
- { target: x86_64-apple-darwin, os: macos-latest, }
exclude:
# Android is tested on stable-3
- rust_version: '1.70.0'
platform: { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' }
include:
- rust_version: '1.70.0'
platform: { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' }


env:
RUST_BACKTRACE: 1
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-C debuginfo=0"
OPTIONS: ${{ matrix.platform.options }}
CMD: ${{ matrix.platform.cmd }}
FEATURES: ${{ format(',{0}', matrix.platform.features ) }}
RUSTDOCFLAGS: -Dwarnings

runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v3
# Used to cache cargo-web
- name: Cache cargo folder
uses: actions/cache@v1
with:
path: ~/.cargo
key: ${{ matrix.platform.target }}-cargo-${{ matrix.rust_version }}

- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust_version }}${{ matrix.platform.host }}
targets: ${{ matrix.platform.target }}
components: clippy

# We need those for examples.
- name: Install GCC Multilib
if: (matrix.platform.os == 'ubuntu-latest') && contains(matrix.platform.target, 'i686')
run: sudo apt-get update && sudo apt-get install gcc-multilib

- name: Install cargo-apk
if: contains(matrix.platform.target, 'android')
run: cargo +stable install cargo-apk

- name: Build tests
shell: bash
run: cargo $CMD test -p glutin --no-run --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES
- name: Run tests
shell: bash
if: (
!contains(matrix.platform.target, 'android') &&
!contains(matrix.platform.target, 'ios') &&
!contains(matrix.platform.target, 'wasm32'))
run: cargo test --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES

- name: Check documentation
shell: bash
run: cd glutin && cargo doc --no-deps --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES --document-private-items

- name: Lint with clippy
shell: bash
if: (matrix.rust_version == '1.70.0') && !contains(matrix.platform.options, '--no-default-features')
run: cargo clippy --workspace --all-targets --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES -- -Dwarnings

3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

Loading