-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
031158f
commit 63d56c4
Showing
5 changed files
with
71 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: x86-linux | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ "master", "main", "dev" ] | ||
|
||
env: | ||
PACKAGE_DIR: package | ||
|
||
jobs: | ||
skip_check: | ||
continue-on-error: false | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/skip-duplicate-actions@v5 | ||
with: | ||
concurrent_skipping: 'same_content' | ||
cancel_others: 'true' | ||
skip_after_successful_duplicate: 'true' | ||
paths_ignore: '["**/README.md", "**/docs/**", "**/LICENSE"]' | ||
do_not_skip: '["workflow_dispatch", "schedule"]' | ||
|
||
build: | ||
needs: skip_check | ||
if: needs.skip_check.outputs.should_skip != 'true' | ||
|
||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Build | ||
shell: bash | ||
run: cargo build | ||
|
||
- name: Copy files | ||
shell: bash | ||
run: ./scripts/create_package.sh ${{env.PACKAGE_DIR}} debug ytdlp_server | ||
|
||
- name: Download third party binaries | ||
shell: bash | ||
run: ./scripts/download_ubuntu.sh | ||
|
||
- name: Upload files | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ytdlp_webui_ubuntu_x86 | ||
path: ${{github.workspace}}/${{env.PACKAGE_DIR}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
# Install yt-dlp | ||
mkdir ./bin/ | ||
curl -fLo ./bin/yt-dlp https://github.com/yt-dlp/yt-dlp/releases/download/2024.07.16/yt-dlp_linux | ||
set -e | ||
echo a6b840e536014ce7b2c7c40b758080498ed5054aa96979e64fcc369752cdc8d3 ./bin/yt-dlp | sha256sum --check | ||
sudo chmod 777 ./bin/yt-dlp | ||
# Install ffmpeg | ||
sudo apt-get --yes install ffmpeg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters