|
|
@ -64,11 +64,6 @@ jobs:
|
|
|
|
# to run fewer steps in parallel
|
|
|
|
# to run fewer steps in parallel
|
|
|
|
needs: build-api
|
|
|
|
needs: build-api
|
|
|
|
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
|
|
|
|
run:
|
|
|
|
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
working-directory: mediarepo-daemon
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
matrix:
|
|
|
@ -90,8 +85,13 @@ jobs:
|
|
|
|
restore-keys: |
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-cargo-
|
|
|
|
${{ runner.os }}-cargo-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: setup python
|
|
|
|
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
python-version: '^3.7'
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
- name: Build
|
|
|
|
run: cargo build --release --no-default-features --verbose
|
|
|
|
run: python build.py build --daemon --verbose
|
|
|
|
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
|
|
|
- name: Upload artifacts
|
|
|
|
if: ${{ !env.ACT }}
|
|
|
|
if: ${{ !env.ACT }}
|
|
|
@ -99,18 +99,13 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: mediarepo-daemon-${{ runner.os }}
|
|
|
|
name: mediarepo-daemon-${{ runner.os }}
|
|
|
|
path: |
|
|
|
|
path: |
|
|
|
|
target/release/mediarepo-daemon*
|
|
|
|
out/*
|
|
|
|
|
|
|
|
|
|
|
|
build-ui:
|
|
|
|
build-ui:
|
|
|
|
|
|
|
|
|
|
|
|
# to run fewer steps in parallel
|
|
|
|
# to run fewer steps in parallel
|
|
|
|
needs: build-api
|
|
|
|
needs: build-api
|
|
|
|
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
|
|
|
|
run:
|
|
|
|
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
working-directory: mediarepo-ui
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
strategy:
|
|
|
@ -142,17 +137,10 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
node-version: 16
|
|
|
|
node-version: 16
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install Tauri
|
|
|
|
- name: setup python
|
|
|
|
run: cargo install tauri-cli --git https://github.com/tauri-apps/tauri
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
|
|
|
|
with:
|
|
|
|
- name: Install Angular CLI
|
|
|
|
python-version: '^3.7'
|
|
|
|
run: npm install -g @angular/cli
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install yarn
|
|
|
|
|
|
|
|
run: npm install -g yarn
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
|
|
|
|
run: yarn install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install OS-specific dependencies
|
|
|
|
- name: Install OS-specific dependencies
|
|
|
|
uses: knicknic/os-specific-run@v1.0.3
|
|
|
|
uses: knicknic/os-specific-run@v1.0.3
|
|
|
@ -162,7 +150,7 @@ jobs:
|
|
|
|
DEBIAN_FRONTEND=noninteractive sudo apt-get install libwebkit2gtk-4.0-dev libgtk-3-dev libappindicator3-dev -y
|
|
|
|
DEBIAN_FRONTEND=noninteractive sudo apt-get install libwebkit2gtk-4.0-dev libgtk-3-dev libappindicator3-dev -y
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build project
|
|
|
|
- name: Build project
|
|
|
|
run: cargo tauri build --verbose
|
|
|
|
run: python build.py build --ui --verbose
|
|
|
|
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
|
|
|
- name: Upload artifacts
|
|
|
|
if: ${{ !env.ACT }}
|
|
|
|
if: ${{ !env.ACT }}
|
|
|
@ -170,5 +158,4 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: mediarepo-ui-${{ runner.os }}-release
|
|
|
|
name: mediarepo-ui-${{ runner.os }}-release
|
|
|
|
path: |
|
|
|
|
path: |
|
|
|
|
src-tauri/target/release/bundle
|
|
|
|
out/*
|
|
|
|
src-tauri/target/release/mediarepo-ui*
|
|
|
|
|
|
|
|