-
-
Notifications
You must be signed in to change notification settings - Fork 125
138 lines (121 loc) · 3.83 KB
/
Copy pathcustom.yml
File metadata and controls
138 lines (121 loc) · 3.83 KB
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: Custom build
on:
workflow_dispatch:
inputs:
cmake_options:
description: 'Additional CMake options'
required: true
type: string
cmake_cache:
description: 'Custom CMake cache file'
required: false
type: string
jobs:
appimage:
name: AppImage
strategy:
matrix:
include:
- { image: ubuntu-24.04, cpu_arch: x86_64 }
- { image: ubuntu-24.04-arm, cpu_arch: aarch64 }
runs-on: ${{ matrix.image }}
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
submodules: 'recursive'
- name: Dependencies
run: |
export CPU_ARCH=${{ matrix.cpu_arch }}
./ci/appimage.deps.sh
- name: Build
run: |
export CPU_ARCH=${{ matrix.cpu_arch }}
./ci/appimage.build.sh
env:
SCORE_EXTRA_CMAKE_ARGS: ${{ inputs.cmake_options }}
SCORE_CMAKE_CACHE: ${{ inputs.cmake_cache }}
- name: Deploy
run: |
export GITTAGNOV=$(echo "$GITHUB_REF" | sed "s/.*\///;s/^v//")
export BUILD_ARTIFACTSTAGINGDIRECTORY="$PWD/staging"
export CPU_ARCH=${{ matrix.cpu_arch }}
mkdir -p "$BUILD_ARTIFACTSTAGINGDIRECTORY"
./ci/appimage.deploy.sh
- name: Upload build
uses: actions/upload-artifact@v7
with:
name: appimage-${{ matrix.cpu_arch }}
path: |
staging/*.*
win32:
name: Windows
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
submodules: 'recursive'
- name: Dependencies
shell: bash
run: ./ci/win32.deps.sh
- name: Build
shell: bash
run: ./ci/win32.build.sh
env:
SCORE_EXTRA_CMAKE_ARGS: ${{ inputs.cmake_options }}
SCORE_CMAKE_CACHE: ${{ inputs.cmake_cache }}
- name: Deploy
shell: bash
run: |
export GITTAGNOV=$(echo "$GITHUB_REF" | sed "s/.*\///;s/^v//")
export BUILD_ARTIFACTSTAGINGDIRECTORY="$PWD/staging"
mkdir -p "$BUILD_ARTIFACTSTAGINGDIRECTORY"
./ci/win32.deploy.sh
- name: Upload build
uses: actions/upload-artifact@v7
with:
name: windows
path: |
staging/*.*
m1-package:
name: macOS (AppleSilicon Release)
runs-on: macos-26
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
submodules: 'recursive'
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '>=16'
- run: |
source ci/osx.package.deps.sh
env:
MACOS_ARCH: "aarch64"
MAC_CERT_B64: ${{ secrets.MAC_CERT_B64 }}
MAC_CODESIGN_PASSWORD: ${{ secrets.MAC_CERT_PASSWORD }}
- uses: jcelerier/import-codesign-certs@master
with:
p12-file-base64: ${{ secrets.MAC_CERT_B64 }}
p12-password: ${{ secrets.MAC_CERT_PASSWORD }}
- run: |
source ci/osx.package.build.sh
env:
MACOS_ARCH: "aarch64"
SCORE_EXTRA_CMAKE_ARGS: ${{ inputs.cmake_options }}
SCORE_CMAKE_CACHE: ${{ inputs.cmake_cache }}
- run: |
export GITTAGNOV=$(echo "$GITHUB_REF" | sed "s/.*\///;s/^v//")
export BUILD_ARTIFACTSTAGINGDIRECTORY=$PWD/staging
mkdir -p $BUILD_ARTIFACTSTAGINGDIRECTORY
source ci/osx.package.deploy.sh
env:
MACOS_ARCH: "aarch64"
MAC_ALTOOL_PASSWORD: ${{ secrets.MAC_ALTOOL_PASSWORD }}
- name: Upload build
uses: actions/upload-artifact@v7
with:
name: macos-aarch64
path: |
staging/*.*