1212 - ' core/tauri/scripts/bundle.global.js'
1313 - ' core/tauri-utils/src/config.rs'
1414 - ' tooling/cli/schema.json'
15+ - ' core/config-schema/schema.json'
1516
1617concurrency :
1718 group : ${{ github.workflow }}-${{ github.ref }}
3536 schema:
3637 - 'core/tauri-utils/src/config.rs'
3738 - 'tooling/cli/schema.json'
39+ - 'core/config-schema/schema.json'
3840
3941 check-bundle :
4042 runs-on : ubuntu-latest
@@ -63,18 +65,12 @@ jobs:
6365 override : true
6466
6567 - name : install Linux dependencies
66- if : matrix.platform == 'ubuntu-latest'
6768 run : |
6869 sudo apt-get update
6970 sudo apt-get install -y libgtk-3-dev
7071
7172 - name : Get current date
7273 run : echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
73- if : matrix.platform == 'macos-latest' || matrix.platform == 'ubuntu-latest'
74-
75- - name : Get current date
76- if : matrix.platform == 'windows-latest'
77- run : echo "CURRENT_DATE=$(Get-Date -Format "yyyy-MM-dd")" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
7874
7975 - name : Cache cargo state
8076 uses : actions/cache@v2
@@ -85,33 +81,33 @@ jobs:
8581 ~/.cargo/registry
8682 ~/.cargo/git
8783 ~/.cargo/bin
88- key : ${{ matrix.platform }} -stable-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }}-${{ env.CURRENT_DATE }}
84+ key : ubuntu-latest -stable-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }}-${{ env.CURRENT_DATE }}
8985 restore-keys : |
90- ${{ matrix.platform }} -stable-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }}-
91- ${{ matrix.platform }} -stable-${{ env.cache-name }}-
92- ${{ matrix.platform }} -stable-
93- ${{ matrix.platform }} -
86+ ubuntu-latest -stable-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }}-
87+ ubuntu-latest -stable-${{ env.cache-name }}-
88+ ubuntu-latest -stable-
89+ ubuntu-latest -
9490
95- - name : Cache CLI cargo target
91+ - name : Cache core cargo target
9692 uses : actions/cache@v2
9793 env :
98- cache-name : cargo_cli
94+ cache-name : cargo-core
9995 with :
100- path : tooling/cli/ target
96+ path : target
10197 # Add date to the cache to keep it up to date
102- key : ${{ matrix.platform }}- stable-${{ env.cache-name }}-${{ hashFiles('tooling/cli /Cargo.lock ') }}-${{ env.CURRENT_DATE }}
98+ key : ubuntu-latest- stable-${{ env.cache-name }}-${{ hashFiles('core/** /Cargo.toml ') }}-${{ env.CURRENT_DATE }}
10399 # Restore from outdated cache for speed
104100 restore-keys : |
105- ${{ matrix.platform }}- stable-${{ env.cache-name }}-${{ hashFiles('tooling/cli /Cargo.lock ') }}
106- ${{ matrix.platform }} -stable-${{ env.cache-name }}-
107- ${{ matrix.platform }} -stable-
108- ${{ matrix.platform }} -
101+ ubuntu-latest- stable-${{ env.cache-name }}-${{ hashFiles('core/** /Cargo.toml ') }}
102+ ubuntu-latest -stable-${{ env.cache-name }}-
103+ ubuntu-latest -stable-
104+ ubuntu-latest -
109105
110106 - name : generate schema.json
111107 uses : actions-rs/cargo@v1
112108 with :
113109 command : build
114- args : --manifest-path ./tooling/cli /Cargo.toml
110+ args : --manifest-path ./core/config-schema /Cargo.toml
115111
116112 - name : check schema
117113 run : ./.scripts/ci/has-diff.sh
0 commit comments