Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
de3fc08
feat: radio
Kingtous Mar 30, 2022
d14e79c
opt: 改善逻辑
Kingtous Mar 30, 2022
09ce0f3
fix: compile
Kingtous Mar 30, 2022
f87d810
feat: m3u8[4/4]
Kingtous Mar 30, 2022
ca7d122
fix: apt update
Kingtous Mar 30, 2022
70ab6ec
add: ffmpeg-decoder-rs
Kingtous Mar 30, 2022
357bff8
add: avformat-dev
Kingtous Mar 30, 2022
b223034
opt: delete symphonia
Kingtous Mar 30, 2022
3bc5f02
opt: add ci
Kingtous Mar 31, 2022
e773369
fix: ci
Kingtous Mar 31, 2022
6b50af0
fix: ci
Kingtous Mar 31, 2022
242cfca
add: snapcraft file
Kingtous Apr 17, 2022
37bac8c
update: README
Kingtous Apr 18, 2022
50c4a34
update: README.md
Kingtous Apr 20, 2022
f6a8a30
revert: to strict
Kingtous Apr 20, 2022
00a689c
opt: specify build arch targets
Kingtous Apr 20, 2022
b7be4cd
add: add support for arm64
Kingtous Apr 20, 2022
4033c45
opt: add Linux Audio Troubleshoot
Kingtous Apr 21, 2022
dce5735
Update README.md
Kingtous Apr 23, 2022
789ca40
refactor: add build flag
Kingtous May 2, 2022
63ecee4
upgrade: ffmpeg 5.0.1
Kingtous May 2, 2022
0aef702
add: static fix
Kingtous May 2, 2022
ce41727
fix: windows build
Kingtous May 2, 2022
6579e72
revert: to dynamic build
Kingtous May 2, 2022
558e0b2
refactor: change to release to boost windows action
Kingtous May 2, 2022
38a65f2
fix: disable ci release
Kingtous May 2, 2022
aae5398
refactor: change to mingw
Kingtous May 3, 2022
5dbdc45
f
Kingtous May 3, 2022
3a6be35
Update rust.yml
Kingtous May 3, 2022
d5be48e
fix: volume reset when changing music
Kingtous May 3, 2022
17fec17
bump: 1.1.0-2
Kingtous May 3, 2022
9822441
fix: asset name
Kingtous May 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 59 additions & 16 deletions .github/workflows/rust-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,39 @@ on:
- v*

jobs:
publish:
name: Publish for ${{ matrix.os }}
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04,windows-latest,macOS-latest]
os: [ubuntu-18.04, macOS-latest]
include:
- name: linux
os: ubuntu-18.04
artifact_name: target/release/RustPlayer
asset_name: RustPlayer-linux
- name: windows
os: windows-latest
artifact_name: target/release/RustPlayer.exe
asset_name: RustPlayer-windows.exe
asset_name: RustPlayer-linux-amd64
- name: macos
os: macos-latest
artifact_name: target/release/RustPlayer
asset_name: RustPlayer-macos

# - name: windows
# os: windows-latest
# artifact_name: target/release/RustPlayer.exe
# asset_name: RustPlayer-windows.exe
steps:
- uses: actions/checkout@v1

- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Install libasound2-dev for Linux

- name: install deps for linux
if: matrix.os == 'ubuntu-18.04'
run: sudo apt install -y libasound2-dev
run: sudo apt update && sudo apt install -y libasound2-dev libavcodec-dev libavformat-dev libswresample-dev libavutil-dev libavformat-dev pkg-config

- name: install ffmpeg deps for macOS
if: matrix.os == 'macos-latest'
run: brew install ffmpeg@4 pkg-config && brew link ffmpeg@4

- name: Build
- name: build RustPlayer
run: cargo build --release

- name: Test
Expand All @@ -49,3 +49,46 @@ jobs:
with:
name: ${{ matrix.asset_name }}
path: ${{ matrix.artifact_name }}

build-on-windows:
runs-on: windows-latest
strategy:
matrix:
include:
- { sys: mingw64, env: x86_64, artifact_name: target/release/RustPlayer.exe , asset_name: RustPlayer-windows-x86_64.exe }
# - { sys: mingw32, env: i686 }
# - { sys: ucrt64, env: ucrt-x86_64 } # Experimental!
# - { sys: clang64, env: clang-x86_64 } # Experimental!
# defaults:
# run:
# shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- name: Install msys2 for windows
uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
# update: true
install: >-
mingw-w64-${{matrix.env}}-ffmpeg
mingw-w64-${{matrix.env}}-llvm
mingw-w64-${{matrix.env}}-clang
mingw-w64-${{matrix.env}}-pkg-config
mingw-w64-${{matrix.env}}-rust

- name: build RustPlayer
run: |
set MSYSTEM=MINGW64
msys2 -c 'cargo build --release'

- name: Test
run: |
set MSYSTEM=MINGW64
msys2 -c 'cargo test'

- name: Upload binaries to release
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.asset_name }}
path: ${{ matrix.artifact_name }}

73 changes: 70 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,78 @@ env:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, macOS-latest]
include:
- name: linux
os: ubuntu-18.04
artifact_name: target/release/RustPlayer
- name: macos
os: macos-latest
artifact_name: target/release/RustPlayer
# - name: windows
# os: windows-latest
# artifact_name: target/release/RustPlayer.exe
# asset_name: RustPlayer-windows.exe
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: sudo apt install -y libasound2-dev
- run: cargo build --release

- name: install deps for linux
if: matrix.os == 'ubuntu-18.04'
run: sudo apt update && sudo apt install -y libasound2-dev libavcodec-dev libavformat-dev libswresample-dev libavutil-dev libavformat-dev pkg-config

- name: install ffmpeg deps for macOS
if: matrix.os == 'macos-latest'
run: brew install ffmpeg@4 pkg-config && brew link ffmpeg@4

- name: build RustPlayer
run: cargo build --release

- name: Test
run: cargo test

# - name: Upload binaries to release
# uses: actions/upload-artifact@v2
# with:
# name: ${{ matrix.asset_name }}
# path: ${{ matrix.artifact_name }}
build-on-windows:
runs-on: windows-latest
strategy:
matrix:
include:
- { sys: mingw64, env: x86_64, artifact_name: target/release/RustPlayer }
# - { sys: mingw32, env: i686 }
# - { sys: ucrt64, env: ucrt-x86_64 } # Experimental!
# - { sys: clang64, env: clang-x86_64 } # Experimental!
# defaults:
# run:
# shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- name: Install msys2 for windows
uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
# update: true
install: >-
mingw-w64-${{matrix.env}}-ffmpeg
mingw-w64-${{matrix.env}}-llvm
mingw-w64-${{matrix.env}}-clang
mingw-w64-${{matrix.env}}-pkg-config
mingw-w64-${{matrix.env}}-rust

- name: build RustPlayer
run: |
set MSYSTEM=MINGW64
msys2 -c 'cargo build --release'

- name: Test
run: |
set MSYSTEM=MINGW64
msys2 -c 'cargo test'
1 change: 1 addition & 0 deletions .idea/vcs.xml

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

Loading