fix: CTA cache and vite build (#1806)

* use file as version for local links

this also makes it closer to the production version and less likely to accidentally introudce an issue

* always install latest without asking

* work around issues with esbuild installing properly

* test shouldn't run build-release on the cli

* build cli.js and api outside of the test

* try test on windows

* change file

* switch back to linux test

* -y prompt not available on npm@6, remove

* pipe
This commit is contained in:
Jacob Bolda
2021-05-12 14:25:44 -05:00
committed by GitHub
parent 8ef3b7a12f
commit 8a164d0a1f
7 changed files with 48 additions and 62 deletions

View File

@@ -9,6 +9,8 @@ on:
inputs:
branch:
default: "dev"
platform:
default: "ubuntu"
pull_request:
paths:
- "tooling/create-tauri-app/**"
@@ -19,7 +21,7 @@ env:
jobs:
create-recipe-with-npm:
name: "node@${{ matrix.node }} + npm@${{ matrix.manager }}: ${{ matrix.recipe }}"
runs-on: ubuntu-latest
runs-on: ${{ github.event.inputs.branch || 'ubuntu' }}-latest
strategy:
fail-fast: false
@@ -45,9 +47,18 @@ jobs:
npm-version: ${{ matrix.manager }}
yarn-version: 1.22.5
- name: install webkit2gtk
if: (github.event.inputs.branch || 'ubuntu') == 'ubuntu'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libgtksourceview-3.0-dev webkit2gtk-4.0 libappindicator3-dev
- run: yarn
working-directory: tooling/cli.js
- run: yarn build
working-directory: tooling/cli.js
- run: yarn
working-directory: tooling/api
- run: yarn build
working-directory: tooling/api
- run: yarn
working-directory: tooling/create-tauri-app
- run: yarn build
@@ -60,7 +71,7 @@ jobs:
create-recipe-with-yarn:
name: "node@${{ matrix.node }} + yarn@1: ${{ matrix.recipe }}"
runs-on: ubuntu-latest
runs-on: ${{ github.event.inputs.branch || 'ubuntu' }}-latest
strategy:
fail-fast: false
@@ -81,6 +92,7 @@ jobs:
node-version: ${{ matrix.node }}
yarn-version: 1.22.5
- name: install webkit2gtk
if: (github.event.inputs.branch || 'ubuntu') == 'ubuntu'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libgtksourceview-3.0-dev webkit2gtk-4.0 libappindicator3-dev