-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
44 lines (37 loc) · 889 Bytes
/
mise.toml
File metadata and controls
44 lines (37 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[tools]
go = "latest"
golangci-lint = "latest"
"go:golang.org/x/vuln/cmd/govulncheck" = "latest"
[env]
CGO_ENABLED = 0
MA_VER = "0.11.25"
[tasks.test]
description = "Run Go tests"
run = "go test ./..."
[tasks.build]
depends = ["generate"]
description = "Build test"
run = "go build ./..."
sources = ["**/*.go"]
[tasks.build-lib]
description = "Build the native miniaudio lib"
run = "go run ./internal/cmd/buildlib"
sources = ["miniaudio.h", "native/miniaudio_bridge.c"]
[tasks.generate]
hide = true
description = "Run go generate (internal task)"
run = "go generate ./..."
sources = ["**/*.go"]
[tasks.lint]
description = "Run Go linting (golangci-lint + govulncheck)"
run = """
#!/usr/bin/env bash
set -euo pipefail
golangci-lint run ./...
govulncheck ./...
"""
sources = ["**/*.go"]
[tasks.fmt]
description = "Format Go code"
run = "golangci-lint fmt ./..."
sources = ["**/*.go"]