Add package crypto, move files from tongsuogo to crypto #31
Workflow file for this run
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 workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- name: Go fmt Check | |
uses: Jerome1337/[email protected] | |
with: | |
gofmt-path: './' | |
gofmt-flags: '-l -d' | |
- name: Clone Tongsuo | |
uses: actions/checkout@v3 | |
with: | |
repository: Tongsuo-Project/Tongsuo | |
path: tongsuo | |
ref: 8.3-stable | |
- name: Build Tongsuo | |
run: | | |
cd tongsuo | |
./config --prefix=/opt/tongsuo --libdir=/opt/tongsuo/lib enable-ntls | |
make -j4 | |
make install | |
- name: Go Mod | |
run: go mod tidy | |
- name: Go vet Check | |
run: go vet ./... | |
- name: Build | |
run: go build | |
- name: Test | |
run: LD_LIBRARY_PATH=/opt/tongsuo/lib go test ./... |