forked from pinterf/assrender
-
Notifications
You must be signed in to change notification settings - Fork 8
80 lines (75 loc) · 2.51 KB
/
c-cpp.yml
File metadata and controls
80 lines (75 loc) · 2.51 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
name: C/C++ CI
on: [push]
jobs:
# build-linux:
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v2
# - name: install deps
# run: |
# sudo apt-get update && sudo apt-get install -y --no-install-recommends build-essential g++ gcc libass-dev pkg-config
# - name: build
# run: |
# cmake -B build -S .
# cmake --build build --clean-first
build-macos:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: install deps
run: |
brew install cmake libass
- name: build
run: |
cmake -B build -S .
cmake --build build --clean-first
# build-mingw:
# runs-on: windows-2019
# defaults:
# run:
# shell: msys2 {0}
# steps:
# - uses: actions/checkout@v2
# - uses: msys2/setup-msys2@v2
# with:
# update: true
# install: base-devel git mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-libass
# msystem: MINGW64
# path-type: inherit
# - name: build
# run: |
# cmake -G "MSYS Makefiles" -B build -S .
# cmake --build build --clean-first
# build-win:
# runs-on: windows-2019
# strategy:
# matrix:
# include:
# - target: 'x86'
# platform: 'Win32'
# - target: 'x64'
# platform: 'x64'
# steps:
# - uses: actions/checkout@v2
# - name: install submodules and nasm
# shell: cmd
# run: |
# git submodule update --init --recursive --remote
# git clone https://github.com/ShiftMediaProject/VSNASM.git --branch 0.9
# .\VSNASM\install_script.bat
# - name: force /MT build
# shell: bash
# run: |
# sed -i -e 's|<ClCompile>|&<RuntimeLibrary>MultiThreaded</RuntimeLibrary>|g' SMP/*/SMP/*.vcxproj
# sed -i -e 's|<ClCompile>|&<RuntimeLibrary>MultiThreaded</RuntimeLibrary>|g' assrender.vcxproj
# - name: add msbuild to PATH
# uses: microsoft/setup-msbuild@v1
# - name: build
# run: MSBuild.exe /t:Rebuild /p:WindowsTargetPlatformVersion=10.0.19041.0 /p:PlatformToolset=v142 /m /p:Configuration=Release /p:Platform=${{matrix.target}}
# - name: copy
# run: cmake -E copy "bin\Release_${{matrix.platform}}\assrender.dll" dist\${{matrix.target}}\assrender.dll
# - name: upload
# uses: actions/upload-artifact@v2
# with:
# name: assrender_bin
# path: dist