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

Host packages as pacman repository using GitHub Pages #26

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
29 changes: 29 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
tags: '*'
workflow_dispatch:

permissions:
pages: write
id-token: write

env:
PKGDEST: "/tmp/linux-chimeraos"
BUILDDIR: "/tmp/build"
Expand Down Expand Up @@ -63,6 +67,18 @@ jobs:
path: |
${{ env.PKGDEST }}/*.pkg.tar.zst
if-no-files-found: error
- name: Create repo archive
run: |
cd $PKGDEST
repo-add linux-chimeraos.db.tar.gz *.pkg.tar.zst
mv linux-chimeraos.db.tar.gz linux-chimeraos.db
mv linux-chimeraos.files.tar.gz linux-chimeraos.files
tar -cvf repo.tar ./*
- name: Upload repo artifact
uses: actions/upload-artifact@v4
with:
name: github-pages
path: ${{ env.PKGDEST }}/repo.tar

make-release:
runs-on: ubuntu-latest
Expand All @@ -84,3 +100,16 @@ jobs:
fail_on_unmatched_files: true
files: |
${{ env.PKGDEST }}/*.pkg.tar.zst

make-repo:
needs: [build-kernel]
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ This repository will use a PKGBUILD to build ArchLinux packages and publish
them as GitHub releases in binary package form. We currently do not provide a
custom ArchLinux repository.

## Pacman Repository

The pacman repository created from this repo is published to GitHub Pages by the GitHub Action in this repo. The repository can be configured in `pacman` like this at the bottom of `/etc/pacman.conf`:

```
[linux-chimeraos]
SigLevel = Optional TrustAll
Server = https://chimeraos.github.io/linux-chimeraos/
```

Installing the packages from this repo can be done with:

```shell
pacman -Sy linux-chimeraos linux-chimeraos-headers
```

# Contributing

Feel free to submit Pull Requests if a patch has merit over the current stable
Expand All @@ -15,4 +31,4 @@ around it

# Patch locations
We have two types of patches. Patches that are stabilized will be merged our [linux repo](https://github.com/chimeraos/linux). There a branch is kept for each version.
Those patches are part of the -chos* patch set. Furthermore we have experiments which are located in the patch file. This is one experiment at the time. Changes in this will result in a new pkgrel version.
Those patches are part of the -chos* patch set. Furthermore we have experiments which are located in the patch file. This is one experiment at the time. Changes in this will result in a new pkgrel version.