Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-hughes committed Jul 24, 2020
2 parents 38e7b18 + 07ae4e8 commit 9f6a820
Show file tree
Hide file tree
Showing 26 changed files with 2,174 additions and 2,230 deletions.
88 changes: 88 additions & 0 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Upload release asset

on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
release:
name: Create release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: Please see the changelog for details about this new release.
draft: false
prerelease: false
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}

build-linux-x86_64:
name: Build Linux x86_64 release assets
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: sudo apt-get update
- run: sudo apt-get install libncurses5-dev libncursesw5-dev
- name: Build project
run: |
cargo build --release --locked
mkdir shellcaster
cp target/release/shellcaster shellcaster/
cp config.toml README.md LICENSE shellcaster/
tar czvf shellcaster-linux-x86_64-bundled.tar.gz shellcaster/{shellcaster,config.toml,README.md,LICENSE}
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./shellcaster-linux-x86_64-bundled.tar.gz
asset_name: shellcaster-linux-x86_64-bundled.tar.gz
asset_content_type: application/gzip

build-mac-x86_64:
name: Build MacOS x86_64 release assets
needs: release
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Build project
run: |
cargo build --release --locked
mkdir shellcaster
cp target/release/shellcaster shellcaster/
cp config.toml README.md LICENSE shellcaster/
tar czvf shellcaster-macos-x86_64-bundled.tar.gz shellcaster/{shellcaster,config.toml,README.md,LICENSE}
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./shellcaster-macos-x86_64-bundled.tar.gz
asset_name: shellcaster-macos-x86_64-bundled.tar.gz
asset_content_type: application/gzip

23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Compile and test

on:
push:
branches:
- master

jobs:
test:
name: Check and run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: sudo apt-get update
# need to install ncurses library headers
- run: sudo apt-get install libncurses5-dev libncursesw5-dev
- run: cargo check --locked
- run: cargo test --locked
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/target
**/*.rs.bk
*.db
/.meta
/.meta
/build
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## v0.8.2 (2020-07-24)
- Adds details panel on the right-hand side when the screen is large enough, providing more information about the selected episode
- Better notifications for syncing and downloading files
- New config option: Adjust the maximum number of retries to connect when syncing podcasts or downloading episodes
- Changed from `reqwest` package to `ureq` package, which simplifies some things, and also cuts out numerous other dependencies (meaning a smaller binary size!)
- Syncing podcasts now uses the same threadpool as downloading, leading to some efficiencies and somewhat simpler code
- Bug fixes:
- Creates directory for database if it does not exist
- Mark episode as played when user plays the episode

## v0.8.1 (2020-07-01)
- Can now remove one or more episodes from the list of episodes, effectively hiding them so they will not be re-synced
- Can also remove podcasts entirely
Expand Down
Loading

0 comments on commit 9f6a820

Please sign in to comment.