From d85eb698845a944d8a314304c22dd1d4fc2a9706 Mon Sep 17 00:00:00 2001 From: galargh <piotr.galar@gmail.com> Date: Mon, 22 Nov 2021 20:40:16 +0100 Subject: [PATCH] add .github/actions/go-test-setup/action.yml --- .github/actions/go-test-setup/action.yml | 9 +++++++++ cert_test.go | 3 +++ ciphers_test.go | 3 +++ ctx_test.go | 3 +++ dh_test.go | 3 +++ hmac_test.go | 3 +++ http.go | 3 +++ key_test.go | 3 +++ md4_test.go | 3 +++ md5_test.go | 3 +++ net.go | 3 +++ sha1_test.go | 3 +++ sha256_test.go | 3 +++ ssl_test.go | 3 +++ 14 files changed, 48 insertions(+) create mode 100644 .github/actions/go-test-setup/action.yml diff --git a/.github/actions/go-test-setup/action.yml b/.github/actions/go-test-setup/action.yml new file mode 100644 index 0000000..c2eae47 --- /dev/null +++ b/.github/actions/go-test-setup/action.yml @@ -0,0 +1,9 @@ +name: Go Test Setup +description: Set up the environment for go test +runs: + using: "composite" + steps: + - name: Windows setup + shell: bash + if: ${{ runner.os == 'Windows' }} + run: echo 'PKG_CONFIG=C:/msys64/mingw64/bin/pkgconf' >> $GITHUB_ENV diff --git a/cert_test.go b/cert_test.go index 45107a0..7e17218 100644 --- a/cert_test.go +++ b/cert_test.go @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !386 +// +build !386 + package openssl import ( diff --git a/ciphers_test.go b/ciphers_test.go index 0f1e340..80d6e61 100644 --- a/ciphers_test.go +++ b/ciphers_test.go @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !386 +// +build !386 + package openssl import ( diff --git a/ctx_test.go b/ctx_test.go index cd2a82a..effd5b3 100644 --- a/ctx_test.go +++ b/ctx_test.go @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !386 +// +build !386 + package openssl import ( diff --git a/dh_test.go b/dh_test.go index 811020b..80d8ac0 100644 --- a/dh_test.go +++ b/dh_test.go @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !386 +// +build !386 + package openssl import ( diff --git a/hmac_test.go b/hmac_test.go index 57e951e..7959ddd 100644 --- a/hmac_test.go +++ b/hmac_test.go @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !386 +// +build !386 + package openssl import ( diff --git a/http.go b/http.go index 39bd5a2..98b3bfd 100644 --- a/http.go +++ b/http.go @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !386 +// +build !386 + package openssl import ( diff --git a/key_test.go b/key_test.go index 2038a2e..f7b49f0 100644 --- a/key_test.go +++ b/key_test.go @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !386 +// +build !386 + package openssl import ( diff --git a/md4_test.go b/md4_test.go index b31c7e6..94aceb2 100644 --- a/md4_test.go +++ b/md4_test.go @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !386 +// +build !386 + package openssl import ( diff --git a/md5_test.go b/md5_test.go index 46fb93a..cc13a17 100644 --- a/md5_test.go +++ b/md5_test.go @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !386 +// +build !386 + package openssl import ( diff --git a/net.go b/net.go index 54beb8e..c897875 100644 --- a/net.go +++ b/net.go @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !386 +// +build !386 + package openssl import ( diff --git a/sha1_test.go b/sha1_test.go index 37808b5..f68ba82 100644 --- a/sha1_test.go +++ b/sha1_test.go @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !386 +// +build !386 + package openssl import ( diff --git a/sha256_test.go b/sha256_test.go index 467e503..e205eba 100644 --- a/sha256_test.go +++ b/sha256_test.go @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !386 +// +build !386 + package openssl import ( diff --git a/ssl_test.go b/ssl_test.go index dea3bdd..e617baa 100644 --- a/ssl_test.go +++ b/ssl_test.go @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !386 +// +build !386 + package openssl import (