From f746d395b38d98db4e3ce611c88a3f857a0e1079 Mon Sep 17 00:00:00 2001 From: maxine Date: Tue, 30 Jul 2024 10:28:50 -0400 Subject: [PATCH] reci --- .gitea/workflows/buildtest.yml | 22 ++++++++++++++++++++++ reci/scripts/builddeps.reci | 1 + 2 files changed, 23 insertions(+) create mode 100644 .gitea/workflows/buildtest.yml create mode 100644 reci/scripts/builddeps.reci diff --git a/.gitea/workflows/buildtest.yml b/.gitea/workflows/buildtest.yml new file mode 100644 index 0000000..c3b93a2 --- /dev/null +++ b/.gitea/workflows/buildtest.yml @@ -0,0 +1,22 @@ +name: Run ReCI Build Test +run-name: Run ReCI Build Test For ${{ gitea.repository }}. +on: [push] + +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-22.04 + env: + RECI_GIT: https://git.redacted.cc/maxine/ReCI + RECI: /RECI + steps: + - run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event." + - run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!" + - run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "The ${{ gitea.repository }} repository has been cloned to the runner." + - run: echo "The workflow is now ready to run your tests on the runner." + - run: echo "Install toolchain and run ReCI build test" + - run: apt-get update && apt-get install -y lua5.3 git && git clone $RECI_GIT $RECI + - run: lua $RECI/reci.lua -f $RECI/scripts/buildtools.reci -f reci/scripts/builddeps.reci -f $RECI/scripts/buildtest.reci + - run: echo "This job's status is ${{ job.status }}." diff --git a/reci/scripts/builddeps.reci b/reci/scripts/builddeps.reci new file mode 100644 index 0000000..a595208 --- /dev/null +++ b/reci/scripts/builddeps.reci @@ -0,0 +1 @@ +Main:new("Install build dependencies", "apt-get install -yq pkg-config libgl-dev libudev-dev libfreetype6-dev")