This repository has been archived on 2026-05-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
de-socket-espace-room-server/.gitea/workflows/build.yml
KeshavAnandCode 223b6d1640
All checks were successful
build-service / compile-binaries (push) Successful in 2m40s
ci: implement gitea actions pipeline and makefile
2026-05-14 19:13:05 -05:00

37 lines
1.0 KiB
YAML

name: build-service
on:
push:
branches: [main]
tags: ["v*"]
jobs:
compile-binaries:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install-rust
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-unknown-linux-gnu, x86_64-unknown-linux-gnu
- name: build-x86
run: cargo build --release --target x86_64-unknown-linux-gnu
- name: build-arm64
# Note: For ARM64 cross-compiling on x86, we use 'cross' or a linker
run: |
sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \
cargo build --release --target aarch64-unknown-linux-gnu
- name: upload-artifacts
uses: actions/upload-artifact@v4
with:
name: escape-room-binaries
path: |
target/x86_64-unknown-linux-gnu/release/escape_room_server
target/aarch64-unknown-linux-gnu/release/escape_room_server