-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from katzenpost/fix_ctidh.1
Fix ctidh compatibility build tags
- Loading branch information
Showing
29 changed files
with
411 additions
and
241 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
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,47 @@ | ||
name: MacOS Golang build and test | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.OS }} | ||
strategy: | ||
matrix: | ||
OS: ["macos-14"] | ||
go-version: ["1.21.x", "1.22.0"] | ||
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: Display Go version | ||
shell: bash | ||
run: go version | ||
|
||
- name: Install golang dependencies | ||
shell: bash | ||
run: | | ||
export HIGHCTIDH_PORTABLE=1 | ||
export CGO_ENABLED=1 | ||
go get -v ./... | ||
- name: Build golang | ||
shell: bash | ||
run: | | ||
export HIGHCTIDH_PORTABLE=1 | ||
export CGO_ENABLED=1 | ||
go build -v ./... | ||
- name: Golang test | ||
shell: bash | ||
run: | | ||
export HIGHCTIDH_PORTABLE=1 | ||
export CGO_ENABLED=1 | ||
go test -v ./... | ||
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,35 @@ | ||
name: Go cross compile | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
CC: ["clang"] | ||
ARCH: ["amd64", "arm32v5", "arm32v6", "arm32v7", "i386", "arm64", "mips64", "mips64le", "mips", "mipsle", "ppc64", "ppc64le", "riscv64", "s390x"] | ||
go-version: [ '1.19', '1.20', '1.21.x' ] | ||
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: Display Go version | ||
run: go version | ||
|
||
- name: Install Golang deps | ||
run: sudo ./misc/install-debian-go-deps-by-arch.sh ${{ matrix.ARCH }} | ||
|
||
- name: Install Go (from go.mod) | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: go.mod | ||
check-latest: true | ||
- name: Run tests | ||
run: go test -v ./... |
72 changes: 72 additions & 0 deletions
72
.github/workflows/windows-msys-64bit-gcc-ucrt-msvcrt-golang-test.yml
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,72 @@ | ||
name: Windows Msys2 64bit (cygwin,msvcrt,ucrt) gcc golang build and test | ||
|
||
on: [push] | ||
|
||
jobs: | ||
windows-build-and-test-golang: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
OS: ["windows-2019", "windows-2022"] | ||
CC: ["gcc"] | ||
ENVIRONMENT: ["UCRT64", "MINGW64"] # https://www.msys2.org/docs/environments/ | ||
go-version: [ "1.21.x", "1.22.x"] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Msys2 | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: ${{ matrix.ENVIRONMENT }} | ||
install: >- | ||
base-devel | ||
mingw-w64-x86_64-toolchain | ||
mingw-w64-x86_64-pkg-config | ||
mingw-w64-x86_64-gcc | ||
mingw-w64-ucrt-x86_64-gcc | ||
mingw-w64-x86_64-go | ||
mingw-w64-ucrt-x86_64-go | ||
make | ||
git | ||
gcc | ||
- name: Setup Go ${{ matrix.go-version }} | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Gather runtime environment | ||
shell: msys2 {0} | ||
run: | | ||
echo ${{ matrix.ENVIRONMENT }} | ||
uname -a | ||
bash --version | ||
${{ matrix.CC }} -v | ||
go version | ||
- name: Install golang dependencies | ||
shell: bash | ||
run: | | ||
export HIGHCTIDH_PORTABLE=1 | ||
export CGO_ENABLED=1 | ||
go get -v ./... | ||
- name: Build golang | ||
shell: msys2 {0} | ||
run: | | ||
export HIGHCTIDH_PORTABLE=1 | ||
export CGO_ENABLED=1 | ||
export GOEXPERIMENT=cgocheck2 | ||
export GODEBUG=cgocheck=1 | ||
go build -v ./... | ||
- name: Golang test | ||
shell: msys2 {0} | ||
run: | | ||
export HIGHCTIDH_PORTABLE=1 | ||
export CGO_ENABLED=1 | ||
export GOEXPERIMENT=cgocheck2 | ||
export GODEBUG=cgocheck=1 | ||
export CGO_LDFLAGS="-Wl,--no-as-needed -Wl,-allow-multiple-definition" | ||
go test -v ./... |
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
Oops, something went wrong.