updated ci to publish and build rolling for all main targets

This commit is contained in:
Concedo 2026-04-03 00:28:01 +08:00
parent be6ff2602d
commit b286d76873
6 changed files with 35 additions and 3 deletions

View file

@ -17,6 +17,7 @@ env:
jobs:
linux:
runs-on: ubuntu-22.04
permissions: write-all
container:
image: ubuntu:20.04
options: --privileged
@ -60,3 +61,21 @@ jobs:
with:
name: kcpp_linux_binary
path: dist/
- name: Install GitHub CLI
run: |
apt-get update
apt-get install -y curl
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
| dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" \
| tee /etc/apt/sources.list.d/github-cli.list > /dev/null
apt-get update
apt-get install -y gh
- name: Upload to GitHub Rolling Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload rolling dist/koboldcpp-linux-x64-oldpc --clobber --repo ${{ github.repository }}