Skip to content

Commit e55ab50

Browse files
M09Icclaude
andcommitted
chore: normalize line endings (CRLF → LF)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d6ecf41 commit e55ab50

20 files changed

Lines changed: 2643 additions & 2643 deletions

.github/workflows/ci.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
name: CI
2-
3-
on:
4-
pull_request:
5-
branches: [ master ]
6-
push:
7-
branches: [ master ]
8-
9-
jobs:
10-
test:
11-
strategy:
12-
matrix:
13-
os: [ubuntu-latest, windows-latest]
14-
runs-on: ${{ matrix.os }}
15-
steps:
16-
- name: Checkout
17-
uses: actions/checkout@v4
18-
with:
19-
submodules: recursive
20-
21-
- name: Set up Go
22-
uses: actions/setup-go@v5
23-
with:
24-
go-version: "1.20"
25-
26-
- name: Build
27-
run: go build ./...
28-
29-
- name: Test (race)
30-
run: go test ./core/pool/ ./core/baseline/ ./core/ihttp/ ./pkg/ -v -race -count=1 -timeout=120s
31-
32-
- name: Vet
33-
run: go vet ./core/... ./pkg/... ./cmd/...
34-
continue-on-error: true
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
push:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, windows-latest]
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
submodules: recursive
20+
21+
- name: Set up Go
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version: "1.20"
25+
26+
- name: Build
27+
run: go build ./...
28+
29+
- name: Test (race)
30+
run: go test ./core/pool/ ./core/baseline/ ./core/ihttp/ ./pkg/ -v -race -count=1 -timeout=120s
31+
32+
- name: Vet
33+
run: go vet ./core/... ./pkg/... ./cmd/...
34+
continue-on-error: true

.github/workflows/gorelease.yml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
name: goreleaser
2-
3-
on:
4-
push:
5-
tags:
6-
- 'v*.*.*'
7-
workflow_dispatch:
8-
9-
jobs:
10-
goreleaser:
11-
runs-on: ubuntu-22.04
12-
steps:
13-
-
14-
name: Checkout
15-
uses: actions/checkout@v3
16-
with:
17-
fetch-depth: 0
18-
token: ${{ secrets.GITHUB_TOKEN }}
19-
submodules: recursive
20-
21-
- name: Install upx
22-
run: sudo apt install upx -y
23-
continue-on-error: true
24-
25-
-
26-
name: Set up Go
27-
uses: actions/setup-go@v3
28-
with:
29-
go-version: "1.20"
30-
-
31-
name: Run GoReleaser
32-
uses: goreleaser/goreleaser-action@v4
33-
with:
34-
distribution: goreleaser
35-
version: latest
36-
args: release
37-
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
GOPATH: "/home/runner/go"
40-
1+
name: goreleaser
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
workflow_dispatch:
8+
9+
jobs:
10+
goreleaser:
11+
runs-on: ubuntu-22.04
12+
steps:
13+
-
14+
name: Checkout
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
submodules: recursive
20+
21+
- name: Install upx
22+
run: sudo apt install upx -y
23+
continue-on-error: true
24+
25+
-
26+
name: Set up Go
27+
uses: actions/setup-go@v3
28+
with:
29+
go-version: "1.20"
30+
-
31+
name: Run GoReleaser
32+
uses: goreleaser/goreleaser-action@v4
33+
with:
34+
distribution: goreleaser
35+
version: latest
36+
args: release
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
GOPATH: "/home/runner/go"
40+

.gitignore

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# Binaries for programs and plugins
2-
*.exe
3-
*.exe~
4-
*.dll
5-
*.so
6-
*.dylib
7-
8-
# Test binary, built with `go test -c`
9-
*.test
10-
11-
# Output of the go coverage tool, specifically when used with LiteIDE
12-
*.out
13-
14-
# Dependency directories (remove the comment below to include it)
15-
# vendor/
16-
.idea/
17-
bin/
18-
*.stat
19-
spray
1+
# Binaries for programs and plugins
2+
*.exe
3+
*.exe~
4+
*.dll
5+
*.so
6+
*.dylib
7+
8+
# Test binary, built with `go test -c`
9+
*.test
10+
11+
# Output of the go coverage tool, specifically when used with LiteIDE
12+
*.out
13+
14+
# Dependency directories (remove the comment below to include it)
15+
# vendor/
16+
.idea/
17+
bin/
18+
*.stat
19+
spray

.goreleaser.yml

Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
1-
project_name: spray
2-
3-
before:
4-
hooks:
5-
- go mod tidy
6-
- go generate
7-
8-
builds:
9-
-
10-
main: .
11-
binary: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
12-
goos:
13-
- windows
14-
- linux
15-
- darwin
16-
goarch:
17-
- amd64
18-
- "386"
19-
- arm64
20-
ignore:
21-
- goos: windows
22-
goarch: arm64
23-
- goos: darwin
24-
goarch: "386"
25-
ldflags: "-s -w -X 'github.com/chainreactors/spray/cmd.ver=={{ .Tag }}'"
26-
flags:
27-
- -trimpath
28-
asmflags:
29-
- all=-trimpath={{.Env.GOPATH}}
30-
gcflags:
31-
- all=-trimpath={{.Env.GOPATH}}
32-
no_unique_dist_dir: true
33-
env:
34-
- CGO_ENABLED=0
35-
tags:
36-
- forceposix
37-
- osusergo
38-
- netgo
39-
40-
upx:
41-
-
42-
enabled: true
43-
goos: [linux, windows]
44-
goarch:
45-
- amd64
46-
- "386"
47-
48-
archives:
49-
-
50-
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
51-
format: binary
52-
53-
checksum:
54-
name_template: "{{ .ProjectName }}_checksums.txt"
55-
56-
changelog:
57-
sort: desc
58-
filters:
59-
exclude:
60-
- '^MERGE'
61-
- "{{ .Tag }}"
62-
- "^docs"
63-
64-
release:
65-
github:
66-
owner: chainreactors
67-
name: spray
68-
draft: true
1+
project_name: spray
2+
3+
before:
4+
hooks:
5+
- go mod tidy
6+
- go generate
7+
8+
builds:
9+
-
10+
main: .
11+
binary: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
12+
goos:
13+
- windows
14+
- linux
15+
- darwin
16+
goarch:
17+
- amd64
18+
- "386"
19+
- arm64
20+
ignore:
21+
- goos: windows
22+
goarch: arm64
23+
- goos: darwin
24+
goarch: "386"
25+
ldflags: "-s -w -X 'github.com/chainreactors/spray/cmd.ver=={{ .Tag }}'"
26+
flags:
27+
- -trimpath
28+
asmflags:
29+
- all=-trimpath={{.Env.GOPATH}}
30+
gcflags:
31+
- all=-trimpath={{.Env.GOPATH}}
32+
no_unique_dist_dir: true
33+
env:
34+
- CGO_ENABLED=0
35+
tags:
36+
- forceposix
37+
- osusergo
38+
- netgo
39+
40+
upx:
41+
-
42+
enabled: true
43+
goos: [linux, windows]
44+
goarch:
45+
- amd64
46+
- "386"
47+
48+
archives:
49+
-
50+
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
51+
format: binary
52+
53+
checksum:
54+
name_template: "{{ .ProjectName }}_checksums.txt"
55+
56+
changelog:
57+
sort: desc
58+
filters:
59+
exclude:
60+
- '^MERGE'
61+
- "{{ .Tag }}"
62+
- "^docs"
63+
64+
release:
65+
github:
66+
owner: chainreactors
67+
name: spray
68+
draft: true

0 commit comments

Comments
 (0)