🐎ci: CI enable
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
- deploy
|
||||
|
||||
build:
|
||||
image: sh.matthewgong.com:5432/matt/qt5-cross-win64
|
||||
stage: build
|
||||
script:
|
||||
- mkdir build && cd build
|
||||
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/opt/win64/x86_64-mingw-w64-toolchain.cmake
|
||||
- make
|
||||
- make package
|
||||
artifacts:
|
||||
name: "$CI_COMMIT_REF_SLUG"
|
||||
paths:
|
||||
- "build/*-win64.zip"
|
||||
|
||||
deploy_tag:
|
||||
image: sh.matthewgong.com:5432/matt/gitlab-auto-release
|
||||
stage: deploy
|
||||
script:
|
||||
- gitlab_auto_release -c CHANGELOG.md -d "This was auto-generated by the gitlab-auto-release tool, https://gitlab.com/gitlab-automation-toolkit/gitlab-auto-release." --artifacts build
|
||||
only:
|
||||
- tags
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.1.0] - 2020-02-06
|
||||
### Added
|
||||
- add vscode and CI/CD support
|
||||
|
||||
@@ -57,3 +57,25 @@ endif()
|
||||
target_link_libraries(proj41_sil PRIVATE Qt5::Widgets Qt5::Network)
|
||||
|
||||
qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
message("CMAKE_INSTALL_BINDIR=${CMAKE_INSTALL_BINDIR}")
|
||||
install(TARGETS proj41_sil RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||
|
||||
set(CPACK_GENERATOR ZIP)
|
||||
set(CPACK_PACKAGE_VERSION_MAJOR 0)
|
||||
set(CPACK_PACKAGE_VERSION_MINOR 1)
|
||||
set(CPACK_PACKAGE_VERSION_PATCH 2)
|
||||
set(CPACK_INSTALL_COMMANDS
|
||||
"/bin/bash -c \\\"mkdir -p $CMAKE_INSTALL_PREFIX/bin\\\""
|
||||
"/bin/bash -c \\\"mkdir -p $CMAKE_INSTALL_PREFIX/lib\\\""
|
||||
"/bin/bash -c \\\"cp /opt/win64/bin/*.dll $CMAKE_INSTALL_PREFIX/bin\\\""
|
||||
"/bin/bash -c \\\"cp /opt/win64/qt.conf $CMAKE_INSTALL_PREFIX/bin\\\""
|
||||
"/bin/bash -c \\\"cp -r /opt/win64/plugins $CMAKE_INSTALL_PREFIX/lib\\\""
|
||||
"/bin/bash -c \\\"cp -r /opt/win64/qml $CMAKE_INSTALL_PREFIX/lib\\\""
|
||||
"/bin/bash -c \\\"cp -r /opt/win64/lib/grantlee $CMAKE_INSTALL_PREFIX/lib\\\""
|
||||
"/bin/bash -c \\\"cp /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll $CMAKE_INSTALL_PREFIX/bin\\\""
|
||||
"/bin/bash -c \\\"cp /usr/lib/gcc/x86_64-w64-mingw32/8.3-posix/*.dll $CMAKE_INSTALL_PREFIX/bin\\\""
|
||||
)
|
||||
include(CPack)
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2020 Matthew GONG
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Reference in New Issue
Block a user