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