|
@@ -20,22 +20,27 @@ jobs:
|
|
registryName: tauri-bundler
|
|
registryName: tauri-bundler
|
|
path: cli/tauri-bundler
|
|
path: cli/tauri-bundler
|
|
publishPath: cli/tauri-bundler/target/package # not in workspace so target folder is nested
|
|
publishPath: cli/tauri-bundler/target/package # not in workspace so target folder is nested
|
|
|
|
+ auditPath: cli/tauri-bundler
|
|
- name: tauri-utils
|
|
- name: tauri-utils
|
|
registryName: tauri-utils
|
|
registryName: tauri-utils
|
|
path: tauri-utils
|
|
path: tauri-utils
|
|
publishPath: target/package
|
|
publishPath: target/package
|
|
|
|
+ auditPath: ./
|
|
- name: tauri-api
|
|
- name: tauri-api
|
|
registryName: tauri-api
|
|
registryName: tauri-api
|
|
path: tauri-api
|
|
path: tauri-api
|
|
publishPath: target/package
|
|
publishPath: target/package
|
|
|
|
+ auditPath: ./
|
|
- name: tauri-updater
|
|
- name: tauri-updater
|
|
registryName: tauri-updater
|
|
registryName: tauri-updater
|
|
path: tauri-updater
|
|
path: tauri-updater
|
|
publishPath: target/package
|
|
publishPath: target/package
|
|
|
|
+ auditPath: ./
|
|
- name: tauri-core
|
|
- name: tauri-core
|
|
registryName: tauri
|
|
registryName: tauri
|
|
path: tauri
|
|
path: tauri
|
|
publishPath: target/package
|
|
publishPath: target/package
|
|
|
|
+ auditPath: ./
|
|
steps:
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
with:
|
|
@@ -54,6 +59,15 @@ jobs:
|
|
- name: cargo login
|
|
- name: cargo login
|
|
if: env.PACKAGE_VERSION != env.PUBLISHED_VERSION
|
|
if: env.PACKAGE_VERSION != env.PUBLISHED_VERSION
|
|
run: cargo login ${{ secrets.crate_token }}
|
|
run: cargo login ${{ secrets.crate_token }}
|
|
|
|
+ - name: cargo generate-lockfile (for audit)
|
|
|
|
+ if: env.PACKAGE_VERSION != env.PUBLISHED_VERSION
|
|
|
|
+ working-directory: ${{ matrix.package.auditPath }}
|
|
|
|
+ env:
|
|
|
|
+ TAURI_DIST_DIR: ${{ runner.workspace }}/tauri/tauri/examples/communication/dist
|
|
|
|
+ TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/examples/communication/src-tauri
|
|
|
|
+ run: |
|
|
|
|
+ echo "This is only for the audit. Lock files are listed in the gitignore so it should not be published."
|
|
|
|
+ cargo generate-lockfile
|
|
- name: cargo package
|
|
- name: cargo package
|
|
if: env.PACKAGE_VERSION != env.PUBLISHED_VERSION
|
|
if: env.PACKAGE_VERSION != env.PUBLISHED_VERSION
|
|
working-directory: ${{ matrix.package.path }}
|
|
working-directory: ${{ matrix.package.path }}
|
|
@@ -66,7 +80,7 @@ jobs:
|
|
echo "This is current latest:" $PUBLISHED_VERSION
|
|
echo "This is current latest:" $PUBLISHED_VERSION
|
|
- name: cargo audit
|
|
- name: cargo audit
|
|
if: env.PACKAGE_VERSION != env.PUBLISHED_VERSION
|
|
if: env.PACKAGE_VERSION != env.PUBLISHED_VERSION
|
|
- working-directory: ${{ matrix.package.path }}
|
|
|
|
|
|
+ working-directory: ${{ matrix.package.auditPath }}
|
|
env:
|
|
env:
|
|
TAURI_DIST_DIR: ${{ runner.workspace }}/tauri/tauri/examples/communication/dist
|
|
TAURI_DIST_DIR: ${{ runner.workspace }}/tauri/tauri/examples/communication/dist
|
|
TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/examples/communication/src-tauri
|
|
TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/examples/communication/src-tauri
|