This commit is contained in:
@ -1,21 +1,35 @@
|
|||||||
name: Build packages
|
name: Build packages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
package:
|
package:
|
||||||
description: 'Package name'
|
description: 'Package name (leave empty for all)'
|
||||||
required: true
|
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: Build and publish
|
|
||||||
env:
|
- name: Skip if not needed
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
id: check
|
||||||
run: |
|
run: |
|
||||||
docker info || echo "NO DOCKER"
|
if [ -n "${{ github.event.inputs.package }}" ] && \
|
||||||
make -C ${{ github.event.inputs.package }} fetch
|
[ "${{ github.event.inputs.package }}" != "${{ matrix.package }}" ]; then
|
||||||
make -C ${{ github.event.inputs.package }} build publish
|
echo "SKIP=true" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Build and publish
|
||||||
|
if: env.SKIP != 'true'
|
||||||
|
run: |
|
||||||
|
echo "Building ${{ matrix.package }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user