Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
twoone3l committed Jan 2, 2022
1 parent 4c1d2ad commit d48770d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
43 changes: 40 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,52 @@
name: Build and Release
name: Build and Release

on:
push:
tags: v*

jobs:
build:
build_lib:
runs-on: windows-2022

steps:
- uses: actions/checkout@v2
with:
repository: "LiteLDev/LiteLoaderBDS"

- name: Download Server
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
mkdir Tools/Server
ServerLink=$(curl -s https://raw.githubusercontent.com/LiteLDev/LiteLoaderBDS/main/LINK.txt)
curl -L -o Tools/Server/server.zip "$ServerLink"
unzip -q Tools/Server/server.zip -d Tools/Server/
shell: bash

- name: Build Library
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
cd Tools
LibraryBuilder.exe Server
shell: cmd

- name: Temporarily Save Libs
uses: actions/upload-artifact@v2
with:
name: libs
path: LiteLoader/Lib

build_pyr:
runs-on: windows-2022
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Retrieve Saved Libs
uses: actions/download-artifact@v2
with:
name: libs
path: SDK/Lib/

- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
Expand All @@ -25,4 +61,5 @@ jobs:
with:
files: |
./x64/Release/BDSpyrunner.dll
./x64/Release/BDSpyrunner.pdb
./x64/Release/BDSpyrunner.pdb
2 changes: 2 additions & 0 deletions BDSpyrunner.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
<PreprocessorDefinitions>NDEBUG;_AMD64_;_CONSOLE;NOMINMAX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp17</LanguageStandard>
<DisableSpecificWarnings>4996;4471;4499</DisableSpecificWarnings>
<UseFullPaths>false</UseFullPaths>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down
1 change: 0 additions & 1 deletion mod/Tool.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once
#pragma execution_character_set("utf-8")
#pragma warning(disable:4996)

#include <MC/Actor.hpp>
#include <MC/Block.hpp>
Expand Down

0 comments on commit d48770d

Please sign in to comment.