mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
refactor(repo): add /tooling folder (#1457)
This commit is contained in:
committed by
GitHub
parent
a6def7066e
commit
aea614587b
12
.github/workflows/artifacts-updater.yml
vendored
12
.github/workflows/artifacts-updater.yml
vendored
@@ -8,8 +8,8 @@ on:
|
||||
paths:
|
||||
- '.github/workflows/artifacts-updater.yml'
|
||||
- 'core/tauri/**'
|
||||
- 'cli/core/**'
|
||||
- 'cli/tauri-bundler/**'
|
||||
- 'tooling/cli.rs/**'
|
||||
- 'tooling/bundler/**'
|
||||
- 'examples/updater/**'
|
||||
|
||||
jobs:
|
||||
@@ -32,18 +32,18 @@ jobs:
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y webkit2gtk-4.0
|
||||
- run: cargo install --path ./cli/core --force
|
||||
- run: cargo install --path ./tooling/cli.rs --force
|
||||
- name: install cli deps via yarn
|
||||
working-directory: ./cli/tauri.js
|
||||
working-directory: ./tooling/cli.js
|
||||
run: yarn
|
||||
- name: build cli
|
||||
working-directory: ./cli/tauri.js
|
||||
working-directory: ./tooling/cli.js
|
||||
run: yarn build
|
||||
- name: build sample artifacts (updater)
|
||||
working-directory: ./examples/updater
|
||||
run: |
|
||||
yarn install
|
||||
node ../../cli/tauri.js/bin/tauri build
|
||||
node ../../tooling/cli.js/bin/tauri build
|
||||
env:
|
||||
TAURI_PRIVATE_KEY: dW50cnVzdGVkIGNvbW1lbnQ6IHJzaWduIGVuY3J5cHRlZCBzZWNyZXQga2V5ClJXUlRZMEl5YTBGV3JiTy9lRDZVd3NkL0RoQ1htZmExNDd3RmJaNmRMT1ZGVjczWTBKZ0FBQkFBQUFBQUFBQUFBQUlBQUFBQWdMekUzVkE4K0tWQ1hjeGt1Vkx2QnRUR3pzQjVuV0ZpM2czWXNkRm9hVUxrVnB6TUN3K1NheHJMREhQbUVWVFZRK3NIL1VsMDBHNW5ET1EzQno0UStSb21nRW4vZlpTaXIwZFh5ZmRlL1lSN0dKcHdyOUVPclVvdzFhVkxDVnZrbHM2T1o4Tk1NWEU9Cg==
|
||||
- uses: actions/upload-artifact@v2
|
||||
|
||||
2
.github/workflows/audit.yml
vendored
2
.github/workflows/audit.yml
vendored
@@ -30,5 +30,5 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: yarn audit
|
||||
working-directory: cli/tauri.js
|
||||
working-directory: tooling/cli.js
|
||||
run: yarn audit
|
||||
|
||||
6
.github/workflows/build-smoke-tests.yml
vendored
6
.github/workflows/build-smoke-tests.yml
vendored
@@ -71,10 +71,10 @@ jobs:
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y webkit2gtk-4.0
|
||||
- name: yarn install for cli
|
||||
working-directory: tauri/cli/tauri.js
|
||||
working-directory: tauri/tooling/cli.js
|
||||
run: yarn
|
||||
- name: build tauri.js
|
||||
working-directory: tauri/cli/tauri.js
|
||||
- name: build cli.js
|
||||
working-directory: tauri/tooling/cli.js
|
||||
run: |
|
||||
yarn build-release
|
||||
yarn global add $PWD
|
||||
|
||||
6
.github/workflows/core-lint-fmt.yml
vendored
6
.github/workflows/core-lint-fmt.yml
vendored
@@ -10,7 +10,7 @@ on:
|
||||
- '.github/workflows/core-lint-fmt.yml'
|
||||
- 'core/**'
|
||||
- 'examples/**'
|
||||
- 'cli/core/**'
|
||||
- 'tooling/cli.rs/**'
|
||||
|
||||
jobs:
|
||||
workspace_clippy_fmt_check:
|
||||
@@ -48,7 +48,7 @@ jobs:
|
||||
- uses: actions-rs/clippy-check@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --manifest-path ./cli/core/Cargo.toml --all-targets --all-features -- -D warnings
|
||||
args: --manifest-path ./tooling/cli.rs/Cargo.toml --all-targets --all-features -- -D warnings
|
||||
name: cli
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
@@ -59,7 +59,7 @@ jobs:
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --manifest-path ./cli/core/Cargo.toml --all -- --check
|
||||
args: --manifest-path ./tooling/cli.rs/Cargo.toml --all -- --check
|
||||
|
||||
core_clippy_check:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -106,8 +106,8 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
package:
|
||||
- name: tauri.js
|
||||
registryName: tauri
|
||||
- name: cli.js
|
||||
registryName: \@tauri-apps/cli
|
||||
- name: tauri-bundler
|
||||
registryName: tauri-bundler
|
||||
- name: tauri-utils
|
||||
|
||||
8
.github/workflows/js-lint.yml
vendored
8
.github/workflows/js-lint.yml
vendored
@@ -8,7 +8,7 @@ on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/js-lint.yml'
|
||||
- 'cli/tauri.js/**'
|
||||
- 'tooling/cli.js/**'
|
||||
|
||||
jobs:
|
||||
eslint-check:
|
||||
@@ -19,11 +19,11 @@ jobs:
|
||||
with:
|
||||
node-version: '12'
|
||||
- name: install deps via yarn
|
||||
working-directory: ./cli/tauri.js/
|
||||
working-directory: ./tooling/cli.js/
|
||||
run: yarn
|
||||
- name: run eslint
|
||||
working-directory: ./cli/tauri.js/
|
||||
working-directory: ./tooling/cli.js/
|
||||
run: yarn lint
|
||||
- name: run prettier
|
||||
working-directory: ./cli/tauri.js/
|
||||
working-directory: ./tooling/cli.js/
|
||||
run: yarn format:check
|
||||
|
||||
8
.github/workflows/test-bundler.yml
vendored
8
.github/workflows/test-bundler.yml
vendored
@@ -8,7 +8,7 @@ on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/test-bundler.yml'
|
||||
- 'cli/tauri-bundler/**'
|
||||
- 'tooling/bundler/**'
|
||||
env:
|
||||
RUST_BACKTRACE: 1
|
||||
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
sudo apt-get install -y webkit2gtk-4.0
|
||||
- name: test
|
||||
run: |
|
||||
cd ./cli/tauri-bundler
|
||||
cd ./tooling/bundler
|
||||
cargo test
|
||||
|
||||
clippy-fmt-check:
|
||||
@@ -52,7 +52,7 @@ jobs:
|
||||
uses: actions-rs/clippy-check@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --manifest-path ./cli/tauri-bundler/Cargo.toml --all-targets -- -D warnings
|
||||
args: --manifest-path ./tooling/bundler/Cargo.toml --all-targets -- -D warnings
|
||||
name: bundler
|
||||
- name: install rustfmt
|
||||
uses: actions-rs/toolchain@v1
|
||||
@@ -65,4 +65,4 @@ jobs:
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --manifest-path ./cli/tauri-bundler/Cargo.toml --all -- --check
|
||||
args: --manifest-path ./tooling/bundler/Cargo.toml --all -- --check
|
||||
|
||||
8
.github/workflows/test-core.yml
vendored
8
.github/workflows/test-core.yml
vendored
@@ -55,13 +55,13 @@ jobs:
|
||||
toolchain: stable
|
||||
override: true
|
||||
- name: build api
|
||||
working-directory: ./api
|
||||
working-directory: ./tooling/api
|
||||
run: yarn && yarn build
|
||||
- name: build CLI
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --manifest-path ./cli/core/Cargo.toml
|
||||
args: --manifest-path ./tooling/cli.rs/Cargo.toml
|
||||
|
||||
test-tauri-js-cli:
|
||||
runs-on: ${{ matrix.platform }}
|
||||
@@ -81,10 +81,10 @@ jobs:
|
||||
- name: test
|
||||
timeout-minutes: 30
|
||||
run: |
|
||||
cd ./cli/tauri.js
|
||||
cd ./tooling/cli.js
|
||||
yarn
|
||||
yarn test
|
||||
- name: run release build
|
||||
timeout-minutes: 15
|
||||
working-directory: cli/tauri.js
|
||||
working-directory: tooling/cli.js
|
||||
run: yarn build-release
|
||||
|
||||
12
.github/workflows/udeps.yml
vendored
12
.github/workflows/udeps.yml
vendored
@@ -9,8 +9,8 @@ on:
|
||||
paths:
|
||||
- '.github/workflows/udeps.yml'
|
||||
- 'core/**'
|
||||
- 'cli/tauri-bundler/**'
|
||||
- 'cli/core/**'
|
||||
- 'tooling/bundler/**'
|
||||
- 'tooling/cli.rs/**'
|
||||
|
||||
jobs:
|
||||
udeps:
|
||||
@@ -45,13 +45,13 @@ jobs:
|
||||
- name: Cache bundler cargo target
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: cli/tauri-bundler/target
|
||||
path: tooling/bundler/target
|
||||
key: ubuntu-latest-nightly-cargo-build-bundler-target-${{ hashFiles('**/Cargo.toml') }}
|
||||
|
||||
- name: Cache CLI cargo target
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: cli/core/target
|
||||
path: tooling/cli.rs/target
|
||||
key: ubuntu-latest-nightly-cargo-build-cli-target-${{ hashFiles('**/Cargo.toml') }}
|
||||
|
||||
- uses: actions-rs/cargo@v1
|
||||
@@ -72,9 +72,9 @@ jobs:
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: udeps
|
||||
args: --manifest-path ./cli/tauri-bundler/Cargo.toml --all-targets --all-features
|
||||
args: --manifest-path ./tooling/bundler/Cargo.toml --all-targets --all-features
|
||||
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: udeps
|
||||
args: --manifest-path ./cli/core/Cargo.toml --all-targets --all-features
|
||||
args: --manifest-path ./tooling/cli.rs/Cargo.toml --all-targets --all-features
|
||||
|
||||
2
.github/workflows/update-docs.yml
vendored
2
.github/workflows/update-docs.yml
vendored
@@ -47,7 +47,7 @@ jobs:
|
||||
- name: run typedocusaurus
|
||||
uses: tauri-apps/typedocusaurus/github-action@v1
|
||||
with:
|
||||
originPath: ./tauri/api/
|
||||
originPath: ./tauri/tooling/api/
|
||||
sidebarFile: sidebars.json
|
||||
targetPath: en/api/js
|
||||
docusaurusPath: ./tauri-docs/
|
||||
|
||||
Reference in New Issue
Block a user