Pack for all arches

This commit is contained in:
2025-05-08 14:43:45 -05:00
parent 1e123f5a20
commit 7659693463
3 changed files with 45 additions and 23 deletions

View File

@ -1,6 +1,6 @@
version: 38
version: 39
jobs:
- name: Build for x86_64
- name: Build
steps:
- !CheckoutStep
name: Checkout
@ -8,25 +8,6 @@ jobs:
withLfs: true
withSubmodules: false
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !CommandStep
name: Execute build
runInContainer: true
image: onedev.site.tesses.net/dependencies/dependencies:latest
interpreter: !DefaultInterpreter
commands: |
mkdir build
cd build
cmake -S .. -B . -DCMAKE_INSTALL_PREFIX=/usr
make -j12
make install DESTDIR=out
cpack -G DEB
curl --user $GITEA_USERPASS -X DELETE https://gitea-pkg.site.tesses.net/api/packages/tesses50/debian/pool/noble/main/tessesframework/1.0.0/amd64 || true
curl --user $GITEA_USERPASS --upload-file TessesFramework-1.0.0-Linux.deb https://gitea-pkg.site.tesses.net/api/packages/tesses50/debian/pool/noble/main/upload
envVars:
- name: GITEA_USERPASS
value: '@secret:GITEA_USERPASS@'
useTTY: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !BuildImageStep
name: Build Docker Image
dockerfile: Dockerfile.run
@ -36,7 +17,7 @@ jobs:
- registryUrl: '@server_url@'
userName: '@job_token@'
passwordSecret: dockersecret
platforms: linux/amd64
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/riscv64,linux/s390x
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
triggers:
- !BranchUpdateTrigger