Skip to content

Enable manual run for caching, hackage and build workflows #2528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Builds

on:
workflow_dispatch:
release:
types: [created]
push:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/caching.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ concurrency:
cancel-in-progress: true

on:
workflow_dispatch:
push:
branches:
- master
Expand All @@ -52,19 +53,12 @@ jobs:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
should_skip_ghcide: ${{ steps.skip_ghcide_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/[email protected]
with:
cancel_others: false
paths_ignore: '["**/docs/**", "**.md", "**/LICENSE", "install/**", "**.nix", "flake.lock", "**/README.md", "FUNDING.yml", ".circleci/**"]'
# If we only change ghcide downstream packages we have not test ghcide itself
- id: skip_ghcide_check
uses: fkirc/[email protected]
with:
cancel_others: false
paths_ignore: '["hls-test-utils/**", "plugins/**", "src/**", "exe/**", "test/**", "shake-bench/**"]'

caching:
if: needs.pre_job.outputs.should_skip != 'true'
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/hackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ concurrency:
cancel-in-progress: true

on:
workflow_dispatch:
inputs:
upload-candidates:
description: 'Whether packages should be uploaded'
required: true
default: 'true'
push:
branches:
- '*-hackage'
Expand All @@ -14,7 +20,7 @@ jobs:
check-and-upload-tarballs:
runs-on: ubuntu-latest
strategy:
fail-fast: ${{ !contains(github.ref_name, 'check') }}
fail-fast: ${{ !contains(github.ref_name, 'check') && github.event.inputs.upload-candidates != 'true' }}
matrix:
package: ["hie-compat", "hls-graph", "shake-bench",
"hls-plugin-api", "ghcide", "hls-test-utils",
Expand All @@ -28,7 +34,6 @@ jobs:
"hls-call-hierarchy-plugin", "hls-alternate-number-format-plugin",
"hls-qualify-imported-names-plugin",
"haskell-language-server"]
# Uncomment 9.0.1 when ghcide is buildable
ghc: [ "9.0.1",
"8.10.7",
"8.8.4",
Expand Down Expand Up @@ -181,7 +186,7 @@ jobs:
path: ${{ steps.generate-dist-tarball.outputs.path }}

upload-candidate:
if: ${{ !contains(github.ref_name, 'check') }}
if: ${{ !contains(github.ref_name, 'check') || github.event.inputs.name == 'true' }}
needs: check-and-upload-tarballs
runs-on: ubuntu-latest
steps:
Expand Down