mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
workflow: Fix issues with Continuous Integration build
This commit is contained in:
parent
ac089658f3
commit
07be2e64bd
44
.github/workflows/ci.yml
vendored
44
.github/workflows/ci.yml
vendored
@ -92,13 +92,19 @@ jobs:
|
||||
- name: Install dependencies (macOS)
|
||||
if: runner.os == 'macOS'
|
||||
run: |
|
||||
curl -O https://www.panda3d.org/download/panda3d-1.10.5/panda3d-1.10.5-tools-mac.tar.gz
|
||||
tar -xf panda3d-1.10.5-tools-mac.tar.gz
|
||||
curl -O https://www.panda3d.org/download/panda3d-1.10.7/panda3d-1.10.7-tools-mac.tar.gz
|
||||
tar -xf panda3d-1.10.7-tools-mac.tar.gz
|
||||
mv panda3d-1.10.7/thirdparty thirdparty
|
||||
rmdir panda3d-1.10.7
|
||||
|
||||
mkdir -p build/Frameworks
|
||||
cp -R thirdparty/darwin-libs-a/nvidiacg/Cg.framework build/Frameworks/Cg.framework
|
||||
|
||||
mkdir -p "build/${{ matrix.config }}/Frameworks"
|
||||
cp -R thirdparty/darwin-libs-a/nvidiacg/Cg.framework "build/${{ matrix.config }}/Frameworks/Cg.framework"
|
||||
|
||||
brew install ccache
|
||||
|
||||
echo "thirdpartyOption=-D THIRDPARTY_DIRECTORY=../panda3d-1.10.5/thirdparty -DHAVE_CG=OFF" >> $GITHUB_ENV
|
||||
|
||||
- name: Install dependencies (Ubuntu)
|
||||
if: startsWith(matrix.os, 'ubuntu')
|
||||
run: >
|
||||
@ -120,20 +126,19 @@ jobs:
|
||||
if: runner.os == 'Windows'
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: thirdparty-tools
|
||||
key: ci-cmake-${{ runner.OS }}-thirdparty-v1.10.5-r1
|
||||
path: thirdparty
|
||||
key: ci-cmake-${{ runner.OS }}-thirdparty-v1.10.7-r1
|
||||
- name: Install dependencies (Windows)
|
||||
if: runner.os == 'Windows'
|
||||
shell: powershell
|
||||
run: |
|
||||
if (!(Test-Path thirdparty-tools/panda3d-1.10.5)) {
|
||||
if (!(Test-Path thirdparty/win-libs-vc14-x64)) {
|
||||
$wc = New-Object System.Net.WebClient
|
||||
$wc.DownloadFile("https://www.panda3d.org/download/panda3d-1.10.5/panda3d-1.10.5-tools-win64.zip", "thirdparty-tools.zip")
|
||||
$wc.DownloadFile("https://www.panda3d.org/download/panda3d-1.10.7/panda3d-1.10.7-tools-win64.zip", "thirdparty-tools.zip")
|
||||
Expand-Archive -Path thirdparty-tools.zip
|
||||
Move-Item -Path thirdparty-tools/panda3d-1.10.7/thirdparty -Destination .
|
||||
}
|
||||
|
||||
echo "thirdpartyOption=-D THIRDPARTY_DIRECTORY=../thirdparty-tools/panda3d-1.10.5/thirdparty" >> $GITHUB_ENV
|
||||
|
||||
- name: ccache (non-Windows)
|
||||
if: runner.os != 'Windows'
|
||||
uses: actions/cache@v1
|
||||
@ -146,15 +151,15 @@ jobs:
|
||||
env:
|
||||
CMAKE_GENERATOR: "${{ matrix.generator }}"
|
||||
run: >
|
||||
mkdir build
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
|
||||
if ${{ matrix.compiler == 'Clang' }}; then
|
||||
if [[ "$CMAKE_GENERATOR" == *Studio*2019* ]]; then
|
||||
export CMAKE_GENERATOR_TOOLSET=ClangCL thirdpartyOption="$thirdpartyOption -DHAVE_HARFBUZZ=NO"
|
||||
export CMAKE_GENERATOR_TOOLSET=ClangCL
|
||||
elif [[ "$CMAKE_GENERATOR" == *Studio* ]]; then
|
||||
export CMAKE_GENERATOR_TOOLSET=LLVM thirdpartyOption="$thirdpartyOption -DHAVE_HARFBUZZ=NO"
|
||||
export CMAKE_GENERATOR_TOOLSET=LLVM
|
||||
else
|
||||
export CC=clang CXX=clang++
|
||||
fi
|
||||
@ -173,7 +178,6 @@ jobs:
|
||||
-D BUILD_METALIBS=${{ matrix.metalibs }}
|
||||
-D HAVE_PYTHON=${{ matrix.python }}
|
||||
-D HAVE_EIGEN=${{ matrix.eigen }}
|
||||
${thirdpartyOption:-}
|
||||
..
|
||||
|
||||
- name: Build (no Python)
|
||||
@ -314,16 +318,16 @@ jobs:
|
||||
shell: powershell
|
||||
run: |
|
||||
$wc = New-Object System.Net.WebClient
|
||||
$wc.DownloadFile("https://www.panda3d.org/download/panda3d-1.10.5/panda3d-1.10.5-tools-win64.zip", "thirdparty-tools.zip")
|
||||
$wc.DownloadFile("https://www.panda3d.org/download/panda3d-1.10.7/panda3d-1.10.7-tools-win64.zip", "thirdparty-tools.zip")
|
||||
Expand-Archive -Path thirdparty-tools.zip
|
||||
Move-Item -Path thirdparty-tools/panda3d-1.10.5/thirdparty -Destination .
|
||||
Move-Item -Path thirdparty-tools/panda3d-1.10.7/thirdparty -Destination .
|
||||
- name: Get thirdparty packages (macOS)
|
||||
if: runner.os == 'macOS'
|
||||
run: |
|
||||
curl -O https://www.panda3d.org/download/panda3d-1.10.5/panda3d-1.10.5-tools-mac.tar.gz
|
||||
tar -xf panda3d-1.10.5-tools-mac.tar.gz
|
||||
mv panda3d-1.10.5/thirdparty thirdparty
|
||||
rmdir panda3d-1.10.5
|
||||
curl -O https://www.panda3d.org/download/panda3d-1.10.7/panda3d-1.10.7-tools-mac.tar.gz
|
||||
tar -xf panda3d-1.10.7-tools-mac.tar.gz
|
||||
mv panda3d-1.10.7/thirdparty thirdparty
|
||||
rmdir panda3d-1.10.7
|
||||
(cd thirdparty/darwin-libs-a && rm -rf rocket)
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
|
Loading…
x
Reference in New Issue
Block a user