From 433e68018634fef3a5156d6401cd2aa0c5628885 Mon Sep 17 00:00:00 2001 From: Jiaxun Yang Date: Wed, 5 Jun 2019 14:00:48 +0800 Subject: [PATCH] Travis make release tarball Signed-off-by: Jiaxun Yang --- .travis.yml | 63 +++++++++++++++++++++++++++++------------------ prebuilt/demo.bat | 2 ++ 2 files changed, 41 insertions(+), 24 deletions(-) create mode 100755 prebuilt/demo.bat diff --git a/.travis.yml b/.travis.yml index f62b10b4..ecb23cd6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,27 +1,42 @@ language: cpp - matrix: include: - - name: "Linux Build" - os: linux - dist: xenial - addons: - apt: - packages: - - cmake - - libpci3 - - libpci-dev - before_script: - - mkdir build && cd build - - cmake .. - script: - - make - - - name: "Clang Windows Build" - os: windows - env: - - MATRIX_EVAL="CC=clang-cl && CXX=clang-cl" - before_install: - - eval "${MATRIX_EVAL}" - script: - - cmd.exe /C '.\travis-win.bat' + - name: Linux Build + os: linux + dist: xenial + addons: + apt: + packages: + - cmake + - libpci3 + - libpci-dev + before_script: + - mkdir build && cd build + - cmake .. + script: + - make + - name: Clang Windows Build + os: windows + env: + - MATRIX_EVAL="CC=clang-cl && CXX=clang-cl" + before_install: + - eval "${MATRIX_EVAL}" + script: + - cmd.exe /C '.\travis-win.bat' + - 7z.exe a -tzip ryzenadj-win64-release.zip ./build/ryzenadj.exe ./prebuilt/WinRing0x64.dll + ./prebuilt/WinRing0x64.sys ./prebuilt/demo.bat + - 7z.exe a -tzip libryzenadj-win64-release.zip ./build/libryzenadj.dll ./build/libryzenadj.lib + ./build/libryzenadj.exp ./prebuilt/WinRing0x64.dll ./prebuilt/WinRing0x64.sys + ./lib/ryzenadj.h + deploy: + provider: releases + api_key: + secure: ejG/jwocBa+IRxt/pexN2yiDxETVhn86mfOif3aISLOdalMVoDS6ZhvBbS4TppOBBf6iUSJc4SuWfqDAulvNHCjzWNYIW1YvAg95t86Rvi6fSbSWIbpW3BQhWBt0wzkbko+/Q2kQ0lBGlAZfsSD1UHpUvnHJUWRaKJvD1wqoGpv67kDh067eBa0/SqRhVdrjuTzjRhzqig8nhv1lkDx+Nm4oRtmCEOhrNLJhovogZphppzUaRcVNE1hZmVgQjt2nD7GcyrTYIqWDOdxc/G/outM993B3j0lO+1o1sPeGGTwH0AZuYoD2fVnRvBlADWVvn0ZBUStLiJ8d3eqTJw9S7XQpJAucOTJfiPBGgp4Z53+F/FhMue+0gHnw1lWuW917+AU+VlDHDESr//SrXl1qQCfCnd4yKAvscebXQwpacF1WW3VdAhelQsd7xHcPD9e48wOKPbUY/MBGXOZJkVux5H3X6NE736xuNF23yldnVhSkr8+BTmjwKB/rwg8g0OdNoqOrI3FWKA6HS3lsqXVAbpmUZchDuoz+fLgxByZA2SPG8I3u7yggiRy7taGIQ+lYRnzLwF233/VfiftdvIVtdOwBJphedwWUUxtkfBi5W8r8BeMVe9U+sgHLHoQim7DEawNJ9Fj95oszoVC2DVChQgzc5lDTnMySmvASFIQzD7k= + file: + - ryzenadj-win64-release.zip + - libryzenadj-win64-release.zip + skip_cleanup: true + draft: true + on: + tags: true + repo: FlyGoat/RyzenAdj diff --git a/prebuilt/demo.bat b/prebuilt/demo.bat new file mode 100755 index 00000000..19c73c19 --- /dev/null +++ b/prebuilt/demo.bat @@ -0,0 +1,2 @@ +%~dp0\ryzenadj.exe --stapm-limit=40000 --fast-limit=45000 --slow-limit=45000 --tctl-temp=90 +pause \ No newline at end of file