Some fixups to the AppVeyor and Travis CIs: rearranged artifact name parts to match existing ones, changed "platform" to "arch" wherever possible, changed "osx" to "darwin" in artifacts. Also added the AppVeyor badge to the README.

This commit is contained in:
Pietro Gagliardi 2018-05-16 21:55:04 -04:00
parent 4245120f6a
commit 02b7ae90f1
3 changed files with 18 additions and 14 deletions

View File

@ -48,10 +48,11 @@ build_script:
- cd %APPVEYOR_BUILD_FOLDER%
after_build:
- if %platform%==x64 ( set "platform=amd64" ) else ( set "platform=386" )
- if %platform%==x64 ( set "arch=amd64" ) else ( set "arch=386" )
- if %APPVEYOR_REPO_TAG%==true ( set "version=%APPVEYOR_REPO_TAG_NAME%" )
else ( set "version=%APPVEYOR_REPO_BRANCH%" )
- set "artifact=%linking%-windows-%compiler%-%platform%-%version%"
- if %linking%==shared ( set "artifact=shared" ) else ( set "artifact=%compiler%-static" )
- set "artifact=%version%-windows-%arch%-%artifact%"
- 7z a libui-%artifact%.zip .\%outdir%\libui.* ui.h ui_windows.h
- 7z l libui-%artifact%.zip
- 7z a examples-%artifact%.zip .\%outdir%\*.exe
@ -66,7 +67,8 @@ artifacts:
deploy:
provider: GitHub
artifact: libui, examples
auth_token:
secure: "2l/602m6FkqAB9TTIAkPX3Erfwg9jVTlf/Inmf2dWcbOrJJzK/WrCUIgY3B4ngly"
# TODO https://www.appveyor.com/docs/deployment/github/
#auth_token:
#secure: "2l/602m6FkqAB9TTIAkPX3Erfwg9jVTlf/Inmf2dWcbOrJJzK/WrCUIgY3B4ngly"
on:
appveyor_repo_tag: true # deploy on tag push only

View File

@ -39,21 +39,21 @@ include: &toolchain_osx_amd64
# Each entry below will trigger an extra, parallel build on Travis.
matrix:
include:
- env: linking=shared platform=amd64
- env: linking=shared arch=amd64
<<: *toolchain_linux_amd64
- env: linking=static platform=amd64
- env: linking=static arch=amd64
<<: *toolchain_linux_amd64
- env: linking=shared platform=386
- env: linking=shared arch=386
<<: *toolchain_linux_386
- env: linking=static platform=386
- env: linking=static arch=386
<<: *toolchain_linux_386
- env: linking=shared platform=amd64
- env: linking=shared arch=amd64
<<: *toolchain_osx_amd64
- env: linking=static platform=amd64
- env: linking=static arch=amd64
<<: *toolchain_osx_amd64
install:
- if [[ "${platform}" == "386" ]]; then
- if [[ "${arch}" == "386" ]]; then
export CFLAGS=-m32;
export CXXFLAGS=-m32;
export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig;
@ -73,10 +73,11 @@ script:
after_success:
- ls -lR build/out
- file build/out/test
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cp ui.h ui_darwin.h build/out/; fi
- export platform="$TRAVIS_OS_NAME"
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cp ui.h ui_darwin.h build/out/; export platform=darwin; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cp ui.h ui_unix.h build/out/; fi
- if [[ "x${TRAVIS_TAG}" != "x" ]]; then export version=${TRAVIS_TAG}; else export version=${TRAVIS_BRANCH}; fi
- export artifact=${linking}-${TRAVIS_OS_NAME}-${platform}-${version}
- export artifact=${version}-${platform}-${arch}-${linking}
- pushd build/out
- tar -czvf libui-${artifact}.tgz libui.* *.h
- tar -czvf examples-${artifact}.tgz `find . -type f ! -name "*.*"`

View File

@ -1,7 +1,8 @@
# libui: a portable GUI library for C
This README is being written.<br>
[![Build Status](https://travis-ci.org/andlabs/libui.svg?branch=master)](https://travis-ci.org/andlabs/libui)
[![Build Status, Linux and macOS](https://travis-ci.org/andlabs/libui.svg?branch=master)](https://travis-ci.org/andlabs/libui)<br>
[![Build Status, Windows](https://ci.appveyor.com/api/projects/status/ouyk78c52mmisa31?svg=true)](https://ci.appveyor.com/project/andlabs/libui)
## Announcements