AppVeyor: Cleanup, minor changes

Ignore commits to README.md, and /.github;
 This is future proofing for GitHub Actions, new issue template, etc.
Capitalize Ubuntu.
Change configuration to Release Optimized.
Proper multi-command formatting.
Use env matrix instead of shell to seperate steps for Windows and Linux.
Add LICENSE to artifacts.
Remove artifact type since it's unneeded.
Windows:
 Use AppVeyor's build thing.
 Remove build verbosity since normal is the default.
 Remove build\bin crap from the zip.
Linux:
 Make apt-get into one step.
 Speed up build by using -j.
 cd into APPVEYOR_BUILD_FOLDER to avoid problems.
This commit is contained in:
Margen67 2020-03-08 12:07:21 -07:00 committed by GitHub
parent 67dcae090d
commit fcdf6d2b93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,14 +2,20 @@ version: 0.0.{build}
skip_tags: true skip_tags: true
image: skip_commits:
- Visual Studio 2017 files:
- ubuntu1804 - .github/*
- .github/*/*
- README.md
image:
- Visual Studio 2017
- Ubuntu1804
configuration: Release Optimized
configuration: Release
platform: x64 platform: x64
# environment
for: for:
- -
matrix: matrix:
@ -21,35 +27,38 @@ for:
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
cc: VS2017 cc: VS2017
QTDIR: C:\Qt\5.12\msvc2017_64 QTDIR: C:\Qt\5.12\msvc2017_64
build:
parallel: true
project: DobieStation\DobieStation.sln
after_build:
- 7z a -xr!*.lib DobieStation.zip .\build\bin\* LICENSE
- -
matrix: matrix:
only: only:
- image: ubuntu1804 - image: Ubuntu1804
environment: environment:
APPVEYOR_BUILD_WORKER_IMAGE: ubuntu1804 APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
cc: gcc cc: gcc
install: install:
- sh: sudo apt-get update -qq - |-
- sh: sudo apt-get install -qq qt5-default qtmultimedia5-dev sudo apt-get update -qq
- sh: sudo apt-get install -qq libglu1-mesa-dev sudo apt-get install -qq qt5-default qtmultimedia5-dev libglu1-mesa-dev
before_build: build_script:
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %arch% - |-
qmake -v
cd DobieStation
qmake DobieStation.pro
make -j$(nproc)
cd $APPVEYOR_BUILD_FOLDER
build_script: after_build:
- sh: qmake -v - 7z a DobieStation.zip ./DobieStation/DobieStation LICENSE
- sh: cd DobieStation
- sh: qmake DobieStation.pro
- sh: make
- cmd: msbuild "C:\projects\dobiestation\DobieStation\DobieStation.sln" /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- cmd: 7z a -xr!*.lib DobieStation.zip build/bin/
- sh: 7z a ../DobieStation.zip DobieStation
test: off test: off
artifacts: artifacts:
- path: DobieStation.zip - path: DobieStation.zip
type: WebDeployPackage