diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..43acc5e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +# Trigger this workflow on push or pull request +on: [push, pull_request] + +jobs: + build-win: + name: Build (windows-latest) + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v1 + with: + submodules: 'recursive' + - name: CMake configure (default version) + run: | + mkdir build + cd build + cmake -G "Visual Studio 17 2022" -A Win32 ` + -DCMAKE_BUILD_TYPE=Release .. + - name: Build (default version) + run: | + cd build + cmake --build . --config Release + - name: Create Artifact Folder + run: | + mkdir artifact + copy build/Release/* artifact + - name: Create Build Artifact + uses: actions/upload-artifact@v3 + with: + name: PalWorld-ServerInjector + path: | + artifact/* \ No newline at end of file