Skip to content
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

chore(kernel_crawler): updated archlinux arm64 mirror. #196

Merged
merged 2 commits into from
Apr 3, 2024
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
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ runs:
shell: bash
working-directory: ${{ github.action_path }}
run: |
kernel-crawler crawl --distro=${{ inputs.distro }} --arch=${{ inputs.arch }} > kernels_${{ inputs.arch }}.json
kernel-crawler crawl --distro=${{ inputs.distro }} --arch=${{ inputs.arch }} > ${{ runner.temp }}/kernels_${{ inputs.arch }}.json
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the test.yml CI, since before it was failing with:


test kernel-crawler
Invalid pattern '/home/runner/work/kernel-crawler/kernel-crawler/.//kernels_x86_64.json'. Relative pathing '.' and '..' is not allowed.

because ${{ github.action_path }} was relative to the root folder.
Using runner temporary folder yelds better results.


- name: Validate json
shell: bash
working-directory: ${{ github.action_path }}
working-directory: ${{ runner.temp }}
run: |
cat kernels_${{ inputs.arch }}.json | jq empty

- name: Set output
id: store-outputs
shell: bash
run: |
echo "json=${{ github.action_path }}/kernels_${{ inputs.arch }}.json" >> $GITHUB_OUTPUT
echo "json=${{ runner.temp }}/kernels_${{ inputs.arch }}.json" >> $GITHUB_OUTPUT
10 changes: 5 additions & 5 deletions kernel_crawler/archlinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ def __init__(self, arch):
self._base_urls.append('https://archive.archlinux.org/packages/l/linux-lts-headers/') # lts
self._base_urls.append('https://archive.archlinux.org/packages/l/linux-zen-headers/') # zen
elif arch == 'aarch64':
self._base_urls.append('http://tardis.tiny-vps.com/aarm/packages/l/linux-aarch64-headers/') # arm 64-bit
self._base_urls.append('https://alaa.ad24.cz/packages/l/linux-aarch64-headers/') # arm 64-bit
else: # can be implemented later
self._base_urls.append('http://tardis.tiny-vps.com/aarm/packages/l/linux-armv5-headers/') # arm v5
self._base_urls.append('http://tardis.tiny-vps.com/aarm/packages/l/linux-armv7-headers/') # arm v7
self._base_urls.append('http://tardis.tiny-vps.com/aarm/packages/l/linux-raspberrypi4-headers/') # rpi4
self._base_urls.append('http://tardis.tiny-vps.com/aarm/packages/l/linux-raspberrypi-headers/') # other rpi
self._base_urls.append('https://alaa.ad24.cz/packages/l/linux-armv5-headers/') # arm v5
self._base_urls.append('https://alaa.ad24.cz/packages/l/linux-armv7-headers/') # arm v7
self._base_urls.append('https://alaa.ad24.cz/packages/l/linux-raspberrypi4-headers/') # rpi4
self._base_urls.append('https://alaa.ad24.cz/packages/l/linux-raspberrypi-headers/') # other rpi

super(ArchLinuxMirror, self).__init__(self._base_urls, arch)

Expand Down
Loading