-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.77 KB
/
Copy pathc-cpp_cmake.yml
File metadata and controls
59 lines (49 loc) · 1.77 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
name: 1. MacOS qt6.9 Univarsal cmake C/C++ CI
on:
workflow_dispatch:
jobs:
build:
runs-on: macos-15
steps:
# リポジトリをチェックアウト
- name: Checkout repository
uses: actions/checkout@v4
# Qtをインストール
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: 6.9.*
modules: 'qtcharts'
extra: '--external 7z'
- name: Clone CaptureStream2
run: |
git clone https://github.com/CSReviser/CaptureStream2.git
cd CaptureStream2
git submodule update --init --recursive
# git checkout feature
# CMakeでビルド構成を生成
- name: Configure CMake
run: |
mkdir build
cmake -S CaptureStream2 -B build -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
# Makeでビルド
- name: Build with Make
run: cmake --build build --parallel
# CaptureStream2の実行可能ファイルを準備
- name: Prepare CaptureStream2 executable
run: |
wget -qO FFmpeg.7z https://evermeet.cx/ffmpeg/ffmpeg-7.1.1.7z || { echo "Failed to download FFmpeg"; exit 1; }
7z e FFmpeg.7z ffmpeg -o./build/CaptureStream2.app/Contents/MacOS/ || { echo "Failed to extract FFmpeg"; exit 1; }
chmod -R 755 build/CaptureStream2.app
# 必要なディレクトリを作成
- name: Create target directory
run: mkdir -p build/MacCaptureStream2
# アプリを圧縮
- name: Archive CaptureStream2 app
run: tar -cvf build/CaptureStream2.tar -C build CaptureStream2.app
# アーティファクトをアップロード
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: CaptureStream2-Universal-macos15
path: build/CaptureStream2.tar