mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-16 19:47:43 +01:00
fix: feature dependcy local path (#728)
* fix: feature dependcy local path * chore: use build args from env * chore: remove no use step --------- Co-authored-by: hardy <luohf@infinilabs.com>
This commit is contained in:
39
.github/workflows/release.yml
vendored
39
.github/workflows/release.yml
vendored
@@ -84,12 +84,15 @@ jobs:
|
|||||||
- name: Add pizza engine as a dependency
|
- name: Add pizza engine as a dependency
|
||||||
working-directory: src-tauri
|
working-directory: src-tauri
|
||||||
run: |
|
run: |
|
||||||
|
BUILD_ARGS="--target ${{ matrix.target }}"
|
||||||
if [[ "${{matrix.target }}" != "i686-pc-windows-msvc" ]]; then
|
if [[ "${{matrix.target }}" != "i686-pc-windows-msvc" ]]; then
|
||||||
echo "Adding pizza engine as a dependency for ${{matrix.platform }}-${{matrix.target }}"
|
echo "Adding pizza engine as a dependency for ${{matrix.platform }}-${{matrix.target }}"
|
||||||
( cargo add --path ../../pizza/lib/engine --features query_string_parser,persistence )
|
( cargo add --path ../pizza/lib/engine --features query_string_parser,persistence )
|
||||||
|
BUILD_ARGS+=" --features use_pizza_engine"
|
||||||
else
|
else
|
||||||
echo "Skipping pizza engine dependency for ${{matrix.platform }}-${{matrix.target }}"
|
echo "Skipping pizza engine dependency for ${{matrix.platform }}-${{matrix.target }}"
|
||||||
fi
|
fi
|
||||||
|
echo "BUILD_ARGS=${BUILD_ARGS}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Rust cache
|
- name: Rust cache
|
||||||
uses: swatinem/rust-cache@v2
|
uses: swatinem/rust-cache@v2
|
||||||
@@ -104,16 +107,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Install app dependencies and build web
|
- name: Install app dependencies and build web
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Pizza engine features setup
|
|
||||||
working-directory: src-tauri
|
|
||||||
run: |
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- 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'
|
|
||||||
env:
|
env:
|
||||||
CI: false
|
CI: false
|
||||||
PLATFORM: ${{ matrix.platform }}
|
PLATFORM: ${{ matrix.platform }}
|
||||||
@@ -132,27 +128,4 @@ jobs:
|
|||||||
releaseBody: ""
|
releaseBody: ""
|
||||||
releaseDraft: true
|
releaseDraft: true
|
||||||
prerelease: false
|
prerelease: false
|
||||||
args: --target ${{ matrix.target }} --features use_pizza_engine
|
args: ${{ env.BUILD_ARGS }}
|
||||||
|
|
||||||
- name: Build the app with ${{ matrix.platform }} (windows i686 only)
|
|
||||||
uses: tauri-apps/tauri-action@v0
|
|
||||||
if: matrix.target == 'i686-pc-windows-msvc'
|
|
||||||
env:
|
|
||||||
CI: false
|
|
||||||
PLATFORM: ${{ matrix.platform }}
|
|
||||||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
|
||||||
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
|
||||||
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ""
|
|
||||||
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
|
|
||||||
APPLE_CERTIFICATE_PASSWORD: ""
|
|
||||||
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
|
|
||||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
||||||
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
|
||||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
|
||||||
with:
|
|
||||||
tagName: ${{ github.ref_name }}
|
|
||||||
releaseName: Coco ${{ needs.create-release.outputs.APP_VERSION }}
|
|
||||||
releaseBody: ""
|
|
||||||
releaseDraft: true
|
|
||||||
prerelease: false
|
|
||||||
args: --target ${{ matrix.target }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user