fix(tauri): make github action envs absolute for extra path level in runner.rs (#438)

* fix(tauri): extra path level in runner.rs

This file is one folder deeper than the other files which reference this env. This env is a relative folder reference so we need to concat an extra folder traversal into it.

* Revert "fix(tauri): extra path level in runner.rs"

This reverts commit eb1034b4f3.

* make envs in GH Actions absolute for now

* runner is only available within steps
This commit is contained in:
Jacob Bolda 2020-02-19 09:02:19 -06:00 committed by GitHub
parent da5f654332
commit c1638e92a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 9 deletions

View File

@ -9,9 +9,7 @@ on:
jobs:
clippy_check:
runs-on: ubuntu-latest
env:
TAURI_DIST_DIR: tauri/test/fixture/dist
TAURI_DIR: ../test/fixture/src-tauri
steps:
- uses: actions/checkout@v2
- name: install webkit2gtk
@ -22,3 +20,6 @@ jobs:
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
env:
TAURI_DIST_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/dist
TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/src-tauri

View File

@ -12,8 +12,8 @@ jobs:
publish:
runs-on: ubuntu-latest
env:
TAURI_DIST_DIR: tauri/test/fixture/dist
TAURI_DIR: ../test/fixture/src-tauri
TAURI_DIST_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/dist
TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/src-tauri
strategy:
fail-fast: false
matrix:

View File

@ -27,14 +27,14 @@ jobs:
cd ./tauri
cargo build
env:
TAURI_DIST_DIR: ../../test/fixture/dist
TAURI_DIR: ../test/fixture/src-tauri
TAURI_DIST_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/dist
TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/src-tauri
- name: test
run: |
cargo test
env:
TAURI_DIST_DIR: ../../test/fixture/dist
TAURI_DIR: ../test/fixture/src-tauri
TAURI_DIST_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/dist
TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/src-tauri
build-tauri-bundler:
runs-on: ${{ matrix.platform }}