mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
parent
e9a4d99f6a
commit
d378c12107
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@ -67,6 +67,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
go vet -tags=example -v ./...
|
go vet -tags=example -v ./...
|
||||||
|
|
||||||
|
- name: go vet (atomic align)
|
||||||
|
run: |
|
||||||
|
go install .github/workflows/vettools/atomicalign.go
|
||||||
|
go vet -vettool=$(which atomicalign) -tags=example -v ./...
|
||||||
|
|
||||||
- name: go build
|
- name: go build
|
||||||
run: |
|
run: |
|
||||||
go build -tags=example -v ./...
|
go build -tags=example -v ./...
|
||||||
|
27
.github/workflows/vettools/atomicalign.go
vendored
Normal file
27
.github/workflows/vettools/atomicalign.go
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
// Copyright 2021 The Ebiten Authors
|
||||||
|
//
|
||||||
|
// 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 ignore
|
||||||
|
// +build ignore
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"golang.org/x/tools/go/analysis/multichecker"
|
||||||
|
"golang.org/x/tools/go/analysis/passes/atomicalign"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
multichecker.Main(atomicalign.Analyzer)
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user