antos/.gitea/workflows/build-bin.yml
Dany LE 2cc44c1a11
Some checks failed
AntOS pipeline / build-amd64 (push) Failing after 4m12s
AntOS pipeline / build-arm64 (push) Failing after 4m27s
AntOS pipeline / build-arm (push) Failing after 3m59s
feat(ci): upload artifact on success
2024-07-22 17:57:23 +02:00

31 lines
852 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: Save artifact
uses: actions/upload-artifact@v4
with:
name: build-${{ inputs.platform }}
path: build/
- run: echo "Build is ${{ job.status }}."