mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 16:55:37 +02:00
✨ feat(server): Integrate ffmpeg and warp into the server
This commit is contained in:
37
.github/workflows/warp.yml
vendored
37
.github/workflows/warp.yml
vendored
@@ -4,7 +4,7 @@ on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: 0 0 * * * # At the end of everyday
|
||||
pull_request:
|
||||
pull_request: #TODO: run only on dependabot updates
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
@@ -59,7 +59,7 @@ jobs:
|
||||
id: toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
targets: ${{ matrix.settings.target }}
|
||||
targets: x86_64-unknown-linux-gnu
|
||||
toolchain: stable
|
||||
components: clippy, rustfmt
|
||||
|
||||
@@ -68,25 +68,25 @@ jobs:
|
||||
with:
|
||||
save-if: false
|
||||
prefix-key: 'v0-rust-deps'
|
||||
shared-key: ${{ matrix.settings.target }}
|
||||
shared-key: x86_64-unknown-linux-gnu
|
||||
|
||||
- name: Cargo build
|
||||
run: cargo build --target ${{ matrix.settings.target }} --manifest-path ./moq-pub/Cargo.toml --release
|
||||
run: cargo build --target x86_64-unknown-linux-gnu --manifest-path ./moq-pub/Cargo.toml --release
|
||||
|
||||
- name: Copy and rename artifacts (Linux)
|
||||
if: ${{ matrix.settings.host == 'ubuntu-20.04' }}
|
||||
run: |
|
||||
cp target/${{ matrix.settings.target }}/release/moq-pub ./warp
|
||||
cp target/x86_64-unknown-linux-gnu/release/moq-pub ./warp
|
||||
|
||||
- name: Copy and rename artifacts (Windows)
|
||||
if: ${{ matrix.settings.host == 'windows-latest' }}
|
||||
run: |
|
||||
cp "target/${{ matrix.settings.target }}/release/moq-pub.exe" ./warp.exe
|
||||
cp "target/x86_64-unknown-linux-gnu/release/moq-pub.exe" ./warp.exe
|
||||
|
||||
- name: Copy and rename artifacts (macOS)
|
||||
if: ${{ matrix.settings.host == 'macos-latest' }}
|
||||
run: |
|
||||
cp target/${{ matrix.settings.target }}/release/moq-pub ./warp
|
||||
cp target/x86_64-unknown-linux-gnu/release/moq-pub ./warp
|
||||
|
||||
- name: Publish release for (${{ matrix.settings.host }})
|
||||
if: ${{ matrix.settings.host == 'windows-latest' }}
|
||||
@@ -112,16 +112,7 @@ jobs:
|
||||
defaults:
|
||||
run:
|
||||
working-directory: moq-server
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
settings:
|
||||
- host: ubuntu-20.04
|
||||
target: x86_64-unknown-linux-gnu
|
||||
bundles: appimage
|
||||
asset_name: warp-ubuntu-amd64
|
||||
|
||||
runs-on: ${{ matrix.settings.host }}
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
@@ -132,7 +123,7 @@ jobs:
|
||||
id: toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
targets: ${{ matrix.settings.target }}
|
||||
targets: x86_64-unknown-linux-gnu
|
||||
toolchain: stable
|
||||
components: clippy, rustfmt
|
||||
|
||||
@@ -141,19 +132,19 @@ jobs:
|
||||
with:
|
||||
save-if: false
|
||||
prefix-key: 'v0-rust-deps'
|
||||
shared-key: ${{ matrix.settings.target }}
|
||||
shared-key: x86_64-unknown-linux-gnu
|
||||
|
||||
- name: Cargo build
|
||||
run: cargo build --target ${{ matrix.settings.target }} --manifest-path ./moq-pub/Cargo.toml --release
|
||||
run: cargo build --target x86_64-unknown-linux-gnu --manifest-path ./moq-pub/Cargo.toml --release
|
||||
|
||||
- name: Copy and rename artifacts (Linux)
|
||||
run: |
|
||||
cp target/${{ matrix.settings.target }}/release/moq-pub ./warp
|
||||
cp target/x86_64-unknown-linux-gnu/release/moq-pub ./warp
|
||||
|
||||
- name: Publish artifacts (${{ matrix.settings.host }})
|
||||
- name: Publish artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ matrix.settings.asset_name }}
|
||||
name: warp-ubuntu-amd64
|
||||
path: ./moq-server/warp
|
||||
if-no-files-found: error
|
||||
retention-days: 5
|
||||
Reference in New Issue
Block a user