fah-debian13/.forgejo/workflows/build.yml

40 lines
949 B
YAML
Raw Normal View History

2025-11-07 17:37:30 -05:00
name: Build FAH Client Package
on:
push:
branches: [ master ]
jobs:
build-deb:
runs-on: [self-hosted]
env:
BRANCH: ${{ github.ref_name }}
COMMIT: ${{ github.sha }}
steps:
- name: Clone repository
run: |
2025-11-07 17:49:12 -05:00
git clone --branch "$BRANCH" https://mentalnet.xyz/forgejo/markmental/newfah.git .
2025-11-07 17:37:30 -05:00
echo "✅ Checked out $BRANCH ($COMMIT)"
- name: Install packaging tools
run: |
apt-get update
apt-get install -y dpkg-dev fakeroot lintian
2025-11-07 17:49:12 -05:00
- name: Build Debian package
2025-11-07 17:37:30 -05:00
run: |
mkdir -p build
2025-11-07 17:49:12 -05:00
dpkg-deb --build . build/fahclient.deb
echo "✅ Built build/fahclient.deb"
2025-11-07 17:37:30 -05:00
- name: Lint package
run: |
lintian build/fahclient.deb || true
- name: Upload .deb artifact
uses: actions/upload-artifact@v3
with:
name: fahclient-deb
path: build/fahclient.deb