Skip to content
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
47 changes: 41 additions & 6 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,51 @@ name: Build Package

on:
workflow_dispatch:
pull_request:
push:
branches: [main]
tags: ['v*']

permissions:
contents: read

jobs:
build:
if: github.ref == 'refs/heads/main'
check:
name: Test, validate and build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Test, build and install in a clean Arch Linux container
run: |
mkdir -p dist
docker run --rm -v "$PWD:/src" archlinux:latest bash /src/tools/ci.sh /src /src/dist

- uses: actions/upload-artifact@v4
with:
name: biglinux-config-package
path: dist/*.pkg.tar*
if-no-files-found: error

dispatch:
name: Send to BigLinux Package Build
needs: check
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Send Hooks BigLinux Build Package
shell: bash
- name: Dispatch x86_64 and ARM builds
env:
TOKEN: ${{ secrets.WEBHOOK_TOKEN }}
PAYLOAD: '{"event_type": "${{ github.repository }}", "client_payload": {"branch": "${{ github.ref_name }}", "url": "https://github.com/${{ github.repository }}"}}'
run: |
curl -X POST -H "Accept: application/json" -H "Authorization: token ${{ secrets.WEBHOOK_TOKEN }}" --data '{"event_type": "${{ github.repository }}", "client_payload": { "branch": "${{ github.ref_name }}", "url": "https://github.com/${{ github.repository }}"}}' https://api.github.com/repos/BigLinux-Package-Build/build-package/dispatches
curl -X POST -H "Accept: application/json" -H "Authorization: token ${{ secrets.WEBHOOK_TOKEN }}" --data '{"event_type": "${{ github.repository }}", "client_payload": { "branch": "${{ github.ref_name }}", "url": "https://github.com/${{ github.repository }}"}}' https://api.github.com/repos/BigLinux-Package-Build/build-package-ARM/dispatches
if [ -z "$TOKEN" ]; then
echo "::notice::WEBHOOK_TOKEN is not configured for this repository; skipping the dispatch."
exit 0
fi
for repo in build-package build-package-ARM; do
curl --fail-with-body --silent --show-error -X POST \
-H "Accept: application/json" -H "Authorization: token $TOKEN" \
--data "$PAYLOAD" "https://api.github.com/repos/BigLinux-Package-Build/$repo/dispatches"
done
29 changes: 25 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
# Python
__pycache__/
*.pyc
*.pyo
*.py[cod]
.pytest_cache/
.ruff_cache/
.mypy_cache/
.coverage
htmlcov/

# makepkg output (pkgbuild/PKGBUILD itself is tracked)
pkgbuild/src/
pkgbuild/pkg/
pkgbuild/biglinux-config/
pkgbuild/*.pkg.tar*
.pytest_cache/
.ruff_cache/
pkgbuild/*.log

# Editors, backups and stray files
.vscode/
.idea/
*.swp
*.log
*.bak
*.backup
*.old
*.orig
*.rej
*~
tests/.exec-*/
pkgbuild/PKGBUILD.ci
407 changes: 218 additions & 189 deletions README.md

Large diffs are not rendered by default.

Loading
Loading