Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Rippanda12 committed Dec 1, 2024
0 parents commit 7933b4b
Show file tree
Hide file tree
Showing 8,708 changed files with 4,442,812 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
18 changes: 18 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
((nil . ((show-trailing-whitespace . t)))
(prog-mode
(indent-tabs-mode . nil)
(tab-width . 8)
(c-basic-offset . 3)
(c-file-style . "stroustrup")
(fill-column . 78)
(eval . (progn
(c-set-offset 'case-label '0)
(c-set-offset 'innamespace '0)
(c-set-offset 'inline-open '0)))
(whitespace-style face indentation)
(whitespace-line-column . 79)
(eval ignore-errors
(require 'whitespace)
(whitespace-mode 1)))
(makefile-mode (indent-tabs-mode . t))
)
44 changes: 44 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# To use this config on you editor, follow the instructions at:
# http://editorconfig.org

root = true

[*]
charset = utf-8
insert_final_newline = true
tab_width = 8

[*.{c,h,cpp,hpp,cc,hh,y}]
indent_style = space
indent_size = 3
max_line_length = 78

[{Makefile*,*.mk}]
indent_style = tab

[*.py]
indent_style = space
indent_size = 4

[*.yml]
indent_style = space
indent_size = 2

[*.rst]
indent_style = space
indent_size = 3

[*.patch]
trim_trailing_whitespace = false

[{meson.build,meson_options.txt}]
indent_style = space
indent_size = 2

[*.ps1]
indent_style = space
indent_size = 2

[*.rs]
indent_style = space
indent_size = 4
92 changes: 92 additions & 0 deletions .github/workflows/build-on-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Build and Upload test package

on:
push:
paths:
- 'debian/changelog'



jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build packages
run: |
sudo apt-get update
sudo apt-get build-dep --no-install-recommends -y .
sudo apt-get install --no-install-recommends -y git-buildpackage debhelper devscripts
debuild --no-lintian -us -uc
- name: Workaround actions
run: |
echo "artifacts_path=$(realpath ..)" >> $GITHUB_ENV
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}
path: |
${{ env.artifacts_path }}/*.deb
release:
needs: build
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' && github.ref_name == 'main' }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Checkout repo
uses: actions/checkout@v4
with:
repository: ameridroid/apt-repo
path: repo

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y reprepro gnupg git unzip
- uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}

- name: Extract artifacts
run: |
ls *.deb
- name: Import GPG and ssh key
env:
GPG_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
SSH_KEY: ${{ secrets.APT_SSH_KEY }}
run: |
echo "$GPG_KEY" | gpg --import
gpg --list-keys
mkdir -p ~/.ssh
echo "$SSH_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan github.com >> ~/.ssh/known_hosts
- name: Upload packages to APT repository
run: |
cd ./repo
for package in ../*.deb; do
for codename in bookworm-testing trixie-testing sid-testing oracular-testing; do
reprepro --ignore=wrongdistribution includedeb $codename $package
done
done
- name: Push updated repository to main branch
run: |
cd ./repo
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add -A
git commit -m "Update ${{ github.event.repository.name}}" || echo "No changes to commit"
git remote set-url origin [email protected]:ameriDroid/apt-repo.git
git push origin main
115 changes: 115 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
name: Build and Upload release package
on:
workflow_dispatch:

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build packages
run: |
sudo apt-get update
sudo apt-get build-dep --no-install-recommends -y .
sudo apt-get install --no-install-recommends -y git-buildpackage debhelper devscripts
debuild --no-lintian -us -uc
- name: Workaround actions
run: |
echo "artifacts_path=$(realpath ..)" >> $GITHUB_ENV
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}
path: |
${{ env.artifacts_path }}/*.deb
release:
needs: build
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' && github.ref_name == 'main' }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Checkout repo
uses: actions/checkout@v4
with:
repository: ameridroid/apt-repo
path: repo

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y reprepro gnupg git unzip
- uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}

- name: Extract artifacts
run: |
ls *.deb
- name: Import GPG and ssh key
env:
GPG_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
SSH_KEY: ${{ secrets.APT_SSH_KEY }}
run: |
echo "$GPG_KEY" | gpg --import
gpg --list-keys
mkdir -p ~/.ssh
echo "$SSH_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan github.com >> ~/.ssh/known_hosts
- name: Upload packages to APT repository
run: |
cd ./repo
for package in ../*.deb; do
for codename in bookworm trixie sid oracular; do
reprepro --ignore=wrongdistribution includedeb $codename $package
done
done
- name: Push updated repository to main branch
run: |
cd ./repo
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add -A
git commit -m "Update ${{ github.event.repository.name}}" || echo "No changes to commit"
git remote set-url origin [email protected]:ameriDroid/apt-repo.git
git push origin main
- name: Release notes
run: |
version="$(dpkg-parsechangelog -S Version)"
# replace ~ with - to match tag format
version="${version//\~/\-}"
echo "version=$version" >> $GITHUB_ENV
echo "changes<<EOF" >> $GITHUB_ENV
echo '```' >> $GITHUB_ENV
echo "$(dpkg-parsechangelog -S Changes)" >> $GITHUB_ENV
echo '```' >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Release
uses: softprops/[email protected]
with:
files: |
./*.deb
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ env.version }}
body: |
## Changelog for ${{ env.version }}
${{ env.changes }}
draft: false
prerelease: false

Loading

0 comments on commit 7933b4b

Please sign in to comment.