From 9c5fbf645282a0602be3827bde157ee02ca9b0c2 Mon Sep 17 00:00:00 2001 From: MacOMNI <414294494@qq.com> Date: Fri, 30 Aug 2024 09:42:27 +0800 Subject: [PATCH] update cache apt --- .github/workflows/ci.yml | 15 ------------ Networking/Package.resolved | 24 +++++++++++++++++++ .../Sources/Networking/msquic/Alpn.swift | 4 ---- .../Tests/NetworkingTests/QuicApiTest.swift | 4 +--- 4 files changed, 25 insertions(+), 22 deletions(-) create mode 100644 Networking/Package.resolved diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29d93daa..79e72a84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,21 +31,6 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive - - name: Cache APT lists - uses: actions/cache@v4 - with: - path: /var/lib/apt/lists - key: ${{ runner.os }}-apt-lists-${{ hashFiles('Networking/Sources/msquic/**') }} - restore-keys: | - ${{ runner.os }}-apt-lists- - - name: Cache APT packages - uses: actions/cache@v4 - with: - path: /var/cache/apt - key: ${{ runner.os }}-apt-${{ hashFiles('Networking/Sources/msquic/**') }} - restore-keys: | - ${{ runner.os }}-apt- - - name: MsQuic Install Dependencies run: | export DEBIAN_FRONTEND=noninteractive diff --git a/Networking/Package.resolved b/Networking/Package.resolved new file mode 100644 index 00000000..2f1d340c --- /dev/null +++ b/Networking/Package.resolved @@ -0,0 +1,24 @@ +{ + "originHash" : "bd5f3f85ebdcb8bf9b1a06c34f5ca494e0d3d3a581cbea4b4d5f75d13d2b0bf1", + "pins" : [ + { + "identity" : "swift-syntax", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-syntax.git", + "state" : { + "revision" : "515f79b522918f83483068d99c68daeb5116342d", + "version" : "600.0.0-prerelease-2024-08-20" + } + }, + { + "identity" : "swift-testing", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-testing.git", + "state" : { + "branch" : "0.10.0", + "revision" : "69d59cfc76e5daf498ca61f5af409f594768eef9" + } + } + ], + "version" : 3 +} diff --git a/Networking/Sources/Networking/msquic/Alpn.swift b/Networking/Sources/Networking/msquic/Alpn.swift index 85ab7b4d..7119cdc7 100644 --- a/Networking/Sources/Networking/msquic/Alpn.swift +++ b/Networking/Sources/Networking/msquic/Alpn.swift @@ -43,8 +43,4 @@ struct Alpn { } ) } - - var rawValuePointer: UnsafePointer { - withUnsafePointer(to: rawValue) { $0 } - } } diff --git a/Networking/Tests/NetworkingTests/QuicApiTest.swift b/Networking/Tests/NetworkingTests/QuicApiTest.swift index a74690b4..368ef33c 100644 --- a/Networking/Tests/NetworkingTests/QuicApiTest.swift +++ b/Networking/Tests/NetworkingTests/QuicApiTest.swift @@ -1,7 +1,5 @@ import Testing -#if os(Linux) -// need to check -#elseif os(macOS) +#if os(macOS) import CoreFoundation import Security #endif