diff --git a/.gitea/workflows/build-DEBUG-windows.yml b/.gitea/workflows/build-DEBUG-windows.yml new file mode 100644 index 0000000..861cba5 --- /dev/null +++ b/.gitea/workflows/build-DEBUG-windows.yml @@ -0,0 +1,46 @@ +name: Build (Windows) + +on: + push: + branches: + - main + +jobs: + build_release: + runs-on: windows-latest + + steps: + - name: Check out repository (recursively with submodules) + uses: actions/checkout@v3 + with: + submodules: true # Ensures submodules are cloned + fetch-depth: 0 # Optional, fetches entire repo history + + - name: Set up MSYS2 + uses: msys2/setup-msys2@v2 + with: + update: true + + - name: Install dependencies (MSYS2/MinGW) + shell: msys2 {0} + run: | + pacman -S --noconfirm \ + make \ + mingw-w64-x86_64-gcc \ + mingw-w64-x86_64-cmake \ + mingw-w64-x86_64-glew \ + mingw-w64-x86_64-glfw \ + mingw-w64-x86_64-yaml-cpp \ + mingw-w64-x86_64-lua + + - name: Build + shell: msys2 {0} + run: | + make clean + make + + - name: Upload release artifacts + uses: actions/upload-artifact@v2 + with: + name: TesseractEngine(Windows)(DEBUG)(TIMERS) + path: release diff --git a/.gitea/workflows/build-release.yml b/.gitea/workflows/build-release.yml deleted file mode 100644 index 6cc4cdb..0000000 --- a/.gitea/workflows/build-release.yml +++ /dev/null @@ -1,40 +0,0 @@ -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