mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
crew: Add cflags for armv7l, add some CREW_ constants (#7585)
* Add armv7l cflags and CREW_KERNEL_VERSION const * Adjust package code which uses kernel version * rework logic * adjust logic * debugging * add CREW_IN_CONTAINER * Use CREW_IN_CONTAINER in packages. * Add CREW_IS_AMD and CREW_IS_INTEL * suggested changes * test new cpu logic * cleanup cpu logic * add CREW_CPU_VENDOR * fix cpu detection on x86 * lint * fix package dynamic versioning * lint changes * update for non-x86, and make linuxheaders a one-shot deal * add 5.10 x86_64 binaries for linuxheaders * lint * suggested changes * fix musl_linuxheaders * show container info in sysinfo * Use CREW_KERNEL_VERSION * add markdown interpretation code * refactor markdown code * modify issue template to get markdown code for crew sysinfo * attempt to change the issue template to the newer github yaml format * move issue template to yaml file * update Linters logic * lint crew * update linter.rb too * bump linter.rb version
This commit is contained in:
41
.github/ISSUE_TEMPLATE.md
vendored
41
.github/ISSUE_TEMPLATE.md
vendored
@@ -1,41 +0,0 @@
|
||||
<!--
|
||||
## Before you submit an issue
|
||||
Please look up our issues, maybe your problem was mentioned before.
|
||||
-->
|
||||
|
||||
## Description
|
||||
<!-- Provide a short description of your problem here. -->
|
||||
|
||||
If you executed a specific command:
|
||||
```shell
|
||||
# your command here
|
||||
```
|
||||
|
||||
Output:
|
||||
```
|
||||
# output of your command here
|
||||
```
|
||||
|
||||
## Versions and system information
|
||||
<!--
|
||||
Paste the output of `crew sysinfo` between two `***` below
|
||||
|
||||
*If `crew sysinfo` does not work, use `cat /etc/lsb-release` instead.
|
||||
-->
|
||||
***
|
||||
***
|
||||
|
||||
## Additional information
|
||||
<!--
|
||||
Mention things we might need to know. Like:
|
||||
|
||||
What I think needs to be done:
|
||||
- [ ] step one
|
||||
- [ ] step two
|
||||
-->
|
||||
|
||||
<!--
|
||||
## That's it
|
||||
Thank you for submitting your issue.
|
||||
When done, please delete the parts of this template which you don't need or these, which are only for guidance.
|
||||
-->
|
||||
64
.github/ISSUE_TEMPLATE.yml
vendored
Normal file
64
.github/ISSUE_TEMPLATE.yml
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
---
|
||||
name: 🐞 Bug
|
||||
description: File a bug/issue
|
||||
title: "[BUG] <title>"
|
||||
labels: [Bug, Needs Triage]
|
||||
body:
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Is there an existing issue for this?
|
||||
description: Please search to see if an issue already exists for the bug you encountered.
|
||||
options:
|
||||
- label: I have searched the existing issues
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Description
|
||||
description: A concise description of what you're experiencing.
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Expected Behavior
|
||||
description: A concise description of what you expected to happen.
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Steps To Reproduce
|
||||
description: Steps to reproduce the behavior.
|
||||
placeholder: |
|
||||
1. I executed this command:
|
||||
```shell
|
||||
# your command here
|
||||
```
|
||||
Output:
|
||||
```
|
||||
# output of your command
|
||||
```
|
||||
render: markdown
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Environment
|
||||
description: |
|
||||
Paste the output of `crew sysinfo -v` between two `***` below
|
||||
value: |
|
||||
***
|
||||
***
|
||||
render: markdown
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Anything else?
|
||||
description: |
|
||||
Links? References? Anything that will give us more context about the issue you are encountering!
|
||||
What I think needs to be done:
|
||||
- [ ] step one
|
||||
- [ ] step two
|
||||
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
|
||||
render: markdown
|
||||
validations:
|
||||
required: false
|
||||
34
.github/workflows/Linters.yml
vendored
34
.github/workflows/Linters.yml
vendored
@@ -26,31 +26,33 @@ jobs:
|
||||
ruby=
|
||||
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
|
||||
ext="${file##*.}"
|
||||
type="$(file -b $file | cut -d' ' -f1)"
|
||||
case $type in
|
||||
Bourne-Again)
|
||||
ext="sh"
|
||||
;;
|
||||
HTML)
|
||||
ext="md"
|
||||
;;
|
||||
Ruby)
|
||||
ext="rb"
|
||||
;;
|
||||
esac
|
||||
if ! [[ "$ext" =~ ^(md|rb|sh|yml|yaml)$ ]]; then
|
||||
type="$(file -b "$file" | cut -d' ' -f1)"
|
||||
case $type in
|
||||
Bourne-Again)
|
||||
ext="sh"
|
||||
;;
|
||||
HTML)
|
||||
ext="md"
|
||||
;;
|
||||
Ruby)
|
||||
ext="rb"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
case $ext in
|
||||
md)
|
||||
mdl $file
|
||||
mdl "$file"
|
||||
;;
|
||||
rb)
|
||||
ruby=true
|
||||
ruby -wcWlevel=2 $file
|
||||
ruby -wcWlevel=2 "$file"
|
||||
;;
|
||||
sh)
|
||||
shellcheck $file
|
||||
shellcheck "$file"
|
||||
;;
|
||||
yml|yaml)
|
||||
yaml-lint $file
|
||||
yaml-lint "$file"
|
||||
;;
|
||||
*)
|
||||
echo "Unable to check syntax of $file."
|
||||
|
||||
Reference in New Issue
Block a user