Skip to content

Commit

Permalink
fix: enable dirty jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
frectonz committed Jun 20, 2024
1 parent 2155c76 commit c69a2b8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit c69a2b8

Please sign in to comment.