Skip to content

Commit e642dd1

Browse files
authored
Enable manual run for caching, hackage and build workflows (#2528)
* Enable manual run * Remove skip ghcide We want to build all deps * Enable manual run of hackage * allow only check packages * Enable manual run of build
1 parent e6c1fca commit e642dd1

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Diff for: .github/workflows/build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Builds
22

33
on:
4+
workflow_dispatch:
45
release:
56
types: [created]
67
push:

Diff for: .github/workflows/caching.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ concurrency:
2727
cancel-in-progress: true
2828

2929
on:
30+
workflow_dispatch:
3031
push:
3132
branches:
3233
- master
@@ -52,19 +53,12 @@ jobs:
5253
runs-on: ubuntu-latest
5354
outputs:
5455
should_skip: ${{ steps.skip_check.outputs.should_skip }}
55-
should_skip_ghcide: ${{ steps.skip_ghcide_check.outputs.should_skip }}
5656
steps:
5757
- id: skip_check
5858
uses: fkirc/[email protected]
5959
with:
6060
cancel_others: false
6161
paths_ignore: '["**/docs/**", "**.md", "**/LICENSE", "install/**", "**.nix", "flake.lock", "**/README.md", "FUNDING.yml", ".circleci/**"]'
62-
# If we only change ghcide downstream packages we have not test ghcide itself
63-
- id: skip_ghcide_check
64-
uses: fkirc/[email protected]
65-
with:
66-
cancel_others: false
67-
paths_ignore: '["hls-test-utils/**", "plugins/**", "src/**", "exe/**", "test/**", "shake-bench/**"]'
6862

6963
caching:
7064
if: needs.pre_job.outputs.should_skip != 'true'

Diff for: .github/workflows/hackage.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ concurrency:
66
cancel-in-progress: true
77

88
on:
9+
workflow_dispatch:
10+
inputs:
11+
upload-candidates:
12+
description: 'Whether packages should be uploaded'
13+
required: true
14+
default: 'true'
915
push:
1016
branches:
1117
- '*-hackage'
@@ -14,7 +20,7 @@ jobs:
1420
check-and-upload-tarballs:
1521
runs-on: ubuntu-latest
1622
strategy:
17-
fail-fast: ${{ !contains(github.ref_name, 'check') }}
23+
fail-fast: ${{ !contains(github.ref_name, 'check') && github.event.inputs.upload-candidates != 'true' }}
1824
matrix:
1925
package: ["hie-compat", "hls-graph", "shake-bench",
2026
"hls-plugin-api", "ghcide", "hls-test-utils",
@@ -28,7 +34,6 @@ jobs:
2834
"hls-call-hierarchy-plugin", "hls-alternate-number-format-plugin",
2935
"hls-qualify-imported-names-plugin",
3036
"haskell-language-server"]
31-
# Uncomment 9.0.1 when ghcide is buildable
3237
ghc: [ "9.0.1",
3338
"8.10.7",
3439
"8.8.4",
@@ -181,7 +186,7 @@ jobs:
181186
path: ${{ steps.generate-dist-tarball.outputs.path }}
182187

183188
upload-candidate:
184-
if: ${{ !contains(github.ref_name, 'check') }}
189+
if: ${{ !contains(github.ref_name, 'check') || github.event.inputs.name == 'true' }}
185190
needs: check-and-upload-tarballs
186191
runs-on: ubuntu-latest
187192
steps:

0 commit comments

Comments
 (0)