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

@ -10,7 +10,12 @@ env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
jobs: jobs:
defaults:
run:
shell: bash
working-directory: mediarepo-api
build: build:
strategy: strategy:
fail-fast: false fail-fast: false
@ -19,11 +24,10 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
if: ${{ !env.ACT }}
- name: switch working directory
run: cd mediarepo-api
- name: Cache build data - name: Cache build data
if: ${{ !env.ACT }}
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: |
@ -37,8 +41,8 @@ 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 - name: Build
run: cargo build run: cargo build

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

@ -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

Loading…
Cancel
Save