diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..3f371e390 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +name: Build Dalamud +on: [push] + +jobs: + build: + name: Build on Windows + runs-on: windows-2019 + steps: + - uses: actions/checkout@v1 + - name: Initialize Submodules + run: git submodule update --init --recursive + - name: Setup Nuget + uses: nuget/setup-nuget@v1 + with: + nuget-version: 'latest' + - name: Restore Nuget Packages + run: nuget restore Dalamud.sln + - name: Define VERSION + run: | + $env:COMMIT = $env:GITHUB_SHA.Substring(0, 7) + $env:REPO_NAME = $env:GITHUB_REPOSITORY -replace '.*/' + $env:BRANCH = $env:GITHUB_REF -replace '.*/' + + ($env:REPO_NAME) >> VERSION + ($env:BRANCH) >> VERSION + ($env:COMMIT) >> VERSION + - name: Build DotNet4 + run: | + cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\" + .\MSBuild.exe $Env:GITHUB_WORKSPACE\XIVLauncher.sln /t:Build /p:Configuration=Release /p:DefineConstants=XL_NOAUTOUPDATE + - name: Upload artifact + uses: actions/upload-artifact@master + with: + name: dalamud-artifact + path: bin\