Added mingw build.
This commit is contained in:
@@ -25,7 +25,7 @@ strategy:
|
|||||||
ccName: gcc-7
|
ccName: gcc-7
|
||||||
cxxName: g++-7
|
cxxName: g++-7
|
||||||
buildMinimalSetting: false
|
buildMinimalSetting: false
|
||||||
# build is currently broken build
|
# build is currently broken
|
||||||
# mac_catalina_gcc8_all:
|
# mac_catalina_gcc8_all:
|
||||||
# imageName: 'macOS-10.15'
|
# imageName: 'macOS-10.15'
|
||||||
# ccName: gcc-8
|
# ccName: gcc-8
|
||||||
@@ -36,15 +36,32 @@ strategy:
|
|||||||
ccName: clang
|
ccName: clang
|
||||||
cxxName: clang++
|
cxxName: clang++
|
||||||
buildMinimalSetting: false
|
buildMinimalSetting: false
|
||||||
windows:
|
windows-visualstudio:
|
||||||
imageName: 'windows-latest'
|
imageName: 'windows-2019'
|
||||||
buildMinimalSetting: false
|
buildMinimalSetting: false
|
||||||
|
vsBuildSetting: true
|
||||||
|
mingwBuildSetting: false
|
||||||
|
windows-mingw:
|
||||||
|
imageName: 'windows-2019'
|
||||||
|
buildMinimalSetting: false
|
||||||
|
vsBuildSetting: false
|
||||||
|
mingwBuildSetting: true
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: $(imageName)
|
vmImage: $(imageName)
|
||||||
|
|
||||||
|
resources:
|
||||||
|
repositories:
|
||||||
|
- repository: pdcursesrepo
|
||||||
|
type: github
|
||||||
|
name: wmcbrine/PDCurses
|
||||||
|
ref: refs/heads/master
|
||||||
|
endpoint: github.com_barthouse
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
buildMinimal: $(buildMinimalSetting)
|
buildMinimal: $(buildMinimalSetting)
|
||||||
|
mingwBuild: $(mingwBuildSetting)
|
||||||
|
vsBuild: $(vsBuildSetting)
|
||||||
${{ if eq( variables['Agent.OS'], 'Windows_NT') }}:
|
${{ if eq( variables['Agent.OS'], 'Windows_NT') }}:
|
||||||
NetHackPath: s\NetHack
|
NetHackPath: s\NetHack
|
||||||
${{ if ne( variables['Agent.OS'], 'Windows_NT') }}:
|
${{ if ne( variables['Agent.OS'], 'Windows_NT') }}:
|
||||||
@@ -53,10 +70,22 @@ variables:
|
|||||||
CXX: $(cxxName)
|
CXX: $(cxxName)
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- bash: |
|
||||||
|
echo 'mingwBuildSetting' '$(mingwBuildSetting)'
|
||||||
|
echo 'mingwBuild' '$(mingwBuild)'
|
||||||
|
echo 'vsBuild' '$(vsBuild)'
|
||||||
|
echo 'NetHackPath' '$(NetHackPath)'
|
||||||
|
echo 'CC' '$(CC)'
|
||||||
|
echo 'CXX' '$(CXX)'
|
||||||
|
|
||||||
- checkout: git://NetHack/NetHack@NetHack-3.7 # $(Agent.BuildDirectory)\s\NetHack
|
- checkout: git://NetHack/NetHack@NetHack-3.7 # $(Agent.BuildDirectory)\s\NetHack
|
||||||
submodules: true
|
submodules: true
|
||||||
path: $(NetHackPath)
|
path: $(NetHackPath)
|
||||||
|
|
||||||
|
- checkout: pdcursesrepo
|
||||||
|
path: s\NetHack\lib\pdcurses
|
||||||
|
condition: and( eq( variables['Agent.OS'], 'Windows_NT' ), eq( variables.mingwBuild, true))
|
||||||
|
|
||||||
- task: DownloadSecureFile@1
|
- task: DownloadSecureFile@1
|
||||||
name: storeKey
|
name: storeKey
|
||||||
displayName: 'Store Key Download'
|
displayName: 'Store Key Download'
|
||||||
@@ -70,13 +99,40 @@ steps:
|
|||||||
SourceFolder: $(Agent.TempDirectory)
|
SourceFolder: $(Agent.TempDirectory)
|
||||||
TargetFolder: $(Agent.BuildDirectory)\s\NetHack\win\win32\vs
|
TargetFolder: $(Agent.BuildDirectory)\s\NetHack\win\win32\vs
|
||||||
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
||||||
|
displayName: 'Copying store key'
|
||||||
|
|
||||||
|
# Temporary need to copy lua files for minGW build
|
||||||
|
- task: CopyFiles@2
|
||||||
|
inputs:
|
||||||
|
SourceFolder: $(Agent.BuildDirectory)\s\NetHack\submodules\lua
|
||||||
|
TargetFolder: $(Agent.BuildDirectory)\s\NetHack\lib\lua-5.4.2\src
|
||||||
|
condition: and( eq( variables['Agent.OS'], 'Windows_NT' ), eq( variables.mingwBuild, true))
|
||||||
|
displayName: 'Copying lua files'
|
||||||
|
|
||||||
- task: MSBuild@1
|
- task: MSBuild@1
|
||||||
inputs:
|
inputs:
|
||||||
solution: $(Agent.BuildDirectory)\s\NetHack\win\win32\vs\NetHack.sln
|
solution: $(Agent.BuildDirectory)\s\NetHack\win\win32\vs\NetHack.sln
|
||||||
platform: Win32
|
platform: Win32
|
||||||
configuration: Debug
|
configuration: Debug
|
||||||
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
condition: and( eq( variables['Agent.OS'], 'Windows_NT' ), eq( variables.vsBuild, true))
|
||||||
|
displayName: 'Windows MSBuild'
|
||||||
|
|
||||||
|
- bash: |
|
||||||
|
echo '/mingw64/bin'
|
||||||
|
ls /mingw64/bin
|
||||||
|
echo '/usr/bin'
|
||||||
|
ls /usr/bin
|
||||||
|
echo 'gcc --version'
|
||||||
|
gcc --version
|
||||||
|
export ADD_CURSES=Y
|
||||||
|
export PDCURSES_TOP=../lib/pdcurses
|
||||||
|
export LUA_VERSION=5.4.2
|
||||||
|
export TRAVIS_COMPILER=1
|
||||||
|
cd NetHack/src
|
||||||
|
cp ../sys/winnt/Makefile.gcc ./Makefile
|
||||||
|
mingw32-make LUA_VERSION=$LUA_VERSION install
|
||||||
|
condition: and( eq( variables['Agent.OS'], 'Windows_NT' ), eq( variables.mingwBuild, true))
|
||||||
|
displayName: 'Windows MinGW Build'
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
sudo apt-get -qq -y update
|
sudo apt-get -qq -y update
|
||||||
@@ -86,7 +142,7 @@ steps:
|
|||||||
displayName: 'Getting linux build dependencies'
|
displayName: 'Getting linux build dependencies'
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
cd sys/unix
|
cd NetHack/sys/unix
|
||||||
sh setup.sh hints/linux-minimal
|
sh setup.sh hints/linux-minimal
|
||||||
cd ../..
|
cd ../..
|
||||||
sed -i '/^#define CLIPPING/d' include/config.h
|
sed -i '/^#define CLIPPING/d' include/config.h
|
||||||
@@ -112,10 +168,10 @@ steps:
|
|||||||
make fetch-lua
|
make fetch-lua
|
||||||
make WANT_WIN_ALL=1 all
|
make WANT_WIN_ALL=1 all
|
||||||
condition: and(eq( variables['Agent.OS'], 'Linux' ), eq( variables.buildMinimal, true))
|
condition: and(eq( variables['Agent.OS'], 'Linux' ), eq( variables.buildMinimal, true))
|
||||||
displayName: 'Buildig linux minimal build'
|
displayName: 'Building linux minimal build'
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
cd sys/unix
|
cd NetHack/sys/unix
|
||||||
sh setup.sh hints/linux.2020
|
sh setup.sh hints/linux.2020
|
||||||
cd ../..
|
cd ../..
|
||||||
make fetch-lua
|
make fetch-lua
|
||||||
@@ -124,7 +180,7 @@ steps:
|
|||||||
displayName: 'Building linux full build'
|
displayName: 'Building linux full build'
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
cd sys/unix
|
cd NetHack/sys/unix
|
||||||
sh setup.sh hints/macos.2020
|
sh setup.sh hints/macos.2020
|
||||||
cd ../..
|
cd ../..
|
||||||
make fetch-lua
|
make fetch-lua
|
||||||
|
|||||||
Reference in New Issue
Block a user