From 1c733979fd4f0e13f88dd5c861a84439c1cee085 Mon Sep 17 00:00:00 2001 From: ale Date: Sat, 23 Aug 2025 14:31:38 +0200 Subject: [PATCH] gitea actions Signed-off-by: ale --- .gitea/workflows/ci.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 00e8e17..d1c027f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -12,7 +12,7 @@ env: jobs: test: name: Test - runs-on: ubuntu-latest + runs-on: self-hosted strategy: matrix: rust: [stable, beta, nightly] @@ -73,13 +73,13 @@ jobs: build: name: Build Release - runs-on: ubuntu-latest + runs-on: self-hosted needs: test steps: - name: Checkout code uses: actions/checkout@v4 - - name: Install system dependencies + - name: Install system dependencies (ARM64) run: | sudo apt-get update sudo apt-get install -y build-essential gcc libc6-dev @@ -108,28 +108,28 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v4 with: - name: alecc-linux-x86_64 + name: alecc-linux-aarch64 path: target/release/alecc if-no-files-found: error cross-compile: name: Cross Compile - runs-on: ubuntu-latest + runs-on: self-hosted needs: test strategy: matrix: target: + - x86_64-unknown-linux-gnu - i686-unknown-linux-gnu - - aarch64-unknown-linux-gnu fail-fast: false steps: - name: Checkout code uses: actions/checkout@v4 - - name: Install system dependencies + - name: Install system dependencies (ARM64 host) run: | sudo apt-get update - sudo apt-get install -y build-essential gcc-multilib + sudo apt-get install -y build-essential gcc-x86-64-linux-gnu gcc-multilib-x86-64-linux-gnu - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable @@ -165,7 +165,7 @@ jobs: integration: name: Integration Tests - runs-on: ubuntu-latest + runs-on: self-hosted needs: build if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') steps: @@ -175,7 +175,7 @@ jobs: - name: Download artifacts uses: actions/download-artifact@v4 with: - name: alecc-linux-x86_64 + name: alecc-linux-aarch64 path: ./alecc-binary - name: Make binary executable