|
@@ -9,26 +9,7 @@ jobs:
|
|
strategy:
|
|
strategy:
|
|
fail-fast: false
|
|
fail-fast: false
|
|
matrix:
|
|
matrix:
|
|
- platform: [macos-latest, windows-latest]
|
|
|
|
-
|
|
|
|
- steps:
|
|
|
|
- - uses: actions/checkout@v1
|
|
|
|
- with:
|
|
|
|
- fetch-depth: 3
|
|
|
|
- - name: install stable
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
- with:
|
|
|
|
- toolchain: stable
|
|
|
|
- - name: build
|
|
|
|
- run: |
|
|
|
|
- cd ./tauri
|
|
|
|
- cargo build
|
|
|
|
- env:
|
|
|
|
- TAURI_DIST_DIR: ../../test/fixture/dist
|
|
|
|
- TAURI_CONFIG_DIR: ../test/fixture/
|
|
|
|
-
|
|
|
|
- build-tauri-ubuntu-latest:
|
|
|
|
- runs-on: ubuntu-latest
|
|
|
|
|
|
+ platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
|
|
steps:
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: actions/checkout@v1
|
|
@@ -38,7 +19,8 @@ jobs:
|
|
uses: actions-rs/toolchain@v1
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
with:
|
|
toolchain: stable
|
|
toolchain: stable
|
|
- - name: install webkit2gtk
|
|
|
|
|
|
+ - name: install webkit2gtk (ubuntu only)
|
|
|
|
+ if: matrix.platform == 'ubuntu-latest'
|
|
run: |
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get update
|
|
sudo apt-get install -y webkit2gtk-4.0
|
|
sudo apt-get install -y webkit2gtk-4.0
|
|
@@ -48,7 +30,7 @@ jobs:
|
|
cargo build
|
|
cargo build
|
|
env:
|
|
env:
|
|
TAURI_DIST_DIR: ../../test/fixture/dist
|
|
TAURI_DIST_DIR: ../../test/fixture/dist
|
|
- TAURI_CONFIG_DIR: ../test/fixture
|
|
|
|
|
|
+ TAURI_CONFIG_DIR: ../test/fixture/
|
|
|
|
|
|
build-tauri-cli:
|
|
build-tauri-cli:
|
|
runs-on: ${{ matrix.platform }}
|
|
runs-on: ${{ matrix.platform }}
|
|
@@ -88,4 +70,4 @@ jobs:
|
|
run: |
|
|
run: |
|
|
cd ./cli/tauri.js
|
|
cd ./cli/tauri.js
|
|
yarn
|
|
yarn
|
|
- yarn test
|
|
|
|
|
|
+ yarn test
|