|
|
@ -8,6 +8,12 @@ on:
|
|
|
|
- github-actions
|
|
|
|
- github-actions
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
|
|
|
|
run:
|
|
|
|
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
working-directory: mediarepo-ui
|
|
|
|
|
|
|
|
|
|
|
|
build-debug:
|
|
|
|
build-debug:
|
|
|
|
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
@ -19,11 +25,10 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
if: ${{ !env.ACT }}
|
|
|
|
- name: switch working directory
|
|
|
|
|
|
|
|
run: cd mediarepo-ui
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Cache Dependencies
|
|
|
|
- name: Cache Dependencies
|
|
|
|
|
|
|
|
if: ${{ !env.ACT }}
|
|
|
|
id: cache-dependencies
|
|
|
|
id: cache-dependencies
|
|
|
|
uses: actions/cache@v2
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
@ -58,13 +63,14 @@ jobs:
|
|
|
|
uses: knicknic/os-specific-run@v1.0.3
|
|
|
|
uses: knicknic/os-specific-run@v1.0.3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
linux: |
|
|
|
|
linux: |
|
|
|
|
sudo apt update
|
|
|
|
apt-get update
|
|
|
|
sudo apt install libwebkit2gtk-4.0-dev libgtk-3-dev libappindicator3-dev -y
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install libwebkit2gtk-4.0-dev libgtk-3-dev libappindicator3-dev -y
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build project
|
|
|
|
- name: Build project
|
|
|
|
run: cargo tauri build --debug
|
|
|
|
run: cargo tauri build --debug
|
|
|
|
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
|
|
|
- name: Upload artifacts
|
|
|
|
|
|
|
|
if: ${{ !env.ACT }}
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: mediarepo-ui-${{ runner.os }}-debug
|
|
|
|
name: mediarepo-ui-${{ runner.os }}-debug
|
|
|
@ -83,11 +89,10 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
if: ${{ !env.ACT }}
|
|
|
|
- name: switch working directory
|
|
|
|
|
|
|
|
run: cd mediarepo-ui
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Cache Dependencies
|
|
|
|
- name: Cache Dependencies
|
|
|
|
|
|
|
|
if: ${{ !env.ACT }}
|
|
|
|
id: cache-dependencies
|
|
|
|
id: cache-dependencies
|
|
|
|
uses: actions/cache@v2
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
@ -122,13 +127,14 @@ jobs:
|
|
|
|
uses: knicknic/os-specific-run@v1.0.3
|
|
|
|
uses: knicknic/os-specific-run@v1.0.3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
linux: |
|
|
|
|
linux: |
|
|
|
|
sudo apt update
|
|
|
|
apt-get update
|
|
|
|
sudo apt install libwebkit2gtk-4.0-dev libgtk-3-dev libappindicator3-dev -y
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install libwebkit2gtk-4.0-dev libgtk-3-dev libappindicator3-dev -y
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build project
|
|
|
|
- name: Build project
|
|
|
|
run: cargo tauri build
|
|
|
|
run: cargo tauri build
|
|
|
|
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
|
|
|
- name: Upload artifacts
|
|
|
|
|
|
|
|
if: ${{ !env.ACT }}
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: mediarepo-ui-${{ runner.os }}-release
|
|
|
|
name: mediarepo-ui-${{ runner.os }}-release
|
|
|
|