-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.06 KB
/
build.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
name: Build Foxogram Desktop
on:
push:
branches:
- workflow
jobs:
build:
strategy:
matrix:
os: [ macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.8.0'
- name: Install Ninja
uses: turtlesec-no/get-ninja@main
- name: Build Foxogram
run: |
mkdir cmake-build
cmake -DCMAKE_BUILD_TYPE=Release -DIXWEBSOCKET_INSTALL:BOOL=OFF -DCMAKE_INSTALL_PREFIX=foxogram -G Ninja -B cmake-build
Ninja -C cmake-build
cmake --build cmake-build --target install
- name: Archive Foxogram
shell: pwsh
run: |
if ($env:RUNNER_OS -eq "Windows") {
7z a ${{ matrix.os }}.zip foxogram
} else {
zip -r ${{ matrix.os }}.zip foxogram
}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}.zip
path: ${{ matrix.os }}.zip