From 49d243770017e065bf236d4c8b1dd4de0c42ff61 Mon Sep 17 00:00:00 2001 From: Bruce Collie Date: Tue, 21 May 2024 20:29:14 +0100 Subject: [PATCH 1/2] Switch to macos 14 only --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 257a7695..f42f0c81 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - os: [macos-12, macos-13] + os: [macos-14] steps: - name: 'Check out code' From 84057270d276cc504048140d2230a44b249b7b48 Mon Sep 17 00:00:00 2001 From: Bruce Collie Date: Tue, 21 May 2024 21:11:12 +0100 Subject: [PATCH 2/2] Remove old crypto library --- .github/workflows/test.yaml | 3 --- Formula/cryptopp@8.3.0.rb | 34 ---------------------------------- 2 files changed, 37 deletions(-) delete mode 100644 Formula/cryptopp@8.3.0.rb diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f42f0c81..7d7386f1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -24,9 +24,6 @@ jobs: brew install --build-from-source --verbose kframework - brew install --build-from-source --verbose cryptopp@8.3.0 - brew unlink cryptopp@8.3.0 - brew install --build-from-source --verbose cryptopp@8.6.0 brew unlink cryptopp@8.6.0 diff --git a/Formula/cryptopp@8.3.0.rb b/Formula/cryptopp@8.3.0.rb deleted file mode 100644 index 7b7388a7..00000000 --- a/Formula/cryptopp@8.3.0.rb +++ /dev/null @@ -1,34 +0,0 @@ -class CryptoppAT830 < Formula - desc "Free C++ class library of cryptographic schemes" - homepage "https://www.cryptopp.com/" - url "https://github.com/weidai11/cryptopp/archive/CRYPTOPP_8_3_0.tar.gz" - sha256 "63304c6f943f435a4e385273e15abb69cff3b85a44663150bf5a6069b84abd43" - - pour_bottle? do - false - end - - def install - system "make", "shared", "all", "CXX=#{ENV.cxx}" - system "./cryptest.exe", "v" - system "make", "install", "PREFIX=#{prefix}" - end - - test do - (testpath/"test.cpp").write <<~EOS - #include - #include - using namespace CryptoPP; - using namespace std; - int main() - { - byte digest[SHA1::DIGESTSIZE]; - string data = "Hello World!"; - SHA1().CalculateDigest(digest, (byte*) data.c_str(), data.length()); - return 0; - } - EOS - system ENV.cxx, "test.cpp", "-L#{lib}", "-lcryptopp", "-o", "test" - system "./test" - end -end