2024-11-23 20:54:27 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
|
|
|
|
jobs:
|
2024-11-23 22:34:50 +00:00
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
arch:
|
|
|
|
- x86_64
|
|
|
|
- aarch64
|
|
|
|
- armv7
|
|
|
|
container: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/${{ matrix.arch }}:latest
|
2024-11-23 20:54:27 +00:00
|
|
|
steps:
|
|
|
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
|
|
|
- uses: https://code.forgejo.org/actions/cache@v4
|
|
|
|
with:
|
|
|
|
path: ~/repodest
|
2024-11-23 22:34:50 +00:00
|
|
|
key: ${{ matrix.arch }}-ptrcports
|
2024-11-23 20:54:27 +00:00
|
|
|
|
|
|
|
- name: Set up secrets
|
|
|
|
run: |
|
|
|
|
echo "${{ secrets.SSH_KEY }}" | base64 -d > /tmp/ssh_key
|
|
|
|
echo "${{ secrets.PACKAGER_PRIVKEY }}" | base64 -d > /tmp/packager_key
|
|
|
|
- name: Do the build
|
|
|
|
env:
|
|
|
|
PRIVATE_KEY: /tmp/ssh_key
|
|
|
|
PACKAGER_PRIVKEY: /tmp/packager_key
|
|
|
|
run: do-the-build ptrcports "$GITHUB_REF_NAME"
|