-
Notifications
You must be signed in to change notification settings - Fork 2
100 lines (91 loc) · 3.44 KB
/
Build-Artifacts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# This is a reusable workflow to build libraries for Linux, Android, iOS, OSX and Windows,
# with Release, Debug variants
name: Build Third Party Artifacts
# Controls when the workflow will run
# Triggers the workflow on push or pull request events and manually from the Actions tab
on:
workflow_call:
inputs:
build-type:
required: true
type: string
target-build-data:
required: true
type: string
libraries:
required: true
type: string
CACHE_MULTI_PARAMETER_KEYS:
required: true
type: string
CACHE_MULTI_PARAMETER_PATHS:
required: true
type: string
env:
CMAKE_BUILD_PARALLEL_LEVEL: 8
MAKEFLAGS: "-j 8"
GITHUB_TOKEN: ${{ github.token }}
jobs:
build-artifacts:
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(inputs.target-build-data) }}
runs-on: ${{ matrix.runs-on }}
steps:
- name: dumping matrix for each run
run: |
cat <<"EOF"
inputs: ${{ toJson(inputs) }}
matrix: ${{ toJson(matrix) }}
EOF
# libraries: ${{ fromJSON(inputs.libraries) }}
#
# runs-on: ${{ matrix.target-build-data.runs-on }}# matrix: ${{ toJson(matrix) }}
# uses: ${{ matrix.target_build_data.install-uses.uses || '/dev/null' }}
# with: ${{ matrix.target_build_data.install-uses.with || '' }}
# - name: Restore thirdparty base directory and code
# uses: GeniusVentures/cache-multi/[email protected]
# id: cache-tp-source-directory
# with:
# path: |
# !.git/**
# ./**
# key: thirdparty-${{ github.sha }}
#
# - name: Load the source Cache(s) into the system
# uses: GeniusVentures/cache-multi/[email protected]
# with:
# keys: ${{ inputs.CACHE_MULTI_PARAMETER_KEYS }}
# paths: ${{ inputs.CACHE_MULTI_PARAMETER_PATHS }}
# - if: matrix.target-build-data.install-uses
# name: ${{ matrix.target-build-data.install-uses.name || "Executing uses step" }}
# uses: ${{ matrix.target-build-data.install-uses.uses || "/dev/null" }}
# with: ${{ fromJSON(matrix.target-build-data.install-uses.with || {} ) }}
#
#
# - if: matrix.target-build-data.setup-script
# name: "Executing Setup Script"
# run: |
# ${{ matrix.target-build-data.setup-script }}
# working-directory: ${{ github.workspace }}
# shell: ${{ matrix.target-build-data.shell }}
#
# - name: Build artifact
# run: |
# ${{ matrix.target-build-data.cmake-script }}
# working-directory: ${{ github.workspace }}
# shell: ${{ matrix.target-build-data.shell }}
#
# - name: Create tar for artifact
# run: |
# tar --posix --use-compress-program zstdmt -cf ../lib-${{ matrix.target-build-data.libraries.libraryName }}.tzst
# working-directory: ${{ github.workspace }}/build/${{ matrix.target-os}}/Release/${{ matrix.target-build-data.libraries.libraryName }}
# shell: ${{ matrix.target-build-data.shell }}
#
# - name: Upload artifact
# uses: actions/upload-artifact@v3
# with:
# name: lib-${{ matrix.target-build-data.libraries.libraryName }}-${{ env.LIBRARY_VERSION }}.tzst
# path: ${{ github.workspace }}/build/${{ matrix.target-os}}/Release/lib-${{ matrix.target-build-data.libraries.libraryName }}.tzst
#