Skip to content

Commit

Permalink
remove submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
MIRIMIRIM committed May 26, 2024
1 parent 128635d commit 47e1240
Show file tree
Hide file tree
Showing 15 changed files with 64 additions and 743 deletions.
126 changes: 63 additions & 63 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ 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-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-12
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: install deps
run: |
brew install cmake libass
Expand All @@ -27,54 +27,54 @@ jobs:
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-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
# 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ install_manifest.txt
SMP/

#*/build/.vs
build/*
*/build/Win32
*/build/x64
Test
Expand Down
1 change: 0 additions & 1 deletion SMP/fontconfig
Submodule fontconfig deleted from 7167d1
1 change: 0 additions & 1 deletion SMP/freetype2
Submodule freetype2 deleted from e18a7c
1 change: 0 additions & 1 deletion SMP/fribidi
Submodule fribidi deleted from 3a2742
1 change: 0 additions & 1 deletion SMP/harfbuzz
Submodule harfbuzz deleted from 23a672
1 change: 0 additions & 1 deletion SMP/libass
Submodule libass deleted from e2d549
1 change: 0 additions & 1 deletion SMP/libiconv
Submodule libiconv deleted from 8e459c
1 change: 0 additions & 1 deletion SMP/liblzma
Submodule liblzma deleted from 303074
1 change: 0 additions & 1 deletion SMP/libxml2
Submodule libxml2 deleted from 7087b6
1 change: 0 additions & 1 deletion SMP/zlib
Submodule zlib deleted from 094bb4
Loading

0 comments on commit 47e1240

Please sign in to comment.