add aarch64
This commit is contained in:
parent
fa59f4eb1e
commit
036f298c6d
2 changed files with 42 additions and 1 deletions
41
.forgejo/workflows/build-aarch64.yaml
Normal file
41
.forgejo/workflows/build-aarch64.yaml
Normal file
|
@ -0,0 +1,41 @@
|
|||
on:
|
||||
pull_request:
|
||||
types: [ assigned, opened, synchronize, reopened ]
|
||||
|
||||
jobs:
|
||||
build-x86_64:
|
||||
runs-on: aarch64
|
||||
container:
|
||||
image: alpinelinux/alpine-gitlab-ci:latest
|
||||
env:
|
||||
CI_PROJECT_DIR: ${{ github.workspace }}
|
||||
CI_DEBUG_BUILD: ${{ runner.debug }}
|
||||
CI_MERGE_REQUEST_PROJECT_URL: ${{ github.server_url }}/${{ github.repository }}
|
||||
CI_MERGE_REQUEST_TARGET_BRANCH_NAME: ${{ github.base_ref }}
|
||||
steps:
|
||||
- run: doas apk add nodejs git patch
|
||||
- run: doas wget -P /etc/apk/keys 'https://ayakael.net/pkgs/apk/raw/branch/edge/antoine.martin@protonmail.com-5b3109ad.rsa.pub'
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 500
|
||||
- run: doas patch -d / -p1 -i ${{ github.workspace }}/.forgejo/patches/build.patch
|
||||
- run: build.sh
|
||||
- uses: forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: package
|
||||
path: packages
|
||||
|
||||
deploy-aarch64:
|
||||
runs-on: aarch64
|
||||
container:
|
||||
image: alpine:latest
|
||||
env:
|
||||
CI_ALPINE_REPO: 'https://ayakael.net/api/packages/forge/alpine'
|
||||
FORGE_REPO_TOKEN: ${{ secrets.FORGE_REPO_TOKEN }}
|
||||
FORGE_REPO_USER: ${{ vars.FORGE_REPO_USER }}
|
||||
steps:
|
||||
- run: apk add nodejs curl findutils git gawk
|
||||
- uses: actions/checkout@v4
|
||||
- uses: forgejo/download-artifact@v4
|
||||
- name: Deploy to repo
|
||||
run: ${{ github.workspace }}/.forgejo/bin/deploy.sh
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
name: package
|
||||
path: packages
|
||||
|
||||
deploy:
|
||||
deploy-x86_64:
|
||||
runs-on: x86_64
|
||||
container:
|
||||
image: alpine:latest
|
Loading…
Reference in a new issue