Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github CI #597

Draft
wants to merge 32 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
9077aaa
Create msbuild.yml
SupinePandora43 Jun 20, 2021
dd58ed4
Update msbuild.yml
SupinePandora43 Jun 20, 2021
1ce0cf5
fix multi line
SupinePandora43 Jun 20, 2021
93b914d
REG
SupinePandora43 Jun 21, 2021
e402f1b
Update msbuild.yml
SupinePandora43 Jun 21, 2021
11514d7
Update msbuild.yml
SupinePandora43 Jun 21, 2021
ea67cac
Update msbuild.yml
SupinePandora43 Jun 21, 2021
cf8f905
fix reg
SupinePandora43 Jun 21, 2021
909cd9e
work pls
SupinePandora43 Jun 21, 2021
179ca9e
build game.sln
SupinePandora43 Jun 21, 2021
17b4a41
use C++17
SupinePandora43 Jun 21, 2021
5370a37
fix games.sln path
SupinePandora43 Jun 21, 2021
4de91d0
msvc
SupinePandora43 Jun 21, 2021
8d22cf7
8.1
SupinePandora43 Jun 21, 2021
b1d4a60
no sdk
SupinePandora43 Jun 21, 2021
3f310ea
switch after sln
SupinePandora43 Jun 21, 2021
f9cb2da
no switch
SupinePandora43 Jun 21, 2021
44e8170
disable /m
SupinePandora43 Jun 21, 2021
a4e5421
cat
SupinePandora43 Jun 21, 2021
f9d289f
specify project
SupinePandora43 Jun 21, 2021
0333294
fix syntax
SupinePandora43 Jun 21, 2021
4f885f4
build client
SupinePandora43 Jun 21, 2021
771b970
specify std
SupinePandora43 Jun 21, 2021
9615f35
fix
SupinePandora43 Jun 22, 2021
2a47832
specify platform
SupinePandora43 Jun 22, 2021
e4c1e37
fix commit
SupinePandora43 Jun 22, 2021
74f08b5
build them all
SupinePandora43 Jun 22, 2021
edd4291
fix args?
SupinePandora43 Jun 22, 2021
cf4e6b3
fix args again
SupinePandora43 Jun 22, 2021
91ca4ca
choreoobjects
SupinePandora43 Jun 22, 2021
bcdc786
cleanup
SupinePandora43 Jun 24, 2021
f096de4
linux
SupinePandora43 Jun 24, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: MSBuild

on: [push]

env:
VALVE_NO_AUTO_P4: 1
PreferredToolArchitecture: x64

jobs:
windows-build:
runs-on: windows-latest
strategy:
matrix:
Configuration: [Debug, Release]

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: msvc cmd
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64_x86
toolset: 14.0

# Required for creategameprojects
- name: Set Registry Value
run: reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\10.0\Projects\{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}" /t REG_SZ /v DefaultProjectExtension /d vcproj /f

- name: Download Libraries
run: .\download_libs.bat

- name: Build protobuf
run: |
msbuild /m /p:Configuration=Debug thirdparty\protobuf-2.5.0\vsprojects\libprotobuf.vcxproj
msbuild /m /p:Configuration=Release thirdparty\protobuf-2.5.0\vsprojects\libprotobuf.vcxproj

- name: Create game projects
run: .\creategameprojects_dev.bat

- name: Build bitmap
run: msbuild "/p:Configuration=${{ matrix.Configuration }};Platform=x86" .\bitmap\bitmap.vcxproj
- name: Build choreoobjects
run: msbuild "/p:Configuration=${{ matrix.Configuration }};Platform=x86" .\choreoobjects\choreoobjects.vcxproj

- name: Build Server (TF)
run: msbuild "/p:Configuration=${{ matrix.Configuration }};Platform=x86" .\game\server\server_tf.vcxproj /t:Build
- name: Build Client (TF)
run: msbuild "/p:Configuration=${{ matrix.Configuration }};Platform=x86" .\game\client\client_tf.vcxproj /t:Build

# see https://github.com/mastercomfig/team-comtress-2/pull/486
#linux-build:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# Configuration: [Debug, Release]
#
# steps:
# - name: Checkout
# uses: actions/checkout@v2
#
# - run: sudo dpkg --add-architecture i386 && apt-get update
# - name: Install dependencies
# run: sudo apt install autoconf automake build-essential fontconfig:i386 g++-multilib libcurl4-gnutls-dev:i386 libfontconfig1:i386 libfontconfig1-dev:i386 libfreetype-dev:i386 libncurses-dev:i386 libopenal-dev:i386 libopenal1:i386 libunwind-dev libunwind-dev:i386 libx11-dev:i386 mesa-common-dev:i386

# - name: Build
# run: make -f games.mak NO_CHROOT=1
# - name: Link
# run: ./link.sh