feat: change project layout for new added project
This commit is contained in:
0
.github/scripts/linux.sh
vendored
Normal file
0
.github/scripts/linux.sh
vendored
Normal file
0
.github/scripts/macos.sh
vendored
Normal file
0
.github/scripts/macos.sh
vendored
Normal file
18
.github/scripts/windows.bat
vendored
Normal file
18
.github/scripts/windows.bat
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: Create build directory and enter it
|
||||
MKDIR bin
|
||||
CD bin
|
||||
:: Create internal build and install directory, then enter it
|
||||
MKDIR build
|
||||
MKDIR install
|
||||
CD build
|
||||
|
||||
:: Build with x64 architecture in Release mode
|
||||
cmake -A x64 -DYYCC_BUILD_TEST=ON -DGTest_ROOT=%GTest_ROOT% -DYYCC_BUILD_BENCHMARK=ON -Dbenchmark_ROOT=%benchmark_ROOT% ../..
|
||||
cmake --build . --config Release
|
||||
cmake --install . --prefix=../install --config Release
|
||||
|
||||
:: Back to root directory
|
||||
CD ..
|
||||
CD ..
|
||||
0
.github/scripts/yycc-linux.sh
vendored
Normal file
0
.github/scripts/yycc-linux.sh
vendored
Normal file
0
.github/scripts/yycc-macos.sh
vendored
Normal file
0
.github/scripts/yycc-macos.sh
vendored
Normal file
0
.github/scripts/yycc-windows.bat
vendored
Normal file
0
.github/scripts/yycc-windows.bat
vendored
Normal file
0
.github/scripts/zlib-linux.sh
vendored
Normal file
0
.github/scripts/zlib-linux.sh
vendored
Normal file
0
.github/scripts/zlib-macos.sh
vendored
Normal file
0
.github/scripts/zlib-macos.sh
vendored
Normal file
0
.github/scripts/zlib-windows.bat
vendored
Normal file
0
.github/scripts/zlib-windows.bat
vendored
Normal file
0
.github/workflows/linux.yml
vendored
Normal file
0
.github/workflows/linux.yml
vendored
Normal file
0
.github/workflows/macos.yml
vendored
Normal file
0
.github/workflows/macos.yml
vendored
Normal file
87
.github/workflows/windows.yml
vendored
Normal file
87
.github/workflows/windows.yml
vendored
Normal file
@@ -0,0 +1,87 @@
|
||||
name: YYCC Windows Build
|
||||
|
||||
on: [workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
windows-build:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- vs: '2022'
|
||||
msvc_arch: 'x64'
|
||||
|
||||
runs-on: windows-2022
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Fetch YYCCommonplace
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'yyc12345/YYCCommonplace'
|
||||
ref: 'master'
|
||||
path: 'extern/YYCCommonplace'
|
||||
- name: Build YYCCommonplace
|
||||
shell: cmd
|
||||
run: |
|
||||
:: Enter directory
|
||||
cd extern/YYCCommonplace
|
||||
:: Build library
|
||||
..\..\.github\scripts\yycc-windows.bat
|
||||
:: Fetch install directory
|
||||
cd install
|
||||
echo set YYCCommonplace_ROOT=%CD% > ../../envs.bat
|
||||
cd ..
|
||||
cd ../..
|
||||
- name: Fetch ZLIB
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'madler/zlib'
|
||||
ref: 'v1.3.1'
|
||||
path: 'extern/zlib'
|
||||
- name: Build ZLIB
|
||||
shell: cmd
|
||||
run: |
|
||||
:: Enter directory
|
||||
cd extern/zlib
|
||||
:: Build library
|
||||
..\..\.github\scripts\zlib-windows.bat
|
||||
:: Fetch install directory
|
||||
cd install
|
||||
echo set ZLIB_ROOT=%CD% >> ../../envs.bat
|
||||
cd ..
|
||||
cd ../..
|
||||
- name: Fetch STB
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'nothings/stb'
|
||||
ref: '2e2bef463a5b53ddf8bb788e25da6b8506314c08'
|
||||
path: 'extern/stb'
|
||||
- name: Build STB
|
||||
shell: cmd
|
||||
run: |
|
||||
:: Enter directory
|
||||
cd extern/stb
|
||||
:: Fetch install directory
|
||||
echo set STB_ROOT=%CD% >> ../envs.bat
|
||||
cd ../..
|
||||
- name: Build LibCmo
|
||||
shell: cmd
|
||||
run: |
|
||||
:: Prepare Visual Studio
|
||||
set VS=${{ matrix.vs }}
|
||||
set VCVARS="C:\Program Files (x86)\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvarsall.bat"
|
||||
if not exist %VCVARS% set VCVARS="C:\Program Files\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvarsall.bat"
|
||||
call %VCVARS% ${{ matrix.msvc_arch }}
|
||||
:: Extract saved environment variables
|
||||
call .\extern\envs.bat
|
||||
:: Build Project
|
||||
.\.github\script\windows.bat
|
||||
- name: Upload Built Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: LibCmo-windows-build
|
||||
path: bin/install/*
|
||||
retention-days: 30
|
||||
|
||||
Reference in New Issue
Block a user