antos/.gitea/workflows/build-bin.yml
Dany LE 6e24cd89f2
All checks were successful
AntOS pipeline / build-amd64 (push) Successful in 4m16s
AntOS pipeline / build-arm64 (push) Successful in 4m21s
AntOS pipeline / build-arm (push) Successful in 3m31s
AntOS pipeline / publish-on-tag (push) Has been skipped
feat(ci): add step to check binaries after build
2024-07-24 23:42:44 +02:00

34 lines
951 B
YAML

name: Building AntOS binaries
on:
workflow_call:
inputs:
platform:
required: true
type: string
jobs:
build:
runs-on: ci-tools
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Update submodule
run: git submodule update --init
- name: Building binaries for platform - ${{ inputs.platform }}
run: |
mkdir build
DESTDIR=$(realpath build) \
ARCH=${{ inputs.platform }} \
RUSTUP_HOME=/opt/rust/rustup \
CARGO_HOME=/opt/rust/cargo \
make all deb appimg
- name: Checking binaries
run: ./scripts/ckarch.sh build
- name: Save artifact
uses: actions/upload-artifact@v3
with:
name: build-${{ inputs.platform }}
path: build/
retention-days: 5
- run: echo "Build is ${{ job.status }}."