mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
combine jobs and add step with conditional (#121)
* combine jobs and add step with conditional * too many equals
This commit is contained in:
committed by
nothingismagick
parent
d0ac6c7a45
commit
ebc736070f
28
.github/workflows/test-on-pr.yml
vendored
28
.github/workflows/test-on-pr.yml
vendored
@@ -9,7 +9,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
platform: [macos-latest, windows-latest]
|
||||
platform: [ubuntu-latest, macos-latest, windows-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
@@ -19,26 +19,8 @@ jobs:
|
||||
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
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 3
|
||||
- name: install stable
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
- name: install webkit2gtk
|
||||
- name: install webkit2gtk (ubuntu only)
|
||||
if: matrix.platform == 'ubuntu-latest'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y webkit2gtk-4.0
|
||||
@@ -48,7 +30,7 @@ jobs:
|
||||
cargo build
|
||||
env:
|
||||
TAURI_DIST_DIR: ../../test/fixture/dist
|
||||
TAURI_CONFIG_DIR: ../test/fixture
|
||||
TAURI_CONFIG_DIR: ../test/fixture/
|
||||
|
||||
build-tauri-cli:
|
||||
runs-on: ${{ matrix.platform }}
|
||||
@@ -88,4 +70,4 @@ jobs:
|
||||
run: |
|
||||
cd ./cli/tauri.js
|
||||
yarn
|
||||
yarn test
|
||||
yarn test
|
||||
|
||||
Reference in New Issue
Block a user