mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
build all smoke tests and artifact fixes (#128)
* build quasar and try artifact fix * fix(examples:quasar): add build command * cache example deps * try concat strings? * global join function * try format * don't need relative file ref * fix cache path * fix(examples:quasar): add missing yarn command * via-source uses object, add property ref * fix(examples:quasar): canonical yarns * fix(examples:gatsby): typos package.json scripts * fix(examples:quasar): typo * fix(examples:quasar): put the build command back. doh * fix(examples:quasar): add local tauri as devDep
This commit is contained in:
committed by
nothingismagick
parent
6eb1837181
commit
218a9f29c8
22
.github/workflows/build-smoke-tests.yml
vendored
22
.github/workflows/build-smoke-tests.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user