Skip to content

Commit

Permalink
Merge branch 'feature/windows' of https://github.com/filalex77/dijo i…
Browse files Browse the repository at this point in the history
…nto feature/windows
oppiliappan committed Jul 23, 2020
2 parents 02bba52 + d1d1aeb commit 91cb3eb
Showing 12 changed files with 324 additions and 99 deletions.
119 changes: 119 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
name: Rust

on:
push:
tags:
- '*'

jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: rustup component add rustfmt
- run: cargo fmt -- --check

build-linux:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1
# cache the build assets so they dont recompile every time.
- name: Cache Rust dependencies
uses: actions/cache@v1.0.1
with:
path: target
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.OS }}-build-
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: beta
default: true
override: true
- name: Install system dependencies
run: |
sudo apt-get update \
&& sudo apt-get install -y \
libdbus-1-dev
- name: Build
run: cargo build --all --release && strip target/release/dijo

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/dijo
asset_name: dijo-x86_64-linux
tag: ${{ github.ref }}
overwrite: true

build-apple:
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache Rust dependencies
uses: actions/cache@v1.0.1
with:
path: target
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.OS }}-build-
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: beta
target: x86_64-apple-darwin
default: true
override: true

- name: Build for mac
run: cargo build --all --release && strip target/release/dijo

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/dijo
asset_name: dijo-x86_64-apple
tag: ${{ github.ref }}
overwrite: true

build-windows:
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache Rust dependencies
uses: actions/cache@v1.0.1
with:
path: target
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.OS }}-build-
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: beta
target: x86_64-pc-windows-msvc
default: true
override: true

- name: Build for windows
run: |
cargo build --all --release
strip target/release/dijo
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/dijo
asset_name: dijo-x86_64-windows
tag: ${{ github.ref }}
overwrite: true
80 changes: 30 additions & 50 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dijo"
version = "0.1.3"
version = "0.2.0"
authors = ["Akshay <nerdy@peppe.rs>"]
edition = "2018"
description = "Scriptable, curses-based, digital habit tracker"
@@ -23,7 +23,7 @@ notify = "4.0"
[dependencies.cursive]
version = "0.15"
default-features = false
features = ["crossterm-backend"]
features = ["termion-backend", "crossterm-backend"]

[dependencies.chrono]
version = "0.4"
7 changes: 5 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -19,13 +19,16 @@ much like a certain text editor.
- **vim like command mode**: add with `:add`, delete with
`:delete` and above all, quit with `:q`!.
- **fully scriptable**: [configure `dijo` to
track your `git` commits](./Auto-Habits)!
track your `git` commits](https://github.com/NerdyPepper/dijo/wiki/Auto-Habits)!

### Install

Get `dijo` by running the following at the nearest prompt:

```
```shell
# dijo requires rustc >= v1.42
$ rustup update

$ cargo install dijo
```

Loading

0 comments on commit 91cb3eb

Please sign in to comment.