Skip to content

Commit 2675295

Browse files
authored
Housekeeping (#27)
* Update github actions * Update Mint dependencies * Lint * Update README
1 parent 1894579 commit 2675295

File tree

6 files changed

+18
-15
lines changed

6 files changed

+18
-15
lines changed

.github/workflows/ci-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
image: swift:${{ matrix.swift }}
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v3.5.2
20+
uses: actions/checkout@v3.5.3
2121

2222
- name: APT cache
2323
uses: actions/cache@v3.3.1

.github/workflows/ci-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
tag: 5.8-RELEASE
1818

1919
- name: Checkout
20-
uses: actions/checkout@v3.5.2
20+
uses: actions/checkout@v3.5.3
2121

2222
- name: Cache vcpkg
2323
uses: actions/cache@v3.3.1

Mintfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
realm/SwiftLint@0.51.0
2-
nicklockwood/SwiftFormat@0.51.7
1+
realm/SwiftLint@0.52.2
2+
nicklockwood/SwiftFormat@0.51.12

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ let package = Package(
2525
name: "CSDL2",
2626
pkgConfig: "sdl2",
2727
providers: [
28-
.apt(["libsdl2-dev"])
29-
//,.vcpkg(["sdl2[core,vulkan]"])
30-
]
28+
.apt(["libsdl2-dev"]),
29+
// ,.vcpkg(["sdl2[core,vulkan]"])
30+
]
3131
),
3232
.executableTarget(name: "Minimal", dependencies: ["SDL"], path: "Sources/Demos/Minimal"),
3333
.executableTarget(

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
[![macOS](https://github.com/ctreffs/SwiftSDL2/actions/workflows/ci-macos.yml/badge.svg)](https://github.com/ctreffs/SwiftSDL2/actions/workflows/ci-macos.yml)
77
[![Windows](https://github.com/ctreffs/SwiftSDL2/actions/workflows/ci-windows.yml/badge.svg)](https://github.com/ctreffs/SwiftSDL2/actions/workflows/ci-windows.yml)
88

9+
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fctreffs%2FSwiftSDL2%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/ctreffs/SwiftSDL2)
10+
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fctreffs%2FSwiftSDL2%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/ctreffs/SwiftSDL2)
11+
912
This is a **thin** Swift wrapper around the popular and excellent [**Simple DirectMedia Layer**](https://www.libsdl.org) library.
1013
It provides a **swifty** and **typesafe** API.
1114

Tests/SDLTests/SDLTests.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ final class SDLTests: XCTestCase {
1212
SDL_GetVersion(&linked)
1313

1414
#if os(Linux)
15-
XCTAssertEqual(compiled.major, 2)
16-
XCTAssertEqual(compiled.major, linked.major)
15+
XCTAssertEqual(compiled.major, 2)
16+
XCTAssertEqual(compiled.major, linked.major)
1717
#else
18-
XCTAssertEqual(compiled.major, 2)
19-
XCTAssertEqual(compiled.major, linked.major)
18+
XCTAssertEqual(compiled.major, 2)
19+
XCTAssertEqual(compiled.major, linked.major)
2020

21-
XCTAssertEqual(compiled.minor, 26)
22-
XCTAssertEqual(compiled.minor, linked.minor)
21+
XCTAssertEqual(compiled.minor, 26)
22+
XCTAssertEqual(compiled.minor, linked.minor)
2323

24-
XCTAssertEqual(compiled.patch, 5)
25-
XCTAssertEqual(compiled.patch, linked.patch)
24+
XCTAssertEqual(compiled.patch, 5)
25+
XCTAssertEqual(compiled.patch, linked.patch)
2626
#endif
2727
}
2828

0 commit comments

Comments
 (0)