ci: fix taskfile

This commit is contained in:
zztkm 2023-08-05 16:46:02 +09:00
parent ff39b47a13
commit ccd7cf6fb2

View file

@ -1,6 +1,6 @@
# https://taskfile.dev # https://taskfile.dev
version: '3' version: "3"
vars: vars:
TARGET: vss TARGET: vss
@ -9,13 +9,12 @@ includes:
build: ./misc/Taskfile_{{OS}}.yml build: ./misc/Taskfile_{{OS}}.yml
tasks: tasks:
echo: echo:
cmds: cmds:
- echo {{.ARCHIVE_DIR}} - echo {{.ARCHIVE_DIR}}
vars: vars:
ARCHIVE_DIR: "{{.TARGET}}_{{OS}}_{{ARCH}}" ARCHIVE_DIR: "{{.TARGET}}_{{OS}}_{{ARCH}}"
setup: setup:
desc: Setup vss project desc: Setup vss project
cmds: cmds:
@ -35,21 +34,18 @@ tasks:
vet: vet:
desc: Report suspicious code constructs desc: Report suspicious code constructs
cmds: cmds:
- v vet *.v - v vet .
format: format:
desc: Format .v files desc: Format .v files
cmds: cmds:
- v fmt -w *.v - v fmt -w .
- v fmt -w commands
- v fmt -w internal/template
- v fmt -w internal/config/
clean: clean:
desc: Clean test files desc: Clean test files
cmds: cmds:
- rm -rf dist/ - rm -rf dist/
dist: dist:
desc: Mkdir dist desc: Mkdir dist
cmds: cmds:
@ -61,7 +57,7 @@ tasks:
desc: Build vss desc: Build vss
cmds: cmds:
- v . -o {{.TARGET}} - v . -o {{.TARGET}}
prod-build: prod-build:
desc: Build vss for production desc: Build vss for production
cmds: cmds:
@ -78,4 +74,4 @@ tasks:
example-run: example-run:
dir: example dir: example
cmds: cmds:
- ./vss build - ./vss build