version: 0.2
env:
shell: bash
phases:
install:
commands:
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- source $HOME/.cargo/env
build:
commands:
- cargo build --release
post_build:
commands:
- tar cjf mpris-notifier-$(git rev-parse --short HEAD)-$(gcc -dumpmachine).tar.bz2 -C target/release ./mpris-notifier
artifacts:
files:
- mpris-notifier-$(git rev-parse --short HEAD)-$(gcc -dumpmachine).tar.bz2
cache:
paths:
- $HOME/.cargo/registry/**/*