Skip to content

Commit

Permalink
Housekeeping (#27)
Browse files Browse the repository at this point in the history
* Update github actions

* Update Mint dependencies

* Lint

* Update README
  • Loading branch information
ctreffs authored Jun 20, 2023
1 parent 1894579 commit 2675295
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
image: swift:${{ matrix.swift }}
steps:
- name: Checkout
uses: actions/[email protected].2
uses: actions/[email protected].3

- name: APT cache
uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
tag: 5.8-RELEASE

- name: Checkout
uses: actions/[email protected].2
uses: actions/[email protected].3

- name: Cache vcpkg
uses: actions/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions Mintfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
realm/SwiftLint@0.51.0
nicklockwood/[email protected].7
realm/SwiftLint@0.52.2
nicklockwood/[email protected].12
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ let package = Package(
name: "CSDL2",
pkgConfig: "sdl2",
providers: [
.apt(["libsdl2-dev"])
//,.vcpkg(["sdl2[core,vulkan]"])
]
.apt(["libsdl2-dev"]),
// ,.vcpkg(["sdl2[core,vulkan]"])
]
),
.executableTarget(name: "Minimal", dependencies: ["SDL"], path: "Sources/Demos/Minimal"),
.executableTarget(
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
[![macOS](https://github.com/ctreffs/SwiftSDL2/actions/workflows/ci-macos.yml/badge.svg)](https://github.com/ctreffs/SwiftSDL2/actions/workflows/ci-macos.yml)
[![Windows](https://github.com/ctreffs/SwiftSDL2/actions/workflows/ci-windows.yml/badge.svg)](https://github.com/ctreffs/SwiftSDL2/actions/workflows/ci-windows.yml)

[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fctreffs%2FSwiftSDL2%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/ctreffs/SwiftSDL2)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fctreffs%2FSwiftSDL2%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/ctreffs/SwiftSDL2)

This is a **thin** Swift wrapper around the popular and excellent [**Simple DirectMedia Layer**](https://www.libsdl.org) library.
It provides a **swifty** and **typesafe** API.

Expand Down
16 changes: 8 additions & 8 deletions Tests/SDLTests/SDLTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ final class SDLTests: XCTestCase {
SDL_GetVersion(&linked)

#if os(Linux)
XCTAssertEqual(compiled.major, 2)
XCTAssertEqual(compiled.major, linked.major)
XCTAssertEqual(compiled.major, 2)
XCTAssertEqual(compiled.major, linked.major)
#else
XCTAssertEqual(compiled.major, 2)
XCTAssertEqual(compiled.major, linked.major)
XCTAssertEqual(compiled.major, 2)
XCTAssertEqual(compiled.major, linked.major)

XCTAssertEqual(compiled.minor, 26)
XCTAssertEqual(compiled.minor, linked.minor)
XCTAssertEqual(compiled.minor, 26)
XCTAssertEqual(compiled.minor, linked.minor)

XCTAssertEqual(compiled.patch, 5)
XCTAssertEqual(compiled.patch, linked.patch)
XCTAssertEqual(compiled.patch, 5)
XCTAssertEqual(compiled.patch, linked.patch)
#endif
}

Expand Down

0 comments on commit 2675295

Please sign in to comment.