Skip to content

Commit

Permalink
Create watcher project
Browse files Browse the repository at this point in the history
  • Loading branch information
2e3s committed Oct 28, 2023
1 parent 3031c72 commit c4c2c07
Show file tree
Hide file tree
Showing 7 changed files with 1,671 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release
permissions:
contents: write
on:
push:
tags:
- 'v[0-9]*.*.*'
env:
CARGO_TERM_COLOR: always
jobs:
build:
# 22.04 is the earliest version with OpenSSL 3
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y curl
sudo apt-get install build-essential -y
sudo apt-get install libdbus-1-dev -y
sudo apt-get install libssl-dev -y
sudo apt-get install pkg-config -y
# Buil and upload binary
- uses: Swatinem/rust-cache@v2
- run: cargo build --release
- run: zip "aw-watcher-media-player.zip" aw-watcher-media-player
working-directory: target/release
- name: Upload to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/aw-watcher-media-player.zip
29 changes: 29 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Check

on:
push:
branches:
- main
pull_request:

env:
CARGO_TERM_COLOR: always
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --check --all
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt-get install -y libdbus-1-dev
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --locked --all-targets -- -D warnings
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit c4c2c07

Please sign in to comment.