From 98e2f59230bb67050d2037beffc78d29fd8a12f6 Mon Sep 17 00:00:00 2001 From: kevin9936 <134139194+kevin9936@users.noreply.github.com> Date: Fri, 29 Mar 2024 13:40:43 +0800 Subject: [PATCH] modify workflow config --- .github/workflows/main.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 7c6cee6e..7d409048 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -44,6 +44,14 @@ jobs: run: | npm install npm install -g ganache + + - name: modify openssl.cnf + run: | + sudo chmod -R 777 /usr/lib/ssl/openssl.cnf + sudo sed -i 's/^#openssl_conf = openssl_init/openssl_conf = openssl_init/' /usr/lib/ssl/openssl.cnf + sudo sed -i '/^\[provider_sect\]$/,/^\[/ s/^default = default_sect$/&\nlegacy = legacy_sect/' /usr/lib/ssl/openssl.cnf + sudo sed -i 's/^# activate = 1/activate = 1/' /usr/lib/ssl/openssl.cnf + sudo echo -e "\n[legacy_sect]\nactivate = 1" >> /usr/lib/ssl/openssl.cnf - name: Run tests run: |