-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
207 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Build Windows | ||
|
||
on: | ||
push: | ||
branches: [ master, feature/github-actions, feature/ci-windows ] | ||
pull_request: | ||
branches: [ master, feature/github-actions, feature/ci-windows ] | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
name: "Build: ${{ matrix.arch }} - ${{ matrix.deps_type }} deps" | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: [x64] | ||
config: [Release,Release-Only] # Release-Only = try to use static deps as much as possible | ||
include: | ||
- arch: x64 | ||
arch_name: 64-bit | ||
arch_suffix: "64" | ||
- config: Release | ||
deps_type: shared | ||
- config: Release-Only | ||
deps_type: static | ||
|
||
steps: | ||
- name: Checkout Git Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Install latest CMake | ||
uses: lukka/get-cmake@40c07e5c5de43d1dfc7d9c1344b9e05be7d5696e # latest as of 2023-01-13 | ||
|
||
- name: Restore artifacts, or setup vcpkg (do not install any package) | ||
uses: lukka/run-vcpkg@22886c015a6bbb5ca57c55f43a6dbe6943ab744e # latest as of 2023-01-13 | ||
with: | ||
vcpkgGitCommitId: '12b7cfe6109a9d68319334b56a01c44a302a13b6' # latest as of 2023-01-20 | ||
prependedCacheKey: '${{ matrix.deps_type }}Deps' | ||
|
||
- name: Create prefix folder | ||
shell: cmd | ||
run: mkdir prefix | ||
|
||
- name: Build tilibs | ||
uses: lukka/run-cmake@d8897e1de33ed2ec4628ec5acf69861da7c719db # latest as of 2023-01-13 | ||
with: | ||
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt' | ||
configurePreset: '${{ matrix.arch }}-${{ matrix.config }}' | ||
buildPreset: '${{ matrix.arch }}-${{ matrix.config }}' | ||
env: | ||
VCPKG_FORCE_SYSTEM_BINARIES: 1 | ||
CMAKE_INSTALL_PREFIX_OVERRIDE: '${{ github.workspace }}/prefix' | ||
|
||
- name: Install tilibs | ||
uses: lukka/run-cmake@d8897e1de33ed2ec4628ec5acf69861da7c719db # latest as of 2023-01-13 | ||
with: | ||
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt' | ||
buildPreset: '${{ matrix.arch }}-${{ matrix.config }}' | ||
buildPresetAdditionalArgs: "['--target install']" | ||
|
||
- name: Prepare install folder for upload | ||
shell: cmd | ||
run: rename prefix tilibs_windows_${{ matrix.deps_type }}Deps_${{ github.sha }} | ||
|
||
- name: Upload install folder | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: tilibs_windows_${{ matrix.deps_type }}Deps_${{ github.sha }} | ||
path: tilibs_windows_${{ matrix.deps_type }}Deps_${{ github.sha }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
{ | ||
"version": 3, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 21, | ||
"patch": 1 | ||
}, | ||
"configurePresets": [ | ||
{ | ||
"name": "ninja-vcpkg", | ||
"hidden": true, | ||
"generator": "Ninja", | ||
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", | ||
"binaryDir": "${sourceDir}/tilibs.build/${presetName}", | ||
"installDir": "${sourceDir}/tilibs.build/${presetName}", | ||
"cacheVariables": { | ||
"VCPKG_MANIFEST_MODE": { | ||
"type": "BOOL", | ||
"value": "True" | ||
}, | ||
"VCPKG_MANIFEST_INSTALL": { | ||
"type": "BOOL", | ||
"value": "True" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "ninja-vcpkg-x64", | ||
"hidden": true, | ||
"inherits": "ninja-vcpkg", | ||
"architecture": { | ||
"strategy": "external", | ||
"value": "x64" | ||
}, | ||
"cacheVariables": { | ||
"TRY_STATIC_LIBS": { | ||
"type": "BOOL", | ||
"value": "OFF" | ||
}, | ||
"VCPKG_TARGET_TRIPLET": { | ||
"type": "STRING", | ||
"value": "x64-windows-release" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "x64-Debug", | ||
"inherits": "ninja-vcpkg-x64", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": { | ||
"type": "STRING", | ||
"value": "Debug" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "x64-Release", | ||
"inherits": "ninja-vcpkg-x64", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": { | ||
"type": "STRING", | ||
"value": "Release" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "x64-Release-Only", | ||
"inherits": "x64-Release", | ||
"cacheVariables": { | ||
"TRY_STATIC_LIBS": { | ||
"type": "BOOL", | ||
"value": "ON" | ||
}, | ||
"VCPKG_HOST_TRIPLET": { | ||
"type": "STRING", | ||
"value": "x64-windows-static-release" | ||
}, | ||
"VCPKG_TARGET_TRIPLET": { | ||
"type": "STRING", | ||
"value": "x64-windows-static-release" | ||
} | ||
} | ||
} | ||
], | ||
"buildPresets": [ | ||
{ | ||
"name": "x64-Debug", | ||
"configurePreset": "x64-Debug" | ||
}, | ||
{ | ||
"name": "x64-Release", | ||
"configurePreset": "x64-Release" | ||
}, | ||
{ | ||
"name": "x64-Release-Only", | ||
"configurePreset": "x64-Release-Only" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "tilibs", | ||
"version-string": "1.0", | ||
"homepage": "https://github.com/debrouxl/tilibs", | ||
"description": "libs to transfer things from/to TI graphing calculators", | ||
"dependencies": [ | ||
"pkgconf", | ||
{ | ||
"name": "libarchive", | ||
"default-features": false | ||
}, | ||
"libusb-win32", | ||
"glib", | ||
"gettext" | ||
] | ||
} |