-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
8,827 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Build & Tests | ||
on: [push, pull_request] | ||
jobs: | ||
macos: | ||
runs-on: macOS-13 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Select Xcode | ||
run: sudo xcode-select -s /Applications/Xcode_14.3.1.app | ||
- name: Build and Test SPM | ||
run: swift test | ||
- name: Update Cocoa Pods repo | ||
run: pod repo update | ||
- name: Build and Test CocoaPods | ||
run: pod lib lint --allow-warnings --fail-fast | ||
linux: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: swift:5.8 | ||
options: --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --security-opt apparmor=unconfined | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Build and Test | ||
run: swift test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Publish CocoaPods package | ||
on: | ||
release: | ||
types: [created] | ||
jobs: | ||
publish: | ||
runs-on: macOS-13 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Select Xcode | ||
run: sudo xcode-select -s /Applications/Xcode_14.3.1.app | ||
- name: Publish Pod | ||
run: | | ||
sed -i '' "s|[[:blank:]]*s\.version[[:blank:]].*|s.version = '${VERSION}'|g" *.podspec | ||
pod trunk push --allow-warnings | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | ||
VERSION: ${{ github.event.release.tag_name }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// swift-tools-version:5.4 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "xxHash", | ||
platforms: [.macOS(.v10_13), .iOS(.v11), .tvOS(.v11), .watchOS(.v6)], | ||
products: [ | ||
.library( | ||
name: "xxHash", | ||
targets: ["xxHash"]) | ||
], | ||
dependencies: [], | ||
targets: [ | ||
.target(name: "xxHash", | ||
dependencies: ["CxxHash"]), | ||
.target(name: "CxxHash"), | ||
.testTarget(name: "xxHashTests", | ||
dependencies: ["xxHash"]) | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// xxhash_swift.h | ||
// | ||
// | ||
// Created by Yehor Popovych on 28/08/2023. | ||
// | ||
|
||
#ifndef __xxhash_swift_h__ | ||
#define __xxhash_swift_h__ | ||
|
||
#ifdef __BYTE_ORDER__ | ||
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ | ||
#define XXH_CPU_LITTLE_ENDIAN 1 | ||
#elif | ||
#define XXH_CPU_LITTLE_ENDIAN 0 | ||
#endif | ||
#else | ||
#error "Byte order is unknown" | ||
#endif | ||
|
||
#define XXH_INLINE_ALL | ||
#define XXH_STATIC_LINKING_ONLY | ||
|
||
#include "../xxhash.h" | ||
|
||
#endif /* __xxhash_swift_h__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
//#define XXH_INLINE_ALL | ||
//#define XXH_STATIC_LINKING_ONLY | ||
|
||
#include "xxhash_swift.h" |
Oops, something went wrong.