Change from Linux to windows build env
Some checks are pending
Build (Windows) / build_release (push) Waiting to run

This commit is contained in:
OusmBlueNinja 2025-01-03 20:49:46 -06:00
parent 611bc36ad6
commit b9bd335198
2 changed files with 46 additions and 40 deletions

View File

@ -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

View File

@ -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