# Copyright 2019-2023 Tauri Programme within The Commons Conservancy # SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: MIT name: publish cli.js env: DEBUG: napi:* APP_NAME: cli MACOSX_DEPLOYMENT_TARGET: '10.13' on: workflow_dispatch: defaults: run: working-directory: tooling/cli/node/ jobs: build: strategy: fail-fast: true matrix: settings: - host: macos-latest target: x86_64-apple-darwin architecture: x64 build: | yarn build:release --features rustls strip -x *.node - host: macos-latest target: aarch64-apple-darwin build: | yarn build:release --features rustls --target=aarch64-apple-darwin strip -x *.node name: stable - ${{ matrix.settings.target }} - node@16 runs-on: ${{ matrix.settings.host }} steps: - uses: actions/checkout@v3 with: repository: 'dceddia/tauri' ref: 'dd32f97335a6105b134e70dad02d269e49a75b56' - name: Setup node uses: actions/setup-node@v3 with: node-version: 16 check-latest: true architecture: ${{ matrix.settings.architecture }} - name: Install uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.settings.target }} toolchain: stable - name: Install dependencies run: yarn install --ignore-scripts --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000 - name: Build run: ${{ matrix.settings.build }} shell: bash - name: Upload artifact uses: actions/upload-artifact@v3 with: name: bindings-${{ matrix.settings.target }} path: tooling/cli/node/${{ env.APP_NAME }}.*.node if-no-files-found: error