From c69a2b8f8642f3a206d86865db34a25f6b80ee12 Mon Sep 17 00:00:00 2001 From: frectonz Date: Thu, 20 Jun 2024 08:43:56 +0300 Subject: [PATCH] fix: enable dirty jobs --- .github/workflows/release.yml | 21 ++++++++++++++++----- Cargo.toml | 4 ++-- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d0de3a..2261bcc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,17 +80,12 @@ jobs: name: artifacts-plan-dist-manifest path: plan-dist-manifest.json - custom-build-ui: - uses: ./.github/workflows/build-ui.yml - secrets: inherit - # Build and packages all the platform-specific things build-local-artifacts: name: build-local-artifacts (${{ join(matrix.targets, ', ') }}) # Let the initial task tell us to not run (currently very blunt) needs: - plan - - custom-build-ui if: ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix.include != null && (needs.plan.outputs.publishing == 'true' || fromJson(needs.plan.outputs.val).ci.github.pr_run_mode == 'upload') }} strategy: fail-fast: false @@ -121,6 +116,22 @@ jobs: key: ${{ join(matrix.targets, '-') }} - name: Install cargo-dist run: ${{ matrix.install_dist }} + + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + - name: Install npm dependencies + run: | + cd ui + npm install + - name: Build npm project + run: | + cd ui + npm run build + + # Get the dist-manifest - name: Fetch local artifacts uses: actions/download-artifact@v4 diff --git a/Cargo.toml b/Cargo.toml index fec7bbe..1a2e6b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,5 +50,5 @@ targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux- pr-run-mode = "plan" # Whether to install an updater program install-updater = true -# Plan jobs to run in CI -plan-jobs = ["./build-ui"] +# Skip checking whether the specified configuration files are up to date +allow-dirty = ["ci"]