File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : PR Checks
2+
3+ on :
4+ push :
5+ branches : [ "develop" ]
6+ pull_request :
7+ branches : [ "develop" ]
8+
9+ jobs :
10+ unit-tests :
11+ name : Unit Tests
12+ strategy :
13+ matrix :
14+ os : [ubuntu-20.04, macos-latest]
15+ runs-on : ${{ matrix.os }}
16+
17+ steps :
18+ - uses : actions/checkout@v3
19+ with :
20+ submodules : recursive
21+
22+ - name : Run tests
23+ run : ./run_test.sh
24+ shell : bash
25+
26+ - name : Run Swift build
27+ run : |
28+ swift build
Original file line number Diff line number Diff line change 11.idea
22cmake-build-debug
3- build
3+ build
4+ .swiftpm /
5+ .DS_Store
Original file line number Diff line number Diff line change 1+ // swift-tools-version: 5.7
2+ // The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+ import PackageDescription
5+
6+ let package = Package (
7+ name: " BloomFilter " ,
8+ platforms: [
9+ . iOS( . v14) ,
10+ . macOS( . v10_15)
11+ ] ,
12+ products: [
13+ . library(
14+ name: " BloomFilter " ,
15+ targets: [ " BloomFilter " ]
16+ ) ,
17+ ] ,
18+ targets: [
19+ . target(
20+ name: " BloomFilter " ,
21+ path: " src " ,
22+ sources: [ " BloomFilter.cpp " ] ,
23+ publicHeadersPath: " . "
24+ )
25+ ] ,
26+ cxxLanguageStandard: . cxx11
27+ )
Original file line number Diff line number Diff line change 1- directory=` dirname $0 `
2- mkdir $directory /build;
3- (cd $directory /build; cmake ..; make all; )
4- $directory /build/test/RunTests
1+ #! /usr/bin/env bash
2+
3+ directory=$( dirname " $0 " )
4+ mkdir " $directory " /build;
5+ (cd " $directory " /build || exit ; cmake ..; make all; )
6+ " $directory " /build/test/RunTests
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.5 )
22
33if (APPLE )
4- include_directories (/usr/local/opt/openssl/include )
5- link_directories (/usr/local/opt/openssl/lib )
4+ if (EXISTS /usr/local/opt/openssl/)
5+ set (OPENSSL_ROOT_DIR /usr/local/opt/openssl)
6+ elseif (EXISTS /opt/homebrew/opt/openssl@1.1/)
7+ set (OPENSSL_ROOT_DIR /opt/homebrew/opt/openssl@1.1)
8+ endif ()
69endif ()
710
8- link_libraries (crypto )
9- add_executable (GenerateFilter GenerateFilter.cpp )
11+ find_package (OpenSSL REQUIRED )
1012
11- if (APPLE )
12- target_link_libraries (GenerateFilter LINK_PUBLIC BloomFilter crypto )
13- else ()
14- target_link_libraries (GenerateFilter LINK_PUBLIC BloomFilter )
15- endif ()
13+ add_executable (GenerateFilter GenerateFilter.cpp )
14+ target_link_libraries (GenerateFilter LINK_PUBLIC BloomFilter OpenSSL::Crypto )
You can’t perform that action at this time.
0 commit comments