Make release workflow manual
This commit is contained in:
parent
b885689d8e
commit
3249f14dab
|
@ -1,8 +1,11 @@
|
||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
milestone:
|
workflow_dispatch:
|
||||||
types: closed
|
inputs:
|
||||||
|
version_number:
|
||||||
|
description: "Version number"
|
||||||
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run_tests:
|
run_tests:
|
||||||
|
@ -34,7 +37,7 @@ jobs:
|
||||||
git_push_gpgsign: false
|
git_push_gpgsign: false
|
||||||
- name: Tag release
|
- name: Tag release
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ github.event.milestone.title }}
|
VERSION: ${{ github.event.inputs.version_number }}
|
||||||
run: |
|
run: |
|
||||||
DATE=`date "+%Y-%m-%d"`
|
DATE=`date "+%Y-%m-%d"`
|
||||||
COMMIT_MESSAGE="[ci skip] Set release date"
|
COMMIT_MESSAGE="[ci skip] Set release date"
|
||||||
|
|
|
@ -41,6 +41,7 @@ import XCTest
|
||||||
@testable import TunnelKitOpenVPNAppExtension
|
@testable import TunnelKitOpenVPNAppExtension
|
||||||
import CTunnelKitOpenVPNProtocol
|
import CTunnelKitOpenVPNProtocol
|
||||||
|
|
||||||
|
// avg on MBA M1 w/ OpenSSL 3.2.0
|
||||||
class DataPathPerformanceTests: XCTestCase {
|
class DataPathPerformanceTests: XCTestCase {
|
||||||
private var dataPath: DataPath!
|
private var dataPath: DataPath!
|
||||||
|
|
||||||
|
@ -85,7 +86,7 @@ class DataPathPerformanceTests: XCTestCase {
|
||||||
// XCTAssertEqual(decryptedPackets, packets)
|
// XCTAssertEqual(decryptedPackets, packets)
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// 16ms
|
// 0.007
|
||||||
func testPointerBased() {
|
func testPointerBased() {
|
||||||
let packets = TestUtils.generateDataSuite(1200, 1000)
|
let packets = TestUtils.generateDataSuite(1200, 1000)
|
||||||
var encryptedPackets: [Data]!
|
var encryptedPackets: [Data]!
|
||||||
|
|
|
@ -39,6 +39,7 @@ import XCTest
|
||||||
import CTunnelKitCore
|
import CTunnelKitCore
|
||||||
import CTunnelKitOpenVPNProtocol
|
import CTunnelKitOpenVPNProtocol
|
||||||
|
|
||||||
|
// avg on MBA M1 w/ OpenSSL 3.2.0
|
||||||
class EncryptionPerformanceTests: XCTestCase {
|
class EncryptionPerformanceTests: XCTestCase {
|
||||||
private var cbcEncrypter: Encrypter!
|
private var cbcEncrypter: Encrypter!
|
||||||
|
|
||||||
|
@ -67,7 +68,7 @@ class EncryptionPerformanceTests: XCTestCase {
|
||||||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1.150s
|
// 0.461
|
||||||
func testCBCEncryption() {
|
func testCBCEncryption() {
|
||||||
let suite = TestUtils.generateDataSuite(1000, 100000)
|
let suite = TestUtils.generateDataSuite(1000, 100000)
|
||||||
measure {
|
measure {
|
||||||
|
@ -77,7 +78,7 @@ class EncryptionPerformanceTests: XCTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 0.684s
|
// 0.262
|
||||||
func testGCMEncryption() {
|
func testGCMEncryption() {
|
||||||
let suite = TestUtils.generateDataSuite(1000, 100000)
|
let suite = TestUtils.generateDataSuite(1000, 100000)
|
||||||
let ad: [UInt8] = [0x11, 0x22, 0x33, 0x44]
|
let ad: [UInt8] = [0x11, 0x22, 0x33, 0x44]
|
||||||
|
|
Loading…
Reference in New Issue