Skip to content

Commit

Permalink
[CI] Another try to make Ninja alive [7]...
Browse files Browse the repository at this point in the history
  • Loading branch information
DronCode committed Jan 22, 2024
1 parent c8e2850 commit f783f81
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
toolset: msvc
link: static

# Try to locate llvm binaries
# Try to locate llvm binaries (I'm not sure, but this list should be enough to precache all required things)
- name: Cache LLVM binaries
id: cache-llvm-binaries
uses: actions/cache@v3
Expand All @@ -53,7 +53,7 @@ jobs:
llvm_repo/llvm
llvm_repo/clang
# Checkout & Build LLVM 16.0.4 (Need check cache here. On cache miss - build from scratch!)
# Checkout & Build LLVM (On cache miss - build from sources!)
- name: Checkout LLVM
if: steps.cache-llvm-binaries.outputs.cache-hit != 'true'
uses: actions/checkout@v3
Expand All @@ -74,29 +74,32 @@ jobs:
cmake --build . --config MinSizeRel
# Build our project. TODO: Add support of Ninja build system!!!
# - name: Build RG3
# env:
# LLVM_DIR: ${{ github.workspace }}/llvm_repo/build/lib/cmake/llvm
# CLANG_DIR: ${{ github.workspace }}/llvm_repo/build/lib/cmake/clang
# BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
# run: |
# mkdir build
# cmake -DCMAKE_BUILD_TYPE="MinSizeRel" -B build -G "Visual Studio 17 2022"
# cd build
# cmake --build . --config MinSizeRel
- name: Build RG3
uses: actions/setup-python@v5
with:
python-version: '3.10'
env:
LLVM_DIR: ${{ github.workspace }}/llvm_repo/build/lib/cmake/llvm
CLANG_DIR: ${{ github.workspace }}/llvm_repo/build/lib/cmake/clang
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
run: |
mkdir build
cmake -DCMAKE_BUILD_TYPE="MinSizeRel" -B build -G "Visual Studio 17 2022"
cd build
cmake --build . --config MinSizeRel
# Make python packages (whl)

# Make dist folder with pyd & pyi files.
# - name: Create distribution package
# run: |
# mkdir dist
# mv PyBind/rg3py.pyi dist
# mv build/PyBind/MinSizeRel/rg3py.pyd dist
- name: Create distribution package
run: |
mkdir dist
mv PyBind/rg3py.pyi dist
mv build/PyBind/MinSizeRel/rg3py.pyd dist
# Upload artifacts. TODO: Upload whl artifacts too!
# - name: Upload RG3 artifacts
# uses: actions/upload-artifact@v2
# with:
# name: "RG3"
# path: dist
- name: Upload RG3 artifacts
uses: actions/upload-artifact@v2
with:
name: "RG3"
path: dist

0 comments on commit f783f81

Please sign in to comment.