From 4940c1201e0afb6b7f407600616f2fedf2aeeb5e Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 19 Jan 2026 10:47:57 +0800 Subject: ci: Add FreeBSD --- .build.yml | 29 ----------------------------- .builds/alpine.yml | 29 +++++++++++++++++++++++++++++ .builds/freebsd.yml | 30 ++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 29 deletions(-) delete mode 100644 .build.yml create mode 100644 .builds/alpine.yml create mode 100644 .builds/freebsd.yml diff --git a/.build.yml b/.build.yml deleted file mode 100644 index e0bd8ad3..00000000 --- a/.build.yml +++ /dev/null @@ -1,29 +0,0 @@ -image: alpine/edge -packages: - - golangci-lint - - go -tasks: - - build: | - cd furgit - go build - - test-sha256: | - cd furgit - go test -v ./... - - test-sha1: | - cd furgit - go test -v -tags sha1 ./... - - test-race-sha256: | - cd furgit - go test -race -v ./... - - test-race-sha1: | - cd furgit - go test -race -v -tags sha1 ./... - - test-purego-sha256: | - cd furgit - go test -v -tags purego ./... - - lint: | - cd furgit - golangci-lint run ./... - - vet: | - cd furgit - go vet ./... diff --git a/.builds/alpine.yml b/.builds/alpine.yml new file mode 100644 index 00000000..e0bd8ad3 --- /dev/null +++ b/.builds/alpine.yml @@ -0,0 +1,29 @@ +image: alpine/edge +packages: + - golangci-lint + - go +tasks: + - build: | + cd furgit + go build + - test-sha256: | + cd furgit + go test -v ./... + - test-sha1: | + cd furgit + go test -v -tags sha1 ./... + - test-race-sha256: | + cd furgit + go test -race -v ./... + - test-race-sha1: | + cd furgit + go test -race -v -tags sha1 ./... + - test-purego-sha256: | + cd furgit + go test -v -tags purego ./... + - lint: | + cd furgit + golangci-lint run ./... + - vet: | + cd furgit + go vet ./... diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml new file mode 100644 index 00000000..8f82c35e --- /dev/null +++ b/.builds/freebsd.yml @@ -0,0 +1,30 @@ +image: freebsd/latest +packages: + - golangci-lint + - go + - go-dev +tasks: + - build: | + cd furgit + go build + - test-sha256: | + cd furgit + go test -v ./... + - test-sha1: | + cd furgit + go test -v -tags sha1 ./... + - test-race-sha256: | + cd furgit + go test -race -v ./... + - test-race-sha1: | + cd furgit + go test -race -v -tags sha1 ./... + - test-purego-sha256: | + cd furgit + go test -v -tags purego ./... + - lint: | + cd furgit + golangci-lint run ./... + - vet: | + cd furgit + go vet ./... -- cgit v1.3.1-10-gc9f91