mirror of
https://github.com/libp2p/go-openssl.git
synced 2025-01-14 02:30:08 +08:00
add go-test-setup action
This commit is contained in:
parent
77c1db38da
commit
b84a4bc4e9
24
.github/actions/go-test-setup/action.yml
vendored
Normal file
24
.github/actions/go-test-setup/action.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
name: Go Test Setup
|
||||
description: Set up the environment for go test
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Common setup
|
||||
shell: bash
|
||||
run: |
|
||||
echo 'CGO_ENABLED=1' >> $GITHUB_ENV
|
||||
- name: Windows setup
|
||||
shell: bash
|
||||
if: ${{ runner.os == 'Windows' }}
|
||||
run: |
|
||||
echo '/c/msys64/mingw64/bin' >> $GITHUB_PATH
|
||||
echo 'PATH_386=/c/msys64/mingw32/bin:${{ env.PATH_386 }}' >> $GITHUB_ENV
|
||||
- name: Linux setup
|
||||
shell: bash
|
||||
if: ${{ runner.os == 'Linux' }}
|
||||
run: |
|
||||
sudo apt-get install gcc-multilib
|
||||
sudo dpkg --add-architecture i386
|
||||
sudo apt-get update
|
||||
sudo apt-get install libssl-dev:i386
|
||||
echo 'CC_FOR_linux_386=i686-w64-mingw32-gcc'
|
Loading…
Reference in New Issue
Block a user