Skip to content

Commit

Permalink
chore(ci): use ubuntu-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyunhao116 committed Dec 11, 2024
1 parent 780ca9e commit 79b4d68
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 7 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: self-hosted
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
Expand All @@ -50,7 +50,7 @@ jobs:
with:
go-version: 1.18

- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand Down
23 changes: 19 additions & 4 deletions .github/workflows/push-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,25 @@ on:
- '**.md'

jobs:
unittest:
strategy:
matrix:
go: [ "1.18", "1.19", "1.20", "1.21", "1.22", "1.23" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: true

- name: Unit Test
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./...

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

Expand All @@ -19,7 +36,7 @@ jobs:
with:
go-version: 1.18

- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -36,5 +53,3 @@ jobs:
test -z "$(gofmt -s -l .)"
go vet -stdmethods=false $(go list ./...)
- name: Unit Test
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
17 changes: 16 additions & 1 deletion collection/lscq/asm_arm64.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
// Copyright 2024 ByteDance Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

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

package lscq

import (
"golang.org/x/sys/cpu"
"runtime"
"unsafe"

"golang.org/x/sys/cpu"
)

var arm64HasAtomics = detectArm64HasAtomics()
Expand Down
14 changes: 14 additions & 0 deletions collection/lscq/asm_arm64.s
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2024 ByteDance Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "textflag.h"
#include "funcdata.h"

Expand Down
14 changes: 14 additions & 0 deletions collection/skipmap/bench_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2024 ByteDance Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package skipmap

import (
Expand Down

0 comments on commit 79b4d68

Please sign in to comment.