just hardcode
This commit is contained in:
@@ -6,43 +6,16 @@ on:
|
|||||||
- cron: "30 3 * * *"
|
- cron: "30 3 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
only:
|
|
||||||
description: "Space-separated package dirs to build (blank = all)"
|
|
||||||
required: false
|
|
||||||
default: ""
|
|
||||||
replace:
|
replace:
|
||||||
description: "Replace existing registry files on version clash"
|
description: "Replace existing registry files on version clash"
|
||||||
required: false
|
required: false
|
||||||
default: "false"
|
default: "false"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
discover:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: archlinux:latest
|
|
||||||
outputs:
|
|
||||||
packages: ${{ steps.list.outputs.packages }}
|
|
||||||
steps:
|
|
||||||
- name: Install toolchain
|
|
||||||
run: |
|
|
||||||
# nodejs is required by JS actions like actions/checkout.
|
|
||||||
pacman -Syu --noconfirm --needed git python nodejs
|
|
||||||
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: List packages
|
|
||||||
id: list
|
|
||||||
env:
|
|
||||||
ONLY: ${{ github.event.inputs.only }}
|
|
||||||
run: |
|
|
||||||
packages=$(python3 autopackage.py --list-json ${ONLY:+--only $ONLY})
|
|
||||||
echo "packages=$packages" >> "$GITHUB_OUTPUT"
|
|
||||||
echo "Matrix: $packages"
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: discover
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
# Grant the auto-provisioned github.token write access to the package
|
||||||
|
# registry (otherwise uploads get HTTP 401 reqPackageAccess).
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
@@ -56,7 +29,19 @@ jobs:
|
|||||||
# Tune to your runner capacity; remove for unlimited parallelism.
|
# Tune to your runner capacity; remove for unlimited parallelism.
|
||||||
max-parallel: 3
|
max-parallel: 3
|
||||||
matrix:
|
matrix:
|
||||||
pkg: ${{ fromJSON(needs.discover.outputs.packages) }}
|
# Keep this list in sync with the package directories in the repo
|
||||||
|
# (one entry per top-level folder). Dynamic discovery from a job
|
||||||
|
# output needs a newer Gitea (PR #36564); until then, hardcode here.
|
||||||
|
pkg:
|
||||||
|
- bacula
|
||||||
|
- fchat-horizon-appimage
|
||||||
|
- ggml-git-latest-commit
|
||||||
|
- openrgb-git
|
||||||
|
- paru
|
||||||
|
- plezy-bin
|
||||||
|
- qownnotes
|
||||||
|
- ventoy-bin
|
||||||
|
- visual-studio-code-bin
|
||||||
steps:
|
steps:
|
||||||
- name: Install toolchain
|
- name: Install toolchain
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user