fix: no make target with project (#689)

* fix: no make with project

* chore: set working directory

---------

Co-authored-by: hardy <luohf@infinilabs.com>
This commit is contained in:
Hardy
2025-06-13 22:17:37 +08:00
committed by GitHub
parent 8c9a2ff441
commit a8a9208b1f

View File

@@ -66,6 +66,7 @@ jobs:
version: latest version: latest
- name: Install rust target - name: Install rust target
if: matrix.target == 'i686-pc-windows-msvc'
run: rustup target add ${{ matrix.target }} run: rustup target add ${{ matrix.target }}
- name: Install dependencies (ubuntu only) - name: Install dependencies (ubuntu only)
@@ -105,15 +106,12 @@ jobs:
chmod 600 ~/.ssh/known_hosts chmod 600 ~/.ssh/known_hosts
- name: Pizza engine features setup - name: Pizza engine features setup
working-directory: src-tauri
if: matrix.target != 'i686-pc-windows-msvc'
run: | run: |
if [[ ${{ matrix.target }} == "i686-pc-windows-msvc" ]]; then rustup target add ${{ matrix.target }}
rustup target add i686-pc-windows-msvc --toolchain stable (cd .. && make add-dep-pizza-engine)
else
make add-dep-pizza-engine-linux
rustup target add ${{ matrix.target}} --toolchain nightly-2025-02-28
fi
- name: Build the app with ${{ matrix.platform }} - name: Build the app with ${{ matrix.platform }}
uses: tauri-apps/tauri-action@v0 uses: tauri-apps/tauri-action@v0
if: matrix.target != 'i686-pc-windows-msvc' if: matrix.target != 'i686-pc-windows-msvc'