diff --git a/.github/workflows/cli-build.yml b/.github/workflows/cli-build.yml index cdffffc52..8eb2611d2 100644 --- a/.github/workflows/cli-build.yml +++ b/.github/workflows/cli-build.yml @@ -9,13 +9,16 @@ env: jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: ./theseus_cli steps: - uses: actions/checkout@v2 - name: Get build cache id: cache-build uses: actions/cache@v2 with: - path: target/** + path: ../target/** key: ${{ runner.os }}-build-cache - name: Install toolchain uses: actions-rs/toolchain@v1 @@ -23,6 +26,5 @@ jobs: toolchain: stable - uses: actions-rs/cargo@v1 name: Build program - working-directory: ./theseus_cli with: command: build \ No newline at end of file diff --git a/.github/workflows/lib-build.yml b/.github/workflows/lib-build.yml index 2a8d0cc74..1892eca8f 100644 --- a/.github/workflows/lib-build.yml +++ b/.github/workflows/lib-build.yml @@ -9,13 +9,16 @@ env: jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: ./theseus steps: - uses: actions/checkout@v2 - name: Get build cache id: cache-build uses: actions/cache@v2 with: - path: target/** + path: ../target/** key: ${{ runner.os }}-build-cache - name: Install toolchain uses: actions-rs/toolchain@v1