From a3f495f87bcad20230903a18bd5c89d5c1821cc2 Mon Sep 17 00:00:00 2001 From: KeshavAnandCode Date: Thu, 14 May 2026 20:17:50 -0500 Subject: [PATCH] done with actions --- .gitea/workflows/build.yml | 58 -------------------------------------- Makefile | 21 -------------- 2 files changed, 79 deletions(-) delete mode 100644 .gitea/workflows/build.yml delete mode 100644 Makefile diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml deleted file mode 100644 index 4d4a3c4..0000000 --- a/.gitea/workflows/build.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: build-service - -on: - push: - branches: [main] - tags: ["v*"] - -jobs: - build-and-release: - runs-on: ubuntu-latest - permissions: - contents: write - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable - with: - targets: x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu - - - name: Install cross - uses: taiki-e/install-action@v2 - with: - tool: cross - - - name: Build x86_64 (Native) - run: cargo build --release --target x86_64-unknown-linux-gnu - - - name: Build ARM64 (Cross) - env: - CROSS_CONTAINER_IN_CONTAINER: true - run: cross build --release --target aarch64-unknown-linux-gnu - - - name: Prepare Binaries - run: | - mkdir -p release-artifacts - # We use find to locate the binaries regardless of the exact target folder structure - find target/x86_64-unknown-linux-gnu/release -maxdepth 1 -type f -name "escape_room_server" -exec cp {} release-artifacts/escape_room_server-x86_64 \; || cp target/release/escape_room_server release-artifacts/escape_room_server-x86_64 - find target/aarch64-unknown-linux-gnu/release -maxdepth 1 -type f -name "escape_room_server" -exec cp {} release-artifacts/escape_room_server-aarch64 \; - - - name: Upload Artifacts (Internal) - uses: actions/upload-artifact@v4 - with: - name: escape-room-binaries - path: release-artifacts/* - - - name: Create Gitea Release - if: startsWith(github.ref, 'refs/tags/') - # Switched to @main to fix the Gitea 'reference not found' error - uses: https://gitea.com/actions/release-action@main - with: - files: | - release-artifacts/escape_room_server-x86_64 - release-artifacts/escape_room_server-aarch64 - api_key: ${{ secrets.GITHUB_TOKEN }} - base_url: ${{ github.server_url }} diff --git a/Makefile b/Makefile deleted file mode 100644 index 05870e2..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -BIN_NAME := escape_room_server -OUT_DIR := ./dist - -.PHONY: all clean build-x86 build-arm64 - -all: build-x86 build-arm64 - -prep: - mkdir -p $(OUT_DIR) - -build-x86: prep - cargo build --release --target x86_64-unknown-linux-gnu - cp target/x86_64-unknown-linux-gnu/release/$(BIN_NAME) $(OUT_DIR)/$(BIN_NAME)-x86_64 - -build-arm64: prep - cross build --release --target aarch64-unknown-linux-gnu - cp target/aarch64-unknown-linux-gnu/release/$(BIN_NAME) $(OUT_DIR)/$(BIN_NAME)-arm64 - -clean: - cargo clean - rm -rf $(OUT_DIR)