From 394f030403f075bf5d48747b8d98a76901a4b46b Mon Sep 17 00:00:00 2001 From: Spencer Conlon Date: Sat, 4 Jan 2025 02:36:22 +0000 Subject: [PATCH] Add .gitea/workflows/build-release.yml --- .gitea/workflows/build-release.yml | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .gitea/workflows/build-release.yml diff --git a/.gitea/workflows/build-release.yml b/.gitea/workflows/build-release.yml new file mode 100644 index 0000000..6cc4cdb --- /dev/null +++ b/.gitea/workflows/build-release.yml @@ -0,0 +1,40 @@ +name: Build And Release + +on: + push: + branches: + - main + +jobs: + build_release: + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v3 + + - name: Install build dependencies + run: | + sudo apt-get update + sudo apt-get install -y \ + build-essential g++ make cmake \ + libglew-dev libglfw3-dev \ + libglm-dev libyaml-cpp-dev \ + mesa-common-dev libglu-dev \ + liblua5.4-dev + + + + - name: Build and create release artifacts + run: | + make clean + make + + - name: Upload release artifacts + # The syntax below is taken from GitHub's "upload-artifact" action. + # In Gitea, you may need to adapt or configure an equivalent step + # if the built-in "upload-artifact" isn't supported yet. + uses: actions/upload-artifact@v2 + with: + name: TesseractEngine + path: release