-
Notifications
You must be signed in to change notification settings - Fork 38
ci: upload generator in home repo only & minor fixes #169
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -11,7 +11,6 @@ on: | |||||||
| default: false | ||||||||
| required: false | ||||||||
|
|
||||||||
|
|
||||||||
| jobs: | ||||||||
| build: | ||||||||
| runs-on: ubuntu-22.04 | ||||||||
|
|
@@ -22,26 +21,33 @@ jobs: | |||||||
| with: | ||||||||
| path: ~/.stack | ||||||||
| key: ${{ runner.os }}-stack-${{ hashFiles('generator/stack.yaml.lock') }} | ||||||||
| restore-keys: | | ||||||||
| ${{ runner.os }}-stack- | ||||||||
| - name: Install Haskell toolchain and stack | ||||||||
| uses: haskell-actions/[email protected] | ||||||||
| with: | ||||||||
| enable-stack: true | ||||||||
|
|
||||||||
| - name: Cache build artifacts | ||||||||
| uses: actions/[email protected] | ||||||||
| with: | ||||||||
| path: generator/.stack-work | ||||||||
| key: ${{ runner.os }}-stack-work-${{ hashFiles('generator/stack.yaml.lock', 'generator/generator.cabal') }} | ||||||||
| - name: Install Haskell toolchain and stack | ||||||||
| uses: haskell-actions/[email protected] | ||||||||
| with: | ||||||||
| enable-stack: true | ||||||||
| restore-keys: | | ||||||||
| ${{ runner.os }}-stack-work- | ||||||||
|
|
||||||||
| - name: Set up Stack project | ||||||||
| working-directory: generator | ||||||||
| run: stack setup | ||||||||
| run: | | ||||||||
| stack setup | ||||||||
| - name: Build generator | ||||||||
| working-directory: generator | ||||||||
| run: stack build --no-terminal | ||||||||
| run: | | ||||||||
| stack build --no-terminal | ||||||||
|
Comment on lines
+45
to
+46
|
||||||||
| run: | | |
| stack build --no-terminal | |
| run: stack build --no-terminal |
Copilot
AI
Nov 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The multi-line format using run: | is unnecessary for single-line commands. This adds verbosity without providing any benefit. Consider keeping the original single-line format:
run: stack exec generator -- --helpThe multi-line format with | is typically reserved for commands that actually span multiple lines or need to preserve newlines.
| run: | | |
| stack exec generator -- --help | |
| run: stack exec generator -- --help |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The multi-line format using
run: |is unnecessary for single-line commands. This adds verbosity without providing any benefit. Consider keeping the original single-line format:The multi-line format with
|is typically reserved for commands that actually span multiple lines or need to preserve newlines.