fix: update build configuration for consistency and mark subproject as dirty
This commit is contained in:
@@ -10,14 +10,14 @@ on:
|
||||
|
||||
env:
|
||||
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
||||
CARGO_INCREMENTAL: 0
|
||||
CARGO_INCREMENTAL: 1
|
||||
CARGO_NET_RETRY: 10
|
||||
RUSTUP_MAX_RETRIES: 10
|
||||
|
||||
jobs:
|
||||
check-version:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
|
||||
runs-on: linux
|
||||
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && !startsWith(github.ref, 'refs/tags/')
|
||||
outputs:
|
||||
should_release: ${{ steps.check.outputs.should_release }}
|
||||
version: ${{ steps.check.outputs.version }}
|
||||
@@ -49,6 +49,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: false
|
||||
clean: false
|
||||
|
||||
- name: Checkout submodules (Windows workaround)
|
||||
shell: powershell
|
||||
@@ -90,11 +91,11 @@ jobs:
|
||||
override: true
|
||||
|
||||
- name: Install dependencies (root)
|
||||
run: npm ci --prefer-offline
|
||||
run: npm install --prefer-offline
|
||||
|
||||
- name: Install dependencies (cinny)
|
||||
working-directory: ./cinny
|
||||
run: npm ci --prefer-offline
|
||||
run: npm install --prefer-offline
|
||||
|
||||
- name: Build Tauri app
|
||||
run: npm run tauri build
|
||||
@@ -131,7 +132,7 @@ jobs:
|
||||
path: src-tauri/target/release/bundle/msi/Cinny-Windows-x64.msi.zip.sig
|
||||
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: linux
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -385,7 +386,7 @@ jobs:
|
||||
path: src-tauri/gen/android/app/build/outputs/apk/universal/release/Cinny-Android.apk
|
||||
|
||||
create-release:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: linux
|
||||
needs: [check-version, build-windows, build-linux, build-android]
|
||||
if: needs.check-version.outputs.should_release == 'true'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user