Allows filling structs/maps/slices with the actual type in addition t… #482
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
name: Test/Lint/Fmt/Vet | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: golang:1 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get latest chiavdf libs | |
run: | | |
apt-get update && apt-get install -y unzip libgmp-dev | |
LATEST_CHIAVDF=$(curl -s https://latest.cmm.io/chiavdf) | |
echo "Latest chiavdf is: $LATEST_CHIAVDF" | |
mkdir chiavdfc | |
cd chiavdfc || exit 1 | |
wget https://github.com/Chia-Network/chiavdf/releases/download/$LATEST_CHIAVDF/chiavdfc-ubuntu-intel.zip | |
unzip chiavdfc-ubuntu-intel.zip | |
echo "CGO_CFLAGS=-I${GITHUB_WORKSPACE}/chiavdfc/chiavdfc-ubuntu-intel" >> "$GITHUB_ENV" | |
echo "CGO_LDFLAGS=-L${GITHUB_WORKSPACE}/chiavdfc/chiavdfc-ubuntu-intel/static" >> "$GITHUB_ENV" | |
- name: Test | |
run: make test |