ci: fix taskfile
This commit is contained in:
parent
ff39b47a13
commit
ccd7cf6fb2
1 changed files with 8 additions and 12 deletions
20
Taskfile.yml
20
Taskfile.yml
|
@ -1,6 +1,6 @@
|
|||
# https://taskfile.dev
|
||||
|
||||
version: '3'
|
||||
version: "3"
|
||||
|
||||
vars:
|
||||
TARGET: vss
|
||||
|
@ -9,13 +9,12 @@ includes:
|
|||
build: ./misc/Taskfile_{{OS}}.yml
|
||||
|
||||
tasks:
|
||||
|
||||
echo:
|
||||
cmds:
|
||||
- echo {{.ARCHIVE_DIR}}
|
||||
vars:
|
||||
ARCHIVE_DIR: "{{.TARGET}}_{{OS}}_{{ARCH}}"
|
||||
|
||||
|
||||
setup:
|
||||
desc: Setup vss project
|
||||
cmds:
|
||||
|
@ -35,21 +34,18 @@ tasks:
|
|||
vet:
|
||||
desc: Report suspicious code constructs
|
||||
cmds:
|
||||
- v vet *.v
|
||||
- v vet .
|
||||
|
||||
format:
|
||||
desc: Format .v files
|
||||
cmds:
|
||||
- v fmt -w *.v
|
||||
- v fmt -w commands
|
||||
- v fmt -w internal/template
|
||||
- v fmt -w internal/config/
|
||||
|
||||
- v fmt -w .
|
||||
|
||||
clean:
|
||||
desc: Clean test files
|
||||
cmds:
|
||||
- rm -rf dist/
|
||||
|
||||
|
||||
dist:
|
||||
desc: Mkdir dist
|
||||
cmds:
|
||||
|
@ -61,7 +57,7 @@ tasks:
|
|||
desc: Build vss
|
||||
cmds:
|
||||
- v . -o {{.TARGET}}
|
||||
|
||||
|
||||
prod-build:
|
||||
desc: Build vss for production
|
||||
cmds:
|
||||
|
@ -78,4 +74,4 @@ tasks:
|
|||
example-run:
|
||||
dir: example
|
||||
cmds:
|
||||
- ./vss build
|
||||
- ./vss build
|
||||
|
|
Loading…
Reference in a new issue