antos/.gitea/workflows/build-bin.yml

31 lines
852 B
YAML
Raw Normal View History

2024-07-17 10:23:28 +02:00
name: Building AntOS binaries
on:
workflow_call:
inputs:
platform:
required: true
type: string
jobs:
2024-07-17 10:39:57 +02:00
build:
2024-07-17 10:23:28 +02:00
runs-on: ci-tools
steps:
- name: Check out repository code
uses: actions/checkout@v4
2024-07-17 10:42:12 +02:00
- name: Update submodule
run: git submodule update --init
2024-07-17 10:34:05 +02:00
- name: Building binaries for platform - ${{ inputs.platform }}
2024-07-17 10:23:28 +02:00
run: |
mkdir build
DESTDIR=$(realpath build) \
ARCH=${{ inputs.platform }} \
RUSTUP_HOME=/opt/rust/rustup \
CARGO_HOME=/opt/rust/cargo \
make all deb appimg
2024-07-22 17:57:23 +02:00
- name: Save artifact
2024-07-22 18:15:54 +02:00
uses: actions/upload-artifact@v3
2024-07-22 17:57:23 +02:00
with:
name: build-${{ inputs.platform }}
path: build/
2024-07-17 10:39:57 +02:00
- run: echo "Build is ${{ job.status }}."