feature test
All checks were successful
Build packages / build (push) Successful in 22s

This commit is contained in:
paltovkone
2026-03-07 23:02:32 +04:00
parent 529ecc43fa
commit d525feb6d0

View File

@ -3,33 +3,21 @@ name: Build packages
on:
push:
branches: [main]
workflow_dispatch:
inputs:
package:
description: 'Package name (leave empty for all)'
required: false
jobs:
build:
runs-on: ubuntu-latest
container:
image: ubuntu:24.04
strategy:
matrix:
package: [v2ray] # просто добавляешь сюда новые пакеты
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Skip if not needed
id: check
- name: Build each package
run: |
if [ -n "${{ github.event.inputs.package }}" ] && \
[ "${{ github.event.inputs.package }}" != "${{ matrix.package }}" ]; then
echo "SKIP=true" >> $GITHUB_ENV
fi
- name: Build and publish
if: env.SKIP != 'true'
run: |
echo "Building ${{ matrix.package }}"
for pkg in */; do
[ -f "${pkg}VERSION" ] || continue
echo "=== Processing $pkg ==="
docker run --rm \
-v "$PWD/$pkg:/work" \
-w /work \
alpine \
ls -la
done