-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: drop go-openssl in favor of go1.19's boringcrypto
- Loading branch information
Showing
12 changed files
with
155 additions
and
393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Workflow to test libp2p with boringcrypto enabled | ||
|
||
on: [push, pull_request] | ||
name: Go Boring | ||
|
||
jobs: | ||
unit: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ "ubuntu" ] | ||
go: [ "go1.19" ] | ||
env: | ||
COVERAGES: "" | ||
runs-on: ${{ format('{0}-latest', matrix.os) }} | ||
name: ${{ matrix.os }} (${{ matrix.go }}) | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: build Go with boringcrypto enabled | ||
run: | | ||
cd /tmp | ||
git clone https://go.googlesource.com/go -b "$TARGET" --depth 1 | ||
cd go/src | ||
export GOEXPERIMENT="boringcrypto" | ||
./make.bash | ||
echo "/tmp/go/bin" >> $GITHUB_PATH | ||
env: | ||
TARGET: ${{ matrix.go }} | ||
- name: Go information | ||
run: | | ||
go version | ||
go env | ||
- name: Run repo-specific setup | ||
uses: ./.github/actions/go-test-setup | ||
if: hashFiles('./.github/actions/go-test-setup') != '' | ||
- name: Run tests | ||
uses: protocol/[email protected] | ||
with: | ||
run: go test -v -shuffle=on ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
//go:build openssl && !nonLibp2pOpenssl | ||
// +build openssl,!nonLibp2pOpenssl | ||
|
||
package crypto | ||
|
||
var _ = 0 + "" // libp2p's openssl tag has been removed and is now replaced by go's boringcrypto experiment, see https://github.com/libp2p/go-libp2p#boringcrypto, if this is a mistake and the openssl tag is conflicting with your build process you can add the nonLibp2pOpenssl tag to ignore this error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.