1
0
mirror of https://github.com/go-task/task.git synced 2024-12-14 10:52:43 +02:00
task/docs/installation.md
2020-01-25 15:44:55 +03:00

3.0 KiB

Installation

Binary

Or you can download the binary from the releases page and add to your $PATH. DEB and RPM packages are also available. The task_checksums.txt file contains the sha256 checksum for each file.

Homebrew

If you're on macOS or Linux and have Homebrew installed, getting Task is as simple as running:

brew install go-task/tap/go-task

This installation method is only currently supported on amd64 architectures.

Snap

Task is available for Snapcraft, but keep in mind that your Linux distribution should allow classic confinement for Snaps to Task work right:

sudo snap install task

Scoop

If you're on Windows and have Scoop installed, use extras bucket to install Task like:

scoop bucket add extras
scoop install task

This installation method is community owned. After a new release of Task, it may take some time until it's available on Scoop.

Arch Linux

If you're on Arch Linux you can install Task from AUR using your favorite package manager such as yay, pacaur or yaourt:

yay -S taskfile-git

This installation method is community owned, but since it's -git version of the package, it's always latest available version based on the git repository.

Go

Task now uses Go Modules, which means you may have trouble compiling it on older Go versions or using $GOPATH.

For CI environments we recommend using the Install Script instead, which is faster and more stable, since it'll just download the latest released binary, instead of compiling the edge (master branch) version.

Installing in another directory:

git clone https://github.com/go-task/task
cd task

# compiling binary to $GOPATH/bin
go install -v ./cmd/task

# compiling it to another location
# use -o ./task.exe on Windows
go build -v -o ./task ./cmd/task

Both methods requires having the Go environment properly setup locally.

Install script

We also have a install script, which is very useful on scenarios like CIs. Many thanks to godownloader for allowing easily generating this script.

curl -sL https://taskfile.dev/install.sh | sh

This method will download the binary on the local ./bin directory by default.

GitHub Actions

If you want to install Task in GitHub Actions you can try using this action by the Arduino team:

- name: Install Task
  uses: Arduino/actions/setup-taskfile@master

This installation method is community owned.