|
@@ -11,7 +11,7 @@ jobs:
|
|
|
fail-fast: false
|
|
|
matrix:
|
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
- example: [gatsby/themed-site]
|
|
|
+ example: [gatsby/themed-site, vue/quasar-app]
|
|
|
|
|
|
steps:
|
|
|
- uses: actions/checkout@v1
|
|
@@ -22,6 +22,12 @@ jobs:
|
|
|
with:
|
|
|
toolchain: stable
|
|
|
- run: cargo install tauri-cli
|
|
|
+ - name: cache node modules
|
|
|
+ uses: actions/cache@v1
|
|
|
+ with:
|
|
|
+ path: ${{ format('examples/{0}/node_modules', matrix.example) }}
|
|
|
+ key: ${{ runner.OS }}-build-${{ hashFiles(format('examples/{0}/yarn.lock', matrix.example)) }}
|
|
|
+ restore-keys: ${{ runner.OS }}-build-${{ env.cache-name }}-
|
|
|
- name: install via yarn
|
|
|
run: |
|
|
|
cd ./examples/${{ matrix.example }}
|
|
@@ -49,6 +55,12 @@ jobs:
|
|
|
- name : GatsbyThemedSite
|
|
|
folder: gatsby/themed-site
|
|
|
executable: GatsbyThemedSiteApp
|
|
|
+ - name: quasar-app
|
|
|
+ folder: vue/quasar-app
|
|
|
+ executable: app
|
|
|
+ include:
|
|
|
+ - platform: windows-latest
|
|
|
+ ext: .exe
|
|
|
|
|
|
steps:
|
|
|
- uses: actions/checkout@v1
|
|
@@ -73,6 +85,12 @@ jobs:
|
|
|
run: |
|
|
|
cd ./cli/tauri.js
|
|
|
yarn
|
|
|
+ - name: cache node modules
|
|
|
+ uses: actions/cache@v1
|
|
|
+ with:
|
|
|
+ path: ${{ format('examples/{0}/node_modules', matrix.example.folder) }}
|
|
|
+ key: ${{ runner.OS }}-build-${{ hashFiles(format('examples/{0}/yarn.lock', matrix.example.folder)) }}
|
|
|
+ restore-keys: ${{ runner.OS }}-build-${{ env.cache-name }}-
|
|
|
- name: install via yarn
|
|
|
run: |
|
|
|
cd ./examples/${{ matrix.example.folder }}
|
|
@@ -91,4 +109,4 @@ jobs:
|
|
|
if: success()
|
|
|
with:
|
|
|
name: tauri built ${{ matrix.example.name }} on ${{ matrix.platform }}
|
|
|
- path: ./examples/${{ matrix.example.folder }}/src-tauri/target/release/${{ matrix.example.executable }}
|
|
|
+ path: ./examples/${{ matrix.example.folder }}/src-tauri/target/release/${{ matrix.example.executable }}${{ matrix.ext }}
|