Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: ./.github/actions/setup-project

- name: Run check
run: task check
run: mise run check

build:
name: Build
Expand All @@ -40,4 +40,4 @@ jobs:
uses: ./.github/actions/setup-project

- name: Run build
run: task build
run: mise run build
2 changes: 1 addition & 1 deletion .github/workflows/upload-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: ./.github/actions/setup-project

- name: Run build
run: VERSION=${{ github.event.release.tag_name }} task build
run: VERSION=${{ github.event.release.tag_name }} mise run build

- name: Upload binaries
run: gh release upload ${{ github.event.release.tag_name }} dist/*
Expand Down
29 changes: 0 additions & 29 deletions Taskfile.yaml

This file was deleted.

30 changes: 29 additions & 1 deletion mise.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
[tools]
deno = '2.4.2'
'aqua:go-task/task' = 'v3.42.1'

[tasks.check]
depends = ['check:format', 'check:lint', 'check:type']

[tasks.'check:format']
run = 'deno fmt --check'

[tasks.'check:lint']
run = 'deno lint'

[tasks.'check:type']
run = 'deno check src/cli.ts'

[tasks.'generate:version']
run = 'echo "WK_VERSION=${VERSION:-unknown}" > .env'

[tasks.build]
depends = [
'build:internal x86_64-unknown-linux-gnu',
'build:internal aarch64-unknown-linux-gnu',
'build:internal x86_64-apple-darwin',
'build:internal aarch64-apple-darwin',
'build:internal x86_64-pc-windows-msvc',
]

[tasks.'build:internal']
depends = 'generate:version'
run = 'deno compile --no-check --cached-only --lock --frozen --env-file --allow-all --include src/widget.eta --target {{arg(name="target")}} --output dist/wk-{{arg(name="target")}} src/cli.ts'
hide = true