Add correct working directory to jobs default

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/1/head
trivernis 3 years ago
parent 313d65512d
commit db5a7f0820
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -11,6 +11,11 @@ env:
jobs:
defaults:
run:
shell: bash
working-directory: mediarepo-api
build:
strategy:
fail-fast: false
@ -19,11 +24,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: switch working directory
run: cd mediarepo-api
if: ${{ !env.ACT }}
- name: Cache build data
if: ${{ !env.ACT }}
uses: actions/cache@v2
with:
path: |
@ -37,8 +41,8 @@ jobs:
uses: knicknic/os-specific-run@v1.0.3
with:
linux: |
sudo apt update
sudo apt install libwebkit2gtk-4.0-dev libgtk-3-dev libappindicator3-dev -y
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install libwebkit2gtk-4.0-dev libgtk-3-dev libappindicator3-dev -y
- name: Build
run: cargo build

@ -11,6 +11,11 @@ env:
jobs:
defaults:
run:
shell: bash
working-directory: mediarepo-daemon
build:
strategy:
fail-fast: false
@ -19,11 +24,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: switch working directory
run: cd mediarepo-daemon
if: ${{ !env.ACT }}
- name: Cache build data
if: ${{ !env.ACT }}
uses: actions/cache@v2
with:
path: |
@ -37,6 +41,7 @@ jobs:
run: cargo build --release --no-default-features
- name: Upload artifacts
if: ${{ !env.ACT }}
uses: actions/upload-artifact@v2
with:
name: mediarepo-daemon-${{ runner.os }}

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

Loading…
Cancel
Save