From 208f148bbed122ffe18ae2e6fae1ed7185d99416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Sun, 9 Jun 2024 14:14:06 +0200 Subject: [PATCH] Add Github Action for Build (#12) * Update .gitattributes. * Add github actions. --- .gitattributes | 10 +++++++++- .github/workflows/build.yml | 16 ++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.gitattributes b/.gitattributes index 937b84a..d0b87f4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,9 @@ -*.ts text eol=lf \ No newline at end of file +# Set the default behavior, in case people don't have core.autocrlf set. +* text=auto + +# Explicitly declare text files you want to always be normalized and converted +# to native line endings on checkout. +*.cpp text eol=crlf +*.h text eol=crlf + +*.ts text eol=lf diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..435168b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,16 @@ +name: Build Installer OMOD Plugin + +on: + push: + branches: master + pull_request: + types: [opened, synchronize, reopened] + +jobs: + build: + runs-on: windows-2022 + steps: + - name: Build Installer OMOD Plugin + uses: ModOrganizer2/build-with-mob-action@master + with: + mo2-dependencies: cmake_common uibase