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