Merge branch 'cgo' #1
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: Tests golang bindings for shake-a64 implementation | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
runs-on: ${{ matrix.OS }} | |
strategy: | |
matrix: | |
OS: ["macos-latest"] # This choice ensures the test runs on arm64 | |
go-version: ["1.22.x"] | |
hash: | |
- shake | |
size: | |
- 128 | |
- 192 | |
- 256 | |
option: | |
- s | |
- f | |
thash: | |
- simple | |
- robust | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Run go build | |
run: | | |
go build --tags=shake_a64,sphincs_${{ matrix.hash }}_${{ matrix.size }}${{ matrix.option }} -v ./shake-a64/... | |
- name: Run go test | |
run: | | |
go test --tags=shake_a64,sphincs_${{ matrix.hash }}_${{ matrix.size }}${{ matrix.option }} -v ./shake-a64/... | |
# vim: set ft=yaml ts=2 sw=2 et : |