options: version: usage: The build version short: v required: true tasks: setup: run: - command: cargo install --version 0.1.16 cross - command: go get github.com/aktau/github-release - command: cargo install releez build:macos: run: - command: cargo build --release - command: mkdir -p dist - command: cp ./target/release/releez ./dist/releez - command: cd dist && tar -czvf releez-v${version}-x86_64-apple-darwin.tar.gz releez && rm releez && cd .. build:linux: run: - command: cross build --release --target x86_64-unknown-linux-gnu - command: mkdir -p dist - command: cp ./target/x86_64-unknown-linux-gnu/release/releez ./dist/releez - command: cd dist && tar -czvf releez-v${version}-x86_64-unknown-linux-gnu.tar.gz releez && rm releez && cd .. build:windows: run: - command: cross build --release --target x86_64-pc-windows-gnu - command: mkdir -p dist - command: cp ./target/x86_64-pc-windows-gnu/release/releez.exe ./dist/releez.exe - command: cd dist && zip releez-v${version}-x86_64-pc-windows-gnu.zip releez.exe && rm releez.exe && cd .. build: run: - command: tusk build:macos --version ${version} - command: tusk build:linux --version ${version} - command: tusk build:windows --version ${version} upload-artifacts: run: command: chmod +x scripts/upload-artifacts.sh && ./scripts/upload-artifacts.sh ${version} release: run: - releez "${version}"