Skip to content

Commit

Permalink
chore(ci): use self-hosted runner (bytedance#114)
Browse files Browse the repository at this point in the history
* chore(ci): use self-hosted runner

* fix lint
  • Loading branch information
PureWhiteWu authored Jan 18, 2022
1 parent 6e91490 commit 3e42f75
Show file tree
Hide file tree
Showing 20 changed files with 30 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: self-hosted
permissions:
actions: read
contents: read
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17

- uses: actions/cache@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/feishu-notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
pr-opened:
name: Pull Request Opened Notification
if: ${{ github.event_name == 'pull_request' && github.event.action == 'opened' }}
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Send Feishu Message
env:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/pr-benchdiff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
outputs:
triggered: ${{ steps.output.outputs.triggered }}
pr_number: ${{ steps.output.outputs.pr_number }}
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Check pull request comment
if: ${{ github.event_name == 'issue_comment' }}
Expand All @@ -35,7 +35,7 @@ jobs:
name: Performance regression check
needs: [trigger]
if: needs.trigger.outputs.triggered == 'true'
runs-on: ubuntu-latest
runs-on: self-hosted
env:
# In markdown URL syntax
RUNS_URL: '[${{ github.workflow }} #${{ github.run_number }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})'
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17
- name: Benchdiff
uses: WillAbides/[email protected]
id: diff
Expand All @@ -94,6 +94,7 @@ jobs:
status_name: Benchdiff result
status_on_degraded: neutral
benchdiff_args: |
--cpu=4
--packages="${{ steps.head.outputs.pkgs }}"
--count=10
--warmup-count=1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v2

Expand All @@ -17,7 +17,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17

- uses: actions/cache@v2
with:
Expand All @@ -27,4 +27,4 @@ jobs:
${{ runner.os }}-go-
- name: Benchmark
run: go test -bench=. -benchmem -run=none ./...
run: go test -bench=. -cpu=4 -benchmem -run=none ./...
6 changes: 3 additions & 3 deletions .github/workflows/push-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17

- uses: actions/cache@v2
with:
Expand All @@ -34,4 +34,4 @@ jobs:
go vet -stdmethods=false $(go list ./...)
- name: Unit Test
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
run: go test -v -cpu=4 -race -covermode=atomic -coverprofile=coverage.out ./...
1 change: 1 addition & 0 deletions collection/hashset/types_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions collection/lscq/asm.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build amd64 && !gccgo && !appengine
// +build amd64,!gccgo,!appengine

package lscq
Expand Down
1 change: 1 addition & 0 deletions collection/lscq/types_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions collection/skipmap/types_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions collection/skipset/types_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build ignore
// +build ignore

package main
Expand Down
2 changes: 2 additions & 0 deletions internal/runtimex/readunaligned.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build 386 || amd64 || arm || arm64 || ppc64le || mips64le || mipsle || riscv64 || wasm
// +build 386 amd64 arm arm64 ppc64le mips64le mipsle riscv64 wasm

//
// from golang-go/src/os/endian_big.go

Expand Down
2 changes: 2 additions & 0 deletions internal/runtimex/readunaligned_bigendian.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build ppc64 || s390x || mips || mips64
// +build ppc64 s390x mips mips64

//
// from golang-go/src/os/endian_little.go

Expand Down
1 change: 1 addition & 0 deletions lang/mcache/bsr_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !amd64
// +build !amd64

package mcache
Expand Down
1 change: 1 addition & 0 deletions lang/syncx/linkname.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !race
// +build !race

package syncx
Expand Down
1 change: 1 addition & 0 deletions lang/syncx/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !race
// +build !race

package syncx
Expand Down
1 change: 1 addition & 0 deletions lang/syncx/pool_race.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build race
// +build race

package syncx
Expand Down
1 change: 1 addition & 0 deletions lang/syncx/poolqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !race
// +build !race

package syncx
Expand Down
1 change: 1 addition & 0 deletions util/xxhash3/internal/avo/avx.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions util/xxhash3/internal/avo/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions util/xxhash3/internal/avo/sse.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build ignore
// +build ignore

package main
Expand Down

0 comments on commit 3e42f75

Please sign in to comment.