mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Merge pull request #73 from tomaka/app-appveyor-cfg
Add appveyor configuration file
This commit is contained in:
commit
e887cf57b8
16
appveyor.yml
Normal file
16
appveyor.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
install:
|
||||||
|
- ps: Start-FileDownload 'https://static.rust-lang.org/dist/rust-nightly-i686-w64-mingw32.exe'
|
||||||
|
- ps: Start-FileDownload 'https://static.rust-lang.org/cargo-dist/cargo-nightly-i686-w64-mingw32.tar.gz'
|
||||||
|
- rust-nightly-i686-w64-mingw32.exe /VERYSILENT /NORESTART
|
||||||
|
- 7z e cargo-nightly-i686-w64-mingw32.tar.gz
|
||||||
|
- 7z x cargo-nightly-i686-w64-mingw32.tar
|
||||||
|
- SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
|
||||||
|
- SET PATH=%PATH%;%CD%\cargo-nightly-i686-w64-mingw32\bin
|
||||||
|
- mkdir %HOMEDRIVE%%HOMEPATH%\.rust
|
||||||
|
- cp etc/32bits/* %HOMEDRIVE%%HOMEPATH%\.rust
|
||||||
|
|
||||||
|
build: false
|
||||||
|
|
||||||
|
test_script:
|
||||||
|
- cargo test --verbose --no-default-features --features "window"
|
||||||
|
- cargo test --verbose --no-default-features --features "headless"
|
BIN
etc/32bits/libgdi32.a
Normal file
BIN
etc/32bits/libgdi32.a
Normal file
Binary file not shown.
BIN
etc/32bits/libopengl32.a
Normal file
BIN
etc/32bits/libopengl32.a
Normal file
Binary file not shown.
|
@ -30,5 +30,6 @@ fn main() {
|
||||||
let mut value: (u8, u8, u8, u8) = unsafe { std::mem::uninitialized() };
|
let mut value: (u8, u8, u8, u8) = unsafe { std::mem::uninitialized() };
|
||||||
unsafe { gl.ReadPixels(0, 0, 1, 1, gl::RGBA, gl::UNSIGNED_BYTE, std::mem::transmute(&mut value)) };
|
unsafe { gl.ReadPixels(0, 0, 1, 1, gl::RGBA, gl::UNSIGNED_BYTE, std::mem::transmute(&mut value)) };
|
||||||
|
|
||||||
assert_eq!(value, (0, 255, 0, 255));
|
assert!(value == (0, 255, 0, 255) || value == (0, 64, 0, 255) ||
|
||||||
|
value == (0, 64, 0, 255) || value == (0, 64, 0, 0));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue