Make release workflow manual

This commit is contained in:
Davide De Rosa 2023-12-14 10:17:46 +01:00
parent b885689d8e
commit 3249f14dab
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
3 changed files with 11 additions and 6 deletions

View File

@ -1,8 +1,11 @@
name: Release
on:
milestone:
types: closed
workflow_dispatch:
inputs:
version_number:
description: "Version number"
required: true
jobs:
run_tests:
@ -34,7 +37,7 @@ jobs:
git_push_gpgsign: false
- name: Tag release
env:
VERSION: ${{ github.event.milestone.title }}
VERSION: ${{ github.event.inputs.version_number }}
run: |
DATE=`date "+%Y-%m-%d"`
COMMIT_MESSAGE="[ci skip] Set release date"

View File

@ -41,6 +41,7 @@ import XCTest
@testable import TunnelKitOpenVPNAppExtension
import CTunnelKitOpenVPNProtocol
// avg on MBA M1 w/ OpenSSL 3.2.0
class DataPathPerformanceTests: XCTestCase {
private var dataPath: DataPath!
@ -85,7 +86,7 @@ class DataPathPerformanceTests: XCTestCase {
// XCTAssertEqual(decryptedPackets, packets)
// }
// 16ms
// 0.007
func testPointerBased() {
let packets = TestUtils.generateDataSuite(1200, 1000)
var encryptedPackets: [Data]!

View File

@ -39,6 +39,7 @@ import XCTest
import CTunnelKitCore
import CTunnelKitOpenVPNProtocol
// avg on MBA M1 w/ OpenSSL 3.2.0
class EncryptionPerformanceTests: XCTestCase {
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.
}
// 1.150s
// 0.461
func testCBCEncryption() {
let suite = TestUtils.generateDataSuite(1000, 100000)
measure {
@ -77,7 +78,7 @@ class EncryptionPerformanceTests: XCTestCase {
}
}
// 0.684s
// 0.262
func testGCMEncryption() {
let suite = TestUtils.generateDataSuite(1000, 100000)
let ad: [UInt8] = [0x11, 0x22, 0x33, 0x44]