mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
ci: build and artifacts
This commit is contained in:
parent
b882a1fa21
commit
6132027c88
1 changed files with 35 additions and 0 deletions
35
.github/workflows/main.yml
vendored
Normal file
35
.github/workflows/main.yml
vendored
Normal file
|
|
@ -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\
|
||||
Loading…
Add table
Add a link
Reference in a new issue