diff --git a/.github/workflows/build-smoke-tests.yml b/.github/workflows/build-smoke-tests.yml index dc4fedf24..10d7310f5 100644 --- a/.github/workflows/build-smoke-tests.yml +++ b/.github/workflows/build-smoke-tests.yml @@ -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 }} diff --git a/examples/gatsby/themed-site/package.json b/examples/gatsby/themed-site/package.json index be1f00a91..d5b637712 100644 --- a/examples/gatsby/themed-site/package.json +++ b/examples/gatsby/themed-site/package.json @@ -15,8 +15,8 @@ "format": "prettier --write \"**/*.{js,jsx,json,md}\"", "tauri:prod": "tauri", "tauri:source": "node ../../../cli/tauri.js/bin/tauri", - "tauri:source:init": "yarn tauri:source init --tauri-path ../../../tauri", - "tauri:prod:init": "yarn tauri:prod:init", + "tauri:source:init": "yarn tauri:source init --tauriPath ../../../tauri", + "tauri:prod:init": "yarn tauri:prod init", "tauri:source:dev": "yarn tauri:source dev", "tauri:prod:dev": "yarn tauri:prod dev", "tauri:source:build": "yarn tauri:source build", diff --git a/examples/vue/quasar-app/package.json b/examples/vue/quasar-app/package.json index 2387374da..e74298d2e 100644 --- a/examples/vue/quasar-app/package.json +++ b/examples/vue/quasar-app/package.json @@ -10,11 +10,15 @@ "scripts": { "lint": "eslint --ext .js,.vue src", "test": "echo \"No test specified\" && exit 0", - "tauri": "node ../../../cli/tauri.js/bin/tauri", + "build": "quasar build", + "tauri:prod": "tauri", "tauri:source": "node ../../../cli/tauri.js/bin/tauri", - "tauri:init": "node ../../../cli/tauri.js/bin/tauri init --tauriPath ../../../tauri", - "tauri:dev": "node ../../../cli/tauri.js/bin/tauri dev", - "tauri:build": "node ../../../cli/tauri.js/bin/tauri build" + "tauri:source:init": "yarn tauri:source init --tauriPath ../../../tauri", + "tauri:prod:init": "yarn tauri:prod init", + "tauri:source:dev": "yarn tauri:source dev", + "tauri:prod:dev": "yarn tauri:prod dev", + "tauri:source:build": "yarn tauri:source build", + "tauri:prod:build": "yarn tauri:prod build" }, "dependencies": { "@quasar/extras": "^1.0.0", @@ -26,7 +30,8 @@ "babel-eslint": "^10.0.1", "eslint": "^5.10.0", "eslint-loader": "^2.1.1", - "eslint-plugin-vue": "^5.0.0" + "eslint-plugin-vue": "^5.0.0", + "tauri": "^0.1.3" }, "engines": { "node": ">= 8.9.0",