Skip to content

Commit

Permalink
Bump major version to v2. Drop support for the old riscv in favor of …
Browse files Browse the repository at this point in the history
…the official riscv64 (see #168).
  • Loading branch information
creack committed Oct 28, 2023
1 parent 9e7704e commit a425b37
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 31 deletions.
23 changes: 0 additions & 23 deletions Dockerfile.riscv

This file was deleted.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/creack/pty
module github.com/creack/pty/v2

go 1.18
10 changes: 3 additions & 7 deletions test_crosscompile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,12 @@ if ! hash docker; then
return
fi

echo2 "Build for linux."
echo2 " - linux/riscv"
docker build -t creack-pty-test -f Dockerfile.riscv .

# Golang dropped support for darwin 32bits since go1.15. Make sure the lib still compile with go1.18.2 on those archs.
# Golang dropped support for darwin 32bits since go1.15. Make sure the lib still compile with go1.14 on those archs.
echo2 "Build for darwin (32bits)."
echo2 " - darwin/386"
docker build -t creack-pty-test -f Dockerfile.golang --build-arg=GOVERSION=1.18.2 --build-arg=GOOS=darwin --build-arg=GOARCH=386 .
docker build -t creack-pty-test -f Dockerfile.golang --build-arg=GOVERSION=1.14 --build-arg=GOOS=darwin --build-arg=GOARCH=386 .
echo2 " - darwin/arm"
docker build -t creack-pty-test -f Dockerfile.golang --build-arg=GOVERSION=1.18.2 --build-arg=GOOS=darwin --build-arg=GOARCH=arm .
docker build -t creack-pty-test -f Dockerfile.golang --build-arg=GOVERSION=1.14 --build-arg=GOOS=darwin --build-arg=GOARCH=arm .

# Run a single test for an old go version. Would be best with go1.0, but not available on Dockerhub.
# Using 1.6 as it is the base version for the RISCV compiler.
Expand Down

0 comments on commit a425b37

Please sign in to comment.