mirror of
https://github.com/chainreactors/spray.git
synced 2026-10-24 08:54:30 +00:00
Replace upstream wasilibs/go-re2 with chainreactors/go-re2 fork that bundles pre-built libre2_cre2.a static archives. Build tag re2_cgo + re2_static selects the bundled archive and statically links libstdc++ and libgcc, producing binaries with zero C++ runtime dependencies. Removes libre2-dev/g++ install steps from CI — no longer needed. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
76 lines
1.6 KiB
YAML
76 lines
1.6 KiB
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
basic-linux:
|
|
name: basic checks (ubuntu)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: go.mod
|
|
cache: true
|
|
|
|
|
|
- name: Download dependencies
|
|
run: go mod download
|
|
|
|
- name: Test
|
|
run: go test -tags "re2_cgo re2_static" -count=1 -timeout 300s ./...
|
|
|
|
- name: Test (race detector)
|
|
run: go test -tags "re2_cgo re2_static" -race -count=1 -timeout 300s ./...
|
|
|
|
- name: Vet
|
|
run: go vet -tags "re2_cgo re2_static" ./...
|
|
|
|
- name: Build packages
|
|
run: go build -tags "re2_cgo re2_static" ./...
|
|
|
|
basic-windows:
|
|
name: basic checks (windows)
|
|
runs-on: windows-latest
|
|
defaults:
|
|
run:
|
|
shell: msys2 {0}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Setup MSYS2
|
|
uses: msys2/setup-msys2@v2
|
|
with:
|
|
msystem: MINGW64
|
|
update: true
|
|
pacboy: gcc:p go:p
|
|
|
|
- name: Download dependencies
|
|
run: go mod download
|
|
|
|
- name: Test
|
|
run: go test -tags "re2_cgo re2_static" -count=1 -timeout 300s ./...
|
|
|
|
- name: Vet
|
|
run: go vet -tags "re2_cgo re2_static" ./...
|
|
|
|
- name: Build packages
|
|
run: go build -tags "re2_cgo re2_static" ./...
|