Browse Source

package/ci: sync Linux and macOS images with other magnum repos.

pull/16/head
Vladimír Vondruš 4 years ago
parent
commit
0a32aa0ed7
  1. 37
      package/ci/circleci.yml

37
package/ci/circleci.yml

@ -6,14 +6,15 @@ orbs:
executors: executors:
ubuntu-18_04: ubuntu-18_04:
docker: docker:
- image: ubuntu:bionic-20220128 - image: ubuntu:bionic-20220427
xcode-10_3: xcode-10_3:
macos: macos:
xcode: 10.3.0 xcode: 10.3.0
# Used by the macos-gles3 build # Since 2922-05-23, 11.4.1 images wait endlessly for "VM assignment", using
xcode-11_4: # 11.5 instead.
xcode-11_5:
macos: macos:
xcode: 11.4.1 xcode: 11.5
commands: commands:
install-base-linux: install-base-linux:
@ -30,21 +31,27 @@ commands:
if [[ "$CMAKE_CXX_FLAGS" == *"--coverage"* ]]; then export LCOV_PACKAGES="lcov curl"; fi if [[ "$CMAKE_CXX_FLAGS" == *"--coverage"* ]]; then export LCOV_PACKAGES="lcov curl"; fi
apt install -y git ninja-build $LCOV_PACKAGES << parameters.extra >> apt install -y git ninja-build $LCOV_PACKAGES << parameters.extra >>
# ninja needs python@3.9 as a dependency FOR SOME FUCKING REASON and when THE
# DAMN THING installs it, it proceeds with reinstalling python@2. FROM
# SOURCES! FUCK! and then it fails to link it because NO SHIT, python@3.9 is
# already installed! HOW THE FUCK ARE PEOPLE ABLE TO DEAL WITH SUCH CURSED
# SHIT ALL THE TIME?! FUCK OFF
#
# TODO: Needed only on 10.3 and 11.4, not on 11.5 anymore, remove once those
# images are not used anymore.
macos-remove-python-curse:
steps:
- run:
name: Remove Python 2 curse
command: |
HOMEBREW_NO_AUTO_UPDATE=1 brew uninstall python@2
install-base-macos: install-base-macos:
parameters: parameters:
extra: extra:
type: string type: string
default: "" default: ""
steps: steps:
- run:
# ninja needs python@3.9 as a dependency FOR SOME FUCKING REASON and
# when THE DAMN THING installs it, it proceeds with reinstalling
# python@2. FROM SOURCES! FUCK! and then it fails to link it because
# NO SHIT, python@3.9 is already installed! HOW THE FUCK ARE PEOPLE
# ABLE TO DEAL WITH SUCH CURSED SHIT ALL THE TIME?! FUCK OFF
name: Remove Python 2 curse
command: |
HOMEBREW_NO_AUTO_UPDATE=1 brew uninstall python@2
- run: - run:
name: Install base packages name: Install base packages
# As usual, homebrew takes five minutes to update and then explodes in # As usual, homebrew takes five minutes to update and then explodes in
@ -264,6 +271,7 @@ jobs:
CMAKE_CXX_FLAGS: --coverage CMAKE_CXX_FLAGS: --coverage
PLATFORM_GL_API: CGL PLATFORM_GL_API: CGL
steps: steps:
- macos-remove-python-curse
- install-base-macos: - install-base-macos:
extra: sdl2 glfw numpy pybind11 extra: sdl2 glfw numpy pybind11
- build: - build:
@ -273,7 +281,7 @@ jobs:
macos-gles3: macos-gles3:
# Using the same executor as Magnum uses for the ES3 build. 10.3 fails to # Using the same executor as Magnum uses for the ES3 build. 10.3 fails to
# load the libGLESv2.dylib due to "Symbol not found: _objc_opt_class". # load the libGLESv2.dylib due to "Symbol not found: _objc_opt_class".
executor: xcode-11_4 executor: xcode-11_5
environment: environment:
CMAKE_CXX_FLAGS: --coverage CMAKE_CXX_FLAGS: --coverage
PLATFORM_GL_API: EGL PLATFORM_GL_API: EGL
@ -298,6 +306,7 @@ jobs:
CMAKE_CXX_FLAGS: --coverage CMAKE_CXX_FLAGS: --coverage
PLATFORM_GL_API: CGL PLATFORM_GL_API: CGL
steps: steps:
- macos-remove-python-curse
- install-base-macos: - install-base-macos:
extra: sdl2 glfw numpy pybind11 extra: sdl2 glfw numpy pybind11
- build: - build:

Loading…
Cancel
Save