-
-
Notifications
You must be signed in to change notification settings - Fork 111
ci(aur): add aur checks #286
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
Open
MuntasirSZN
wants to merge
126
commits into
main
Choose a base branch
from
MuntasirSZN-patch-1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+94
−33
Open
Changes from all commits
Commits
Show all changes
126 commits
Select commit
Hold shift + click to select a range
b80e89f
ci(aur): add aur checks
MuntasirSZN 36cbaf6
fix(aur): pkgbuild
MuntasirSZN dd94d46
fix(aur): pkgbuild-git
MuntasirSZN 19cf19a
fix
MuntasirSZN 24e4b88
add some nice colors
MuntasirSZN 26a75ae
remove unused env
MuntasirSZN 545593d
Merge branch 'main' into MuntasirSZN-patch-1
MuntasirSZN d4ff3bf
add clang
MuntasirSZN bcd5465
remove zig and use clang
MuntasirSZN 5e05739
gcc
MuntasirSZN 3fd32d7
gcc
MuntasirSZN 3825cbd
setup aur correctly
MuntasirSZN 2489524
add perl too (ring needs)
MuntasirSZN 3938df4
fix
MuntasirSZN 1de8ac7
another fix
MuntasirSZN d0c354a
fix
MuntasirSZN 73b02f6
fix
MuntasirSZN 85fc240
Update aur-check.yml
MuntasirSZN 22c71a9
Update aur-check.yml
MuntasirSZN d8da02c
Update aur-check.yml
MuntasirSZN 6958d05
fix
MuntasirSZN ff7de41
remove things to make sure the makedepends is precise
MuntasirSZN 3db6bbb
testing
MuntasirSZN 1484860
Update PKGBUILD-GIT
MuntasirSZN d4c8dd1
install sudo also
MuntasirSZN 4f00163
Update aur-check.yml
MuntasirSZN fa8ddab
Update PKGBUILD
MuntasirSZN b0a9d18
Update PKGBUILD-GIT
MuntasirSZN 5651916
tets
MuntasirSZN b67e926
re
MuntasirSZN 387567a
lsl
MuntasirSZN 156708f
;s;ss;s;
MuntasirSZN 0dd976c
change
MuntasirSZN d76e1f3
Update aur-check.yml
MuntasirSZN ca3d577
i am fed up
MuntasirSZN cf4c7e1
Merge branch 'main' into MuntasirSZN-patch-1
MuntasirSZN 543dd0b
test
MuntasirSZN c2eb9c4
test
MuntasirSZN 7c3c264
test
MuntasirSZN 1ee33c0
add rustls with aws_lc
MuntasirSZN 4633c6f
Merge branch 'main' into MuntasirSZN-patch-1
MuntasirSZN 562024b
revert to 1.87.0 for now (TESTING)
MuntasirSZN 4713390
i get it?
MuntasirSZN 389a6a0
trying the base-devel image
MuntasirSZN 65e3850
debugging
MuntasirSZN 8829b47
I AM SOOOOO HAPPPPPPYYYY
MuntasirSZN d72b27b
Update PKGBUILD-GIT
MuntasirSZN 72feaf3
Update PKGBUILD
MuntasirSZN f071e56
Update PKGBUILD-GIT
MuntasirSZN b310c1b
Update aur-check.yml
MuntasirSZN 2a82bae
Update PKGBUILD
MuntasirSZN a960162
Update aur-check.yml
MuntasirSZN 246319c
Update aur-check.yml
MuntasirSZN 3813054
Update PKGBUILD-GIT
MuntasirSZN 80605eb
Update aur-check.yml
MuntasirSZN b37cc0d
Update aur-check.yml
MuntasirSZN 2dd2f9c
Update aur-check.yml
MuntasirSZN 3f02eee
apply suggestion of @avifenesh
MuntasirSZN 0814d05
apply suggestion of @avifenesh in git version
MuntasirSZN b00e396
Update PKGBUILD-GIT
MuntasirSZN a0c327a
OVERLOAD the pacman command to match runner images on github
MuntasirSZN a212360
Update aur-check.yml
MuntasirSZN 5fd48c2
Update aur-check.yml
MuntasirSZN 8a50b6b
Update aur-check.yml
MuntasirSZN 3a8d392
Update aur-check.yml
MuntasirSZN 53461c9
Update aur-check.yml
MuntasirSZN 6e57f00
Merge branch 'main' into MuntasirSZN-patch-1
MuntasirSZN 895f400
fix
MuntasirSZN 58d534d
lockfile
MuntasirSZN 2c52522
Update PKGBUILD-GIT
MuntasirSZN f9d470b
Update PKGBUILD
MuntasirSZN e21596a
Update PKGBUILD-GIT
MuntasirSZN 6d9d183
Update aur-check.yml
MuntasirSZN 52cd1f5
Update aur-check.yml
MuntasirSZN 002399c
Update PKGBUILD-GIT
MuntasirSZN afa86cd
Update PKGBUILD-GIT
MuntasirSZN 9e66c6f
Update PKGBUILD
MuntasirSZN 696678e
Update PKGBUILD-GIT
MuntasirSZN f373b5d
lockfile
MuntasirSZN 67f6b14
checking if binutils glibc gcc-libs is needed
MuntasirSZN 9aef560
apply the same to pkgbuild
MuntasirSZN be7f414
initialize the aws_ls_rs provider
MuntasirSZN a34ad5e
Update PKGBUILD-GIT
MuntasirSZN c81017d
add a comment
MuntasirSZN d5c6a0c
Merge branch 'main' into MuntasirSZN-patch-1
MuntasirSZN f9893e0
update lockfile
MuntasirSZN 890fcea
Merge branch 'main' into MuntasirSZN-patch-1
MuntasirSZN beecb06
Update PKGBUILD-GIT
MuntasirSZN 318c19f
Update PKGBUILD
MuntasirSZN c46d166
run on all pkgbuilds (build will fail on PKGBUILD and GIT as its not …
MuntasirSZN 50b4340
remove mimalloc code, it will fail
MuntasirSZN f66f222
remove mimalloc code
MuntasirSZN 070947d
Merge branch 'main' into MuntasirSZN-patch-1
MuntasirSZN 780bc6a
lockfile
MuntasirSZN 40cae30
Update PKGBUILD-GIT
MuntasirSZN 34e8ade
Update PKGBUILD
MuntasirSZN 1fa0487
run on git for now
MuntasirSZN a3e7bff
Update PKGBUILD
MuntasirSZN e5816ac
Update PKGBUILD-GIT
MuntasirSZN ae6fd52
a try with base devel
MuntasirSZN 53f2643
Update aur-check.yml
MuntasirSZN 7c351cb
Update aur-check.yml
MuntasirSZN 8e0f582
Update aur-check.yml
MuntasirSZN 237f20d
Merge branch 'main' into MuntasirSZN-patch-1
MuntasirSZN 4a1abc9
lockfile
MuntasirSZN 2c85f33
Merge branch 'main' into MuntasirSZN-patch-1
MuntasirSZN e42e8e2
Update PKGBUILD-GIT
MuntasirSZN d9791e4
Update PKGBUILD-GIT
MuntasirSZN 3a5a080
Update PKGBUILD-GIT
MuntasirSZN 061a63f
Update aur-check.yml
MuntasirSZN e296182
Update aur-check.yml
MuntasirSZN e52af99
Update aur/PKGBUILD
MuntasirSZN 39a1a01
Update PKGBUILD-GIT
MuntasirSZN b7829f6
Apply suggestion from @avifenesh
MuntasirSZN d69b87e
Update PKGBUILD-GIT
MuntasirSZN 3e47a56
Update PKGBUILD-GIT
MuntasirSZN 768fd3d
Update PKGBUILD-GIT
MuntasirSZN 4172792
Merge remote-tracking branch 'origin/main' into MuntasirSZN-patch-1
MuntasirSZN ba0babd
Update PKGBUILD-GIT
MuntasirSZN d243957
Update PKGBUILD-GIT
MuntasirSZN 41dea85
Update PKGBUILD-GIT
MuntasirSZN 3c1479b
Update PKGBUILD-GIT
MuntasirSZN 536ddcd
last try (as found on https://aur.archlinux.org/packages/aws-lc)
MuntasirSZN f841aa9
fix: final fixes (not validated)
MuntasirSZN 6eb1c16
Merge branch 'main' into MuntasirSZN-patch-1
MuntasirSZN 932e9dc
chore: final update wait for merge
MuntasirSZN File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| name: Arch Linux Container Validation | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - '.github/workflows/aur-check.yml' | ||
| - 'aur/**' | ||
| push: | ||
MuntasirSZN marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| paths: | ||
| - '.github/workflows/aur-check.yml' | ||
| - 'aur/**' | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| archlinux-validation: | ||
| name: Arch Linux Container Build & Test | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: archlinux/archlinux:latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Cache Pacman Dependencies | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: /var/cache/pacman/pkg | ||
| key: ${{ runner.os }}-pacman-${{ hashFiles('/etc/pacman.conf', '/etc/makepkg.config', '/etc/makepkg/rust.conf') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-pacman- | ||
|
|
||
| - name: Install base dependencies | ||
| run: | | ||
| pacman -Syu --noconfirm | ||
|
|
||
| pacman -S --noconfirm \ | ||
| namcap \ | ||
MuntasirSZN marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| shellcheck | ||
|
|
||
| - name: Validate PKGBUILD files | ||
| run: | | ||
| set -e | ||
|
|
||
| # Color codes | ||
MuntasirSZN marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| RED='\033[0;31m' | ||
| GREEN='\033[0;32m' | ||
| YELLOW='\033[1;33m' | ||
| BLUE='\033[0;34m' | ||
| MAGENTA='\033[0;35m' | ||
| CYAN='\033[0;36m' | ||
| WHITE='\033[1;37m' | ||
| NC='\033[0m' # No Color | ||
|
|
||
| for pathname in aur/PKGBUILD*; do | ||
| if [ -f "${pathname}" ]; then | ||
| filename=$(basename ${pathname}) | ||
| dirname=$(dirname ${pathname}) | ||
|
|
||
| echo -e "${CYAN}============ Validating [${NC}${filename}${CYAN}] ============${NC}\n\n" | ||
|
|
||
| echo -e "${YELLOW}============ Running Shellcheck On${NC} ${filename} ${YELLOW}============${NC}\n" | ||
| if shellcheck --shell=bash --exclude=SC2034,SC2154,SC2164 "${pathname}"; then | ||
| echo -e "${GREEN}✅ Shellcheck passed${NC}" | ||
| else | ||
| echo -e "${RED}❌ Shellcheck failed${NC}" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo -e "${BLUE}============ Running Namcap On${NC} ${filename} ${BLUE}============${NC}\n" | ||
| if namcap "${pathname}"; then | ||
| echo -e "${GREEN}✅ Namcap passed${NC}" | ||
| else | ||
| echo -e "${RED}❌ Namcap failed${NC}" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo -e "${GREEN}🎉 ${filename} Validation Completed Successfully!${NC}" | ||
| echo "" | ||
| fi | ||
| done | ||
|
|
||
| echo -e "${GREEN}🚀 All PKGBUILD files validated successfully!${NC}" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.