From a315a0fe0afe27287e9b9b65389672a2302d6fdb Mon Sep 17 00:00:00 2001 From: ofTheo Date: Wed, 23 Aug 2023 14:17:31 -0700 Subject: [PATCH 1/6] aarch64 runner --- .github/{workflows => }/build-emscripten.yml | 0 .github/{workflows => }/build-ios-tvos.yml | 0 .../{workflows => }/build-linux-nightly.yml | 0 .github/{workflows => }/build-linux.yml | 0 .github/{workflows => }/build-macos.yml | 0 .github/{workflows => }/build-msys2.yml | 0 .github/{workflows => }/build-vs.yml | 0 .github/{workflows => }/manual-nightly.yml | 0 ...ld-linux-armv6.yml => build-linux-arm.yml} | 2 +- .../config.linuxaarch64.default.mk | 22 ++++-- scripts/ci/linuxaarch64/build.sh | 28 +++++++ scripts/ci/linuxaarch64/install.sh | 78 +++++++++++++++++++ scripts/ci/linuxaarch64/multistrap.conf | 23 ++++++ 13 files changed, 144 insertions(+), 9 deletions(-) rename .github/{workflows => }/build-emscripten.yml (100%) rename .github/{workflows => }/build-ios-tvos.yml (100%) rename .github/{workflows => }/build-linux-nightly.yml (100%) rename .github/{workflows => }/build-linux.yml (100%) rename .github/{workflows => }/build-macos.yml (100%) rename .github/{workflows => }/build-msys2.yml (100%) rename .github/{workflows => }/build-vs.yml (100%) rename .github/{workflows => }/manual-nightly.yml (100%) rename .github/workflows/{build-linux-armv6.yml => build-linux-arm.yml} (95%) create mode 100755 scripts/ci/linuxaarch64/build.sh create mode 100755 scripts/ci/linuxaarch64/install.sh create mode 100644 scripts/ci/linuxaarch64/multistrap.conf diff --git a/.github/workflows/build-emscripten.yml b/.github/build-emscripten.yml similarity index 100% rename from .github/workflows/build-emscripten.yml rename to .github/build-emscripten.yml diff --git a/.github/workflows/build-ios-tvos.yml b/.github/build-ios-tvos.yml similarity index 100% rename from .github/workflows/build-ios-tvos.yml rename to .github/build-ios-tvos.yml diff --git a/.github/workflows/build-linux-nightly.yml b/.github/build-linux-nightly.yml similarity index 100% rename from .github/workflows/build-linux-nightly.yml rename to .github/build-linux-nightly.yml diff --git a/.github/workflows/build-linux.yml b/.github/build-linux.yml similarity index 100% rename from .github/workflows/build-linux.yml rename to .github/build-linux.yml diff --git a/.github/workflows/build-macos.yml b/.github/build-macos.yml similarity index 100% rename from .github/workflows/build-macos.yml rename to .github/build-macos.yml diff --git a/.github/workflows/build-msys2.yml b/.github/build-msys2.yml similarity index 100% rename from .github/workflows/build-msys2.yml rename to .github/build-msys2.yml diff --git a/.github/workflows/build-vs.yml b/.github/build-vs.yml similarity index 100% rename from .github/workflows/build-vs.yml rename to .github/build-vs.yml diff --git a/.github/workflows/manual-nightly.yml b/.github/manual-nightly.yml similarity index 100% rename from .github/workflows/manual-nightly.yml rename to .github/manual-nightly.yml diff --git a/.github/workflows/build-linux-armv6.yml b/.github/workflows/build-linux-arm.yml similarity index 95% rename from .github/workflows/build-linux-armv6.yml rename to .github/workflows/build-linux-arm.yml index f51cb649cbc..461fa9491d1 100644 --- a/.github/workflows/build-linux-armv6.yml +++ b/.github/workflows/build-linux-arm.yml @@ -24,7 +24,7 @@ jobs: matrix: cfg: - {target: linuxarmv6l, libs: armv6l} -# - {target: linuxarmv7l, libs: armv7l} + - {target: linuxaarch64, libs: aarch64} env: TARGET: ${{matrix.cfg.target}} steps: diff --git a/libs/openFrameworksCompiled/project/linuxaarch64/config.linuxaarch64.default.mk b/libs/openFrameworksCompiled/project/linuxaarch64/config.linuxaarch64.default.mk index f17204e6324..d10f9885c78 100644 --- a/libs/openFrameworksCompiled/project/linuxaarch64/config.linuxaarch64.default.mk +++ b/libs/openFrameworksCompiled/project/linuxaarch64/config.linuxaarch64.default.mk @@ -95,7 +95,9 @@ PLATFORM_PKG_CONFIG_LIBRARIES += egl PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/openFrameworks/sound/ofFmodSoundPlayer.cpp ifeq ($(CROSS_COMPILING),1) - +ifdef MAKEFILE_DEBUG + $(info detected cross compiling $(CROSS_COMPILING)) +endif ifdef TOOLCHAIN_ROOT #You have specified TOOLCHAIN_ROOT with an environment variable else @@ -105,7 +107,7 @@ ifeq ($(CROSS_COMPILING),1) ifdef GCC_PREFIX #You have specified GCC_PREFIX with an environment variable else - GCC_PREFIX = arm-linux-gnueabihf + GCC_PREFIX = aarch64-linux-gnu endif PLATFORM_CXX = $(TOOLCHAIN_ROOT)/bin/$(GCC_PREFIX)-g++ @@ -115,17 +117,21 @@ ifeq ($(CROSS_COMPILING),1) SYSROOT=$(RPI_ROOT) - #c++ 17 support - comment out two lines below to use c++11 - PLATFORM_CFLAGS += -std=c++17 + PLATFORM_CFLAGS += --sysroot=$(SYSROOT) - PLATFORM_HEADER_SEARCH_PATHS += $(SYSROOT)/usr/include/c++/7 + PLATFORM_HEADER_SEARCH_PATHS += $(SYSROOT)/usr/include/c++ + PLATFORM_HEADER_SEARCH_PATHS += $(TOOLCHAIN_ROOT)/lib/gcc/$(GCC_PREFIX)/$(GCC_VERSION)/include PLATFORM_LIBRARY_SEARCH_PATHS += $(SYSROOT)/usr/lib/$(GCC_PREFIX) + PLATFORM_LIBRARY_SEARCH_PATHS += $(SYSROOT)/lib/$(GCC_PREFIX) + PLATFORM_LIBRARY_SEARCH_PATHS += $(TOOLCHAIN_ROOT)/lib/gcc/$(GCC_PREFIX)/$(GCC_VERSION) PLATFORM_LDFLAGS += --sysroot=$(SYSROOT) - PLATFORM_LDFLAGS += -Wl,-rpath=$(SYSROOT)/usr/lib/$(GCC_PREFIX) - PLATFORM_LDFLAGS += -Wl,-rpath=$(SYSROOT)/lib/$(GCC_PREFIX) + PLATFORM_LDFLAGS += -Xlinker -rpath-link=$(SYSROOT)/usr/lib/$(GCC_PREFIX) + PLATFORM_LDFLAGS += -Xlinker -rpath-link=$(SYSROOT)/lib/$(GCC_PREFIX) + PLATFORM_LDFLAGS += -Xlinker -rpath-link=$(SYSROOT)/opt/vc/lib + PLATFORM_LDFLAGS += -Xlinker -rpath-link=$(SYSROOT)/usr/lib/arm-linux-gnueabihf/pulseaudio - PKG_CONFIG_LIBDIR=$(SYSROOT)/usr/lib/pkgconfig:$(SYSROOT)/usr/lib/arm-linux-gnueabihf/pkgconfig:$(SYSROOT)/usr/share/pkgconfig + PKG_CONFIG_LIBDIR=$(SYSROOT)/usr/lib/pkgconfig:$(SYSROOT)/usr/lib/$(GCC_PREFIX)/pkgconfig:$(SYSROOT)/usr/share/pkgconfig endif diff --git a/scripts/ci/linuxaarch64/build.sh b/scripts/ci/linuxaarch64/build.sh new file mode 100755 index 00000000000..2cc46a64aa9 --- /dev/null +++ b/scripts/ci/linuxaarch64/build.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +OF_ROOT=$( cd "$(dirname "$0")" ; pwd -P ) + +export GCC_PREFIX=aarch64-linux-gnu +export GCC_VERSION=10.3.0 +export GST_VERSION=1.0 +export RPI_ROOT=$OF_ROOT/raspbian +export TOOLCHAIN_ROOT=$OF_ROOT/rpi_toolchain +export PLATFORM_OS=Linux +export PLATFORM_ARCH=aarch64 +export PKG_CONFIG_LIBDIR=${RPI_ROOT}/usr/lib/pkgconfig:${RPI_ROOT}/usr/lib/${GCC_PREFIX}/pkgconfig:${RPI_ROOT}/usr/share/pkgconfig +export CXX="${TOOLCHAIN_ROOT}/bin/${GCC_PREFIX}-g++" +export CC="${TOOLCHAIN_ROOT}/bin/${GCC_PREFIX}-gcc" +export AR=${TOOLCHAIN_ROOT}/bin/${GCC_PREFIX}-ar +export LD=${TOOLCHAIN_ROOT}/bin/${GCC_PREFIX}-ld + +export PATH=/rpi_toolchain/bin/:$PATH +export LD_LIBRARY_PATH=/rpi_toolchain/lib:$LD_LIBRARY_PATH + +cp config.linuxaarch64.default.mk openFrameworks/libs/openFrameworksCompiled/project/linuxaarch64/ +cd openFrameworks +./scripts/linux/download_libs.sh -a aarch64 +cp -r scripts/templates/linuxaarch64/config.make examples/templates/emptyExample/ +cp -r scripts/templates/linuxaarch64/Makefile examples/templates/emptyExample/ + +cd examples/templates/emptyExample/ +make Debug -j2 diff --git a/scripts/ci/linuxaarch64/install.sh b/scripts/ci/linuxaarch64/install.sh new file mode 100755 index 00000000000..fbdff4e5d34 --- /dev/null +++ b/scripts/ci/linuxaarch64/install.sh @@ -0,0 +1,78 @@ +#!/bin/bash +set -e +set -o pipefail +# trap any script errors and exit +trap "trapError" ERR + +trapError() { + echo + echo " ^ Received error ^" + cat formula.log + exit 1 +} + +installPackages(){ + apt-get -y update + apt-get -y install multistrap unzip + #workaround for https://bugs.launchpad.net/ubuntu/+source/multistrap/+bug/1313787 + sed -i s/\$forceyes//g /usr/sbin/multistrap +} + +createRaspbianImg(){ + #needed since Ubuntu 18.04 - allow non https repositories + mkdir -p raspbian/etc/apt/apt.conf.d/ + echo 'Acquire::AllowInsecureRepositories "true";' | tee raspbian/etc/apt/apt.conf.d/90insecure + multistrap -a arm64 -d raspbian -f multistrap.conf +} + + +downloadToolchain(){ + wget https://github.com/openframeworks/openFrameworks/releases/download/tools/cross-gcc-10.3.0-pi_64.tar.gz + tar xvf cross-gcc-10.3.0-pi_64.tar.gz + mv cross-pi-gcc-10.3.0-64 rpi_toolchain + rm cross-gcc-10.3.0-pi_64.tar.gz +} + +downloadFirmware(){ + wget https://github.com/raspberrypi/firmware/archive/master.zip -O firmware.zip + unzip firmware.zip + cp -r firmware-master/opt raspbian/ + rm -r firmware-master + rm firmware.zip +} + +relativeSoftLinks(){ + for link in $(ls -la | grep "\-> /" | sed "s/.* \([^ ]*\) \-> \/\(.*\)/\1->\/\2/g"); do + lib=$(echo $link | sed "s/\(.*\)\->\(.*\)/\1/g"); + link=$(echo $link | sed "s/\(.*\)\->\(.*\)/\2/g"); + rm $lib + ln -s ../../..$link $lib + done + + for f in *; do + error=$(grep " \/lib/" $f > /dev/null 2>&1; echo $?) + if [ $error -eq 0 ]; then + sed -i "s/ \/lib/ ..\/..\/..\/lib/g" $f + sed -i "s/ \/usr/ ..\/..\/..\/usr/g" $f + fi + done +} + + +ROOT=$( cd "$(dirname "$0")" ; pwd -P ) +echo $ROOT +cd $ROOT +installPackages +createRaspbianImg +downloadToolchain +downloadFirmware + +cp -rn rpi_toolchain/aarch64-linux-gnu/libc/lib/* $ROOT/raspbian/usr/lib/ +cp -rn rpi_toolchain/aarch64-linux-gnu/libc/usr/lib/* $ROOT/raspbian/usr/lib/ +cp -rn rpi_toolchain/aarch64-linux-gnu/lib/* $ROOT/raspbian/usr/lib/ + +cd $ROOT/raspbian/usr/lib +relativeSoftLinks +cd $ROOT/raspbian/usr/lib/aarch64-linux-gnu +relativeSoftLinks + diff --git a/scripts/ci/linuxaarch64/multistrap.conf b/scripts/ci/linuxaarch64/multistrap.conf new file mode 100644 index 00000000000..d35454ce980 --- /dev/null +++ b/scripts/ci/linuxaarch64/multistrap.conf @@ -0,0 +1,23 @@ +[General] +arch=arm64 +directory=raspbian +cleanup=true +noauth=true +unpack=true +aptsources=Raspbian-Base OpenFrameworks +debootstrap=Raspbian-Base OpenFrameworks + + +[Raspbian-Base] +packages=base-files dbus dpkg dropbear initscripts iputils-ping isc-dhcp-client kmod login locales lsb-base lsb-release makedev netbase net-tools sysvinit-utils sysv-rc libudev-dev +source=http://deb.debian.org/debian +keyring=debian-archive-keyring +components=main contrib non-free rpi +suite=bullseye + +[OpenFrameworks] +packages=libasound2-dev libxmu-dev libxxf86vm-dev g++ libgl1-mesa-dev libglu1-mesa-dev libraw1394-dev libudev-dev libdrm-dev libglew-dev libopenal-dev libsndfile-dev libfreeimage-dev libcairo2-dev libfreetype6-dev libssl-dev libpulse-dev libusb-1.0-0-dev libopencv-dev libegl1-mesa-dev libglvnd-dev libgles2-mesa-dev libassimp-dev librtaudio-dev libboost-filesystem-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-libav gstreamer1.0-pulseaudio gstreamer1.0-x gstreamer1.0-plugins-bad gstreamer1.0-alsa gstreamer1.0-plugins-base gstreamer1.0-plugins-good liburiparser-dev libcurl4-openssl-dev libxml2-dev libpugixml-dev libpoco-dev libglfw3-dev libxrandr-dev libxinerama-dev libxcursor-dev freeglut3-dev libxi-dev +source=http://deb.debian.org/debian +keyring=debian-archive-keyring +components=main contrib non-free rpi +suite=bullseye From cc386a82f01fd7104f409dfb5d771cee073eb47d Mon Sep 17 00:00:00 2001 From: ofTheo Date: Wed, 23 Aug 2023 14:23:29 -0700 Subject: [PATCH 2/6] fixes --- scripts/ci/linuxaarch64/build.sh | 18 ++++++++++++------ scripts/ci/linuxaarch64/install.sh | 11 +++++++---- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/scripts/ci/linuxaarch64/build.sh b/scripts/ci/linuxaarch64/build.sh index 2cc46a64aa9..115750ba536 100755 --- a/scripts/ci/linuxaarch64/build.sh +++ b/scripts/ci/linuxaarch64/build.sh @@ -18,11 +18,17 @@ export LD=${TOOLCHAIN_ROOT}/bin/${GCC_PREFIX}-ld export PATH=/rpi_toolchain/bin/:$PATH export LD_LIBRARY_PATH=/rpi_toolchain/lib:$LD_LIBRARY_PATH -cp config.linuxaarch64.default.mk openFrameworks/libs/openFrameworksCompiled/project/linuxaarch64/ -cd openFrameworks -./scripts/linux/download_libs.sh -a aarch64 -cp -r scripts/templates/linuxaarch64/config.make examples/templates/emptyExample/ -cp -r scripts/templates/linuxaarch64/Makefile examples/templates/emptyExample/ - +echo "**** Building emptyExample ****" +cd $OF_ROOT +cp scripts/templates/linuxarmv6l/Makefile examples/templates/emptyExample/ +cp scripts/templates/linuxarmv6l/config.make examples/templates/emptyExample/ cd examples/templates/emptyExample/ make Debug -j2 + +#TODO: +#echo "**** Building allAddonsExample ****" +#cd $OF_ROOT +#cp scripts/templates/linuxarmv6l/Makefile examples/templates/allAddonsExample/ +#cp scripts/templates/linuxarmv6l/config.make examples/templates/allAddonsExample/ +#cd examples/templates/allAddonsExample/ +#make Debug -j2 diff --git a/scripts/ci/linuxaarch64/install.sh b/scripts/ci/linuxaarch64/install.sh index fbdff4e5d34..b9911bffc7b 100755 --- a/scripts/ci/linuxaarch64/install.sh +++ b/scripts/ci/linuxaarch64/install.sh @@ -12,19 +12,22 @@ trapError() { } installPackages(){ - apt-get -y update - apt-get -y install multistrap unzip + sudo apt-get -y update + sudo apt-get -y install multistrap unzip #workaround for https://bugs.launchpad.net/ubuntu/+source/multistrap/+bug/1313787 - sed -i s/\$forceyes//g /usr/sbin/multistrap + sudo sed -i s/\$forceyes//g /usr/sbin/multistrap } createRaspbianImg(){ #needed since Ubuntu 18.04 - allow non https repositories mkdir -p raspbian/etc/apt/apt.conf.d/ - echo 'Acquire::AllowInsecureRepositories "true";' | tee raspbian/etc/apt/apt.conf.d/90insecure + echo 'Acquire::AllowInsecureRepositories "true";' | sudo tee raspbian/etc/apt/apt.conf.d/90insecure multistrap -a arm64 -d raspbian -f multistrap.conf } +SCRIPT_DIR="${BASH_SOURCE%/*}" +if [[ ! -d "$SCRIPT_DIR" ]]; then SCRIPT_DIR="$PWD"; fi +. "$SCRIPT_DIR/../../dev/downloader.sh" downloadToolchain(){ wget https://github.com/openframeworks/openFrameworks/releases/download/tools/cross-gcc-10.3.0-pi_64.tar.gz From ce3a3925da966b5509d5d72d62efc18cbbbd0785 Mon Sep 17 00:00:00 2001 From: ofTheo Date: Wed, 23 Aug 2023 14:29:00 -0700 Subject: [PATCH 3/6] more --- scripts/ci/linuxaarch64/build.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/ci/linuxaarch64/build.sh b/scripts/ci/linuxaarch64/build.sh index 115750ba536..1c0ce47290a 100755 --- a/scripts/ci/linuxaarch64/build.sh +++ b/scripts/ci/linuxaarch64/build.sh @@ -1,6 +1,6 @@ #!/bin/bash - -OF_ROOT=$( cd "$(dirname "$0")" ; pwd -P ) +set -ev +OF_ROOT=$( cd "$(dirname "$0")/../../.." ; pwd -P ) export GCC_PREFIX=aarch64-linux-gnu export GCC_VERSION=10.3.0 @@ -20,15 +20,15 @@ export LD_LIBRARY_PATH=/rpi_toolchain/lib:$LD_LIBRARY_PATH echo "**** Building emptyExample ****" cd $OF_ROOT -cp scripts/templates/linuxarmv6l/Makefile examples/templates/emptyExample/ -cp scripts/templates/linuxarmv6l/config.make examples/templates/emptyExample/ +cp scripts/templates/linuxaarch64/Makefile examples/templates/emptyExample/ +cp scripts/templates/linuxaarch64/config.make examples/templates/emptyExample/ cd examples/templates/emptyExample/ make Debug -j2 -#TODO: +#TODO: #echo "**** Building allAddonsExample ****" #cd $OF_ROOT -#cp scripts/templates/linuxarmv6l/Makefile examples/templates/allAddonsExample/ -#cp scripts/templates/linuxarmv6l/config.make examples/templates/allAddonsExample/ +#cp scripts/templates/linuxaarch64/Makefile examples/templates/allAddonsExample/ +#cp scripts/templates/linuxaarch64/config.make examples/templates/allAddonsExample/ #cd examples/templates/allAddonsExample/ #make Debug -j2 From 00a2d3b104256e48d950e305caf6de7ad9fd621e Mon Sep 17 00:00:00 2001 From: ofTheo Date: Wed, 23 Aug 2023 14:33:50 -0700 Subject: [PATCH 4/6] missing root --- scripts/ci/linuxaarch64/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci/linuxaarch64/build.sh b/scripts/ci/linuxaarch64/build.sh index 1c0ce47290a..c44560fc80d 100755 --- a/scripts/ci/linuxaarch64/build.sh +++ b/scripts/ci/linuxaarch64/build.sh @@ -5,8 +5,8 @@ OF_ROOT=$( cd "$(dirname "$0")/../../.." ; pwd -P ) export GCC_PREFIX=aarch64-linux-gnu export GCC_VERSION=10.3.0 export GST_VERSION=1.0 -export RPI_ROOT=$OF_ROOT/raspbian -export TOOLCHAIN_ROOT=$OF_ROOT/rpi_toolchain +export RPI_ROOT=${OF_ROOT}/scripts/ci/$TARGET/raspbian +export TOOLCHAIN_ROOT=${OF_ROOT}/scripts/ci/$TARGET/rpi_toolchain export PLATFORM_OS=Linux export PLATFORM_ARCH=aarch64 export PKG_CONFIG_LIBDIR=${RPI_ROOT}/usr/lib/pkgconfig:${RPI_ROOT}/usr/lib/${GCC_PREFIX}/pkgconfig:${RPI_ROOT}/usr/share/pkgconfig From 2f40def78842b520c2bf207400a16d08eae44bed Mon Sep 17 00:00:00 2001 From: ofTheo Date: Wed, 23 Aug 2023 14:50:12 -0700 Subject: [PATCH 5/6] adding workflows back --- .github/workflows/build-emscripten.yml | 42 +++++++++ .github/workflows/build-ios-tvos.yml | 42 +++++++++ .github/workflows/build-linux-nightly.yml | 35 ++++++++ .github/workflows/build-linux.yml | 51 +++++++++++ .github/workflows/build-macos.yml | 102 ++++++++++++++++++++++ .github/workflows/build-msys2.yml | 47 ++++++++++ .github/workflows/build-vs.yml | 54 ++++++++++++ .github/workflows/manual-nightly.yml | 32 +++++++ 8 files changed, 405 insertions(+) create mode 100644 .github/workflows/build-emscripten.yml create mode 100644 .github/workflows/build-ios-tvos.yml create mode 100644 .github/workflows/build-linux-nightly.yml create mode 100644 .github/workflows/build-linux.yml create mode 100644 .github/workflows/build-macos.yml create mode 100644 .github/workflows/build-msys2.yml create mode 100644 .github/workflows/build-vs.yml create mode 100644 .github/workflows/manual-nightly.yml diff --git a/.github/workflows/build-emscripten.yml b/.github/workflows/build-emscripten.yml new file mode 100644 index 00000000000..584da536747 --- /dev/null +++ b/.github/workflows/build-emscripten.yml @@ -0,0 +1,42 @@ +name: build-emscripten + +# make the action not run on the local repo if the branch is also in a pull request to OF/OF +on: + push: + if: github.event_name == 'push' && github.event.pull_request == null + paths-ignore: + - '**/*.md' + - 'examples/**' + pull_request: + if: github.event_name == 'pull_request' && github.repository == 'openframeworks/openFrameworks' + paths-ignore: + - '**/*.md' + - 'examples/**' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-emscripten: + runs-on: ubuntu-20.04 + strategy: + matrix: + cfg: + - {target: emscripten} + env: + TARGET: ${{matrix.cfg.target}} + steps: + - uses: actions/checkout@v3 + - name: Docker Step + run: "docker run -di --name emscripten -v $PWD:/src emscripten/emsdk:3.1.21 bash" + - name: Download libs + run: ./scripts/$TARGET/download_libs.sh + - name: Install dependencies + run: ./scripts/ci/$TARGET/install.sh + - name: Build + run: docker exec -i emscripten sh -c "scripts/ci/$TARGET/build.sh"; + - name: Upload Libs + run: scripts/ci/upload_of_lib.sh; + env: + GA_CI_SECRET: ${{ secrets.CI_SECRET }} diff --git a/.github/workflows/build-ios-tvos.yml b/.github/workflows/build-ios-tvos.yml new file mode 100644 index 00000000000..d4850359111 --- /dev/null +++ b/.github/workflows/build-ios-tvos.yml @@ -0,0 +1,42 @@ +name: build-ios-tvos + + +# make the action not run on the local repo if the branch is also in a pull request to OF/OF +on: + push: + if: github.event_name == 'push' && github.event.pull_request == null + paths-ignore: + - '**/*.md' + - 'examples/**' + pull_request: + if: github.event_name == 'pull_request' && github.repository == 'openframeworks/openFrameworks' + paths-ignore: + - '**/*.md' + - 'examples/**' + + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-osx: + runs-on: macos-12 + strategy: + matrix: + cfg: + - {target: ios, libs: ios} + #- {target: tvos, libs: ios} #broken currently maybe better to just remove + env: + TARGET: ${{matrix.cfg.target}} + steps: + - uses: actions/checkout@v3 + - name: Download libs + run: ./scripts/${{matrix.cfg.libs}}/download_libs.sh + - name: install + run: ./scripts/ci/$TARGET/install.sh + - name: Build + run: ./scripts/ci/$TARGET/build.sh; + + env: + DEVELOPER_DIR: "/Applications/Xcode_13.4.1.app/Contents/Developer" diff --git a/.github/workflows/build-linux-nightly.yml b/.github/workflows/build-linux-nightly.yml new file mode 100644 index 00000000000..dc25e736adc --- /dev/null +++ b/.github/workflows/build-linux-nightly.yml @@ -0,0 +1,35 @@ +name: nightly-linux64 + +on: + schedule: + - cron: "0 6 * * *" +jobs: + build-linux-platforms: + runs-on: ubuntu-22.04 + if: github.repository == 'openframeworks/openFrameworks' && github.ref == 'refs/heads/master' + strategy: + matrix: + cfg: + - {target: linux64, libs: 64gcc6} + env: + TARGET: ${{matrix.cfg.target}} + steps: + - uses: actions/checkout@v3 + - name: Install libunwind + run: sudo apt-get install libunwind-dev + - name: Install dependencies + run: sudo ./scripts/linux/ubuntu/install_dependencies.sh -y; + - name: Download libs + run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}}; + - name: Create Package + run: scripts/ci/package_builds.sh; + id: createpackage + - name: Update Release + uses: IsaacShelton/update-existing-release@v1.3.2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + tag: nightly + release: nightly + prerelease: false + replace: true + files: ${{ steps.createpackage.outputs.FILES_OUT }} diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml new file mode 100644 index 00000000000..b76df373676 --- /dev/null +++ b/.github/workflows/build-linux.yml @@ -0,0 +1,51 @@ +name: build-linux64 + +# make the action not run on the local repo if the branch is also in a pull request to OF/OF +on: + push: + if: github.event_name == 'push' && github.event.pull_request == null + paths-ignore: + - '**/*.md' + - 'examples/**' + pull_request: + if: github.event_name == 'pull_request' && github.repository == 'openframeworks/openFrameworks' + paths-ignore: + - '**/*.md' + - 'examples/**' + + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-linux-platforms: + runs-on: ubuntu-latest + strategy: + matrix: + cfg: + - {target: linux64, libs: 64gcc6} + env: + TARGET: ${{matrix.cfg.target}} + steps: + - uses: actions/checkout@v3 + - name: Download libs + run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}}; + - name: Remove Old lib-unwind + run: if [ "$TARGET" = "linux64" ]; then + sudo apt-get remove libunwind-14 -y; + fi + - name: Install dependencies + run: ./scripts/ci/$TARGET/install.sh; + - name: Build + run: if [ "$TARGET" = "linux64" ]; then + scripts/ci/$TARGET/build.sh; + scripts/ci/$TARGET/run_tests.sh; + else + scripts/ci/$TARGET/build.sh; + fi + - name: Upload Libs + run: scripts/ci/upload_of_lib.sh; + env: + GA_CI_SECRET: ${{ secrets.CI_SECRET }} + diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml new file mode 100644 index 00000000000..36cbd731ec1 --- /dev/null +++ b/.github/workflows/build-macos.yml @@ -0,0 +1,102 @@ +name: build-macos + +# make the action not run on the local repo if the branch is also in a pull request to OF/OF +on: + push: + if: github.event_name == 'push' && github.event.pull_request == null + paths-ignore: + - '**/*.md' + - 'examples/**' + pull_request: + if: github.event_name == 'pull_request' && github.repository == 'openframeworks/openFrameworks' + paths-ignore: + - '**/*.md' + - 'examples/**' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-osx: + runs-on: macos-12 + strategy: + matrix: + cfg: + - {target: osx, opt: "xcode"} + - {target: osx, opt: "makefiles"} + env: + TARGET: ${{matrix.cfg.target}} + OPT: ${{matrix.cfg.opt}} + steps: + - uses: actions/checkout@v3 + - name: Cache compile + id: cache-compile + uses: actions/cache@v3 + env: + cache-name: cache-keep-compile + with: + path: | + libs/openFrameworksCompiled/lib/osx/*.a + libs/openFrameworksCompiled/lib/osx/**/ + addons/obj/osx/**/ + scripts/templates/osx/build/**/ + + key: ${{ runner.os }}-${{matrix.cfg.opt}}-${{ env.cache-name }}-${{ hashFiles('**/*.cpp') }} + restore-keys: | + ${{ runner.os }}-${{matrix.cfg.opt}}-${{ env.cache-name }}- + + + - name: Cache libs + id: cache-libs + uses: actions/cache@v3 + env: + cache-name: cache-install-libs + with: + path: | + libs/boost/** + libs/cairo/** + libs/curl/** + libs/fmod/** + libs/FreeImage/** + libs/freetype/** + libs/glew/** + libs/glfw/** + libs/glm/** + libs/json/** + libs/pugixml/** + libs/rtAudio/** + libs/tess2/** + libs/uriparser/** + libs/utf8/** + addons/ofxAssimpModelLoader/libs/**/ + addons/ofxKinect/libs/**/ + addons/ofxOpenCv/libs/**/ + addons/ofxSvg/libs/**/ + addons/ofxPoco/libs/**/ + + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('scripts/apothecary/apothecary/formulas/**/*.sh') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + - if: ${{ steps.cache-libs.outputs.cache-hit != 'true' }} + # name: Download libs + # continue-on-error: true + run: ./scripts/$TARGET/download_libs.sh + - name: rm-dev + run: sudo rm -rf /Library/Developer + + # this step is not needed here because the script is empty + # - name: install + # run: ./scripts/ci/$TARGET/install.sh + + - name: Build + run: + if [ "$TARGET" = "osx" ] && [ "$OPT" = "xcode" ]; then + scripts/ci/$TARGET/build.sh $OPT; + else + scripts/ci/$TARGET/run_tests.sh; + fi + env: + DEVELOPER_DIR: "/Applications/Xcode_13.4.1.app/Contents/Developer" + SDKROOT: "/Applications/Xcode_13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" + diff --git a/.github/workflows/build-msys2.yml b/.github/workflows/build-msys2.yml new file mode 100644 index 00000000000..0eac3d372aa --- /dev/null +++ b/.github/workflows/build-msys2.yml @@ -0,0 +1,47 @@ +name: build-msys2 + +# make the action not run on the local repo if the branch is also in a pull request to OF/OF +on: + push: + if: github.event_name == 'push' && github.event.pull_request == null + paths-ignore: + - '**/*.md' + - 'examples/**' + pull_request: + if: github.event_name == 'pull_request' && github.repository == 'openframeworks/openFrameworks' + paths-ignore: + - '**/*.md' + - 'examples/**' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-msys2: + runs-on: windows-latest + strategy: + matrix: + msystem: + - mingw64 + # - ucrt64 + defaults: + run: + shell: msys2 {0} + steps: + - uses: actions/checkout@v3 + - uses: msys2/setup-msys2@v2 + with: + update: true + msystem: ${{matrix.msystem}} + install: >- + git + unzip + rsync + wget + - name: Install dependencies + run: ./scripts/ci/msys2/install.sh + - name: Build + run: ./scripts/ci/msys2/build.sh + - name: Run tests + run: ./scripts/ci/msys2/run_tests.sh diff --git a/.github/workflows/build-vs.yml b/.github/workflows/build-vs.yml new file mode 100644 index 00000000000..59e5dab75ba --- /dev/null +++ b/.github/workflows/build-vs.yml @@ -0,0 +1,54 @@ +name: build-vs + +# make the action not run on the local repo if the branch is also in a pull request to OF/OF +on: + push: + if: github.event_name == 'push' && github.event.pull_request == null + paths-ignore: + - '**/*.md' + - 'examples/**' + pull_request: + if: github.event_name == 'pull_request' && github.repository == 'openframeworks/openFrameworks' + paths-ignore: + - '**/*.md' + - 'examples/**' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-vs2019: + runs-on: windows-2019 + strategy: + matrix: + include: + - platform: x64 + bits: 64 + env: + BITS: ${{ matrix.bits }} + steps: + - name: Clone repository + uses: actions/checkout@v3 + - uses: msys2/setup-msys2@v2 + with: + update: true + install: >- + git + unzip + rsync + wget + - name: Install dependencies + shell: msys2 {0} + run: + ./scripts/ci/vs/install.sh + - name: Setup MSBuild + uses: microsoft/setup-msbuild@v1.1 + - name: Build emptyExample + working-directory: ${{env.GITHUB_WORKSPACE}} + run: + msbuild examples/templates/emptyExample/emptyExample.vcxproj /p:configuration=release /p:platform=${{ matrix.platform }} /p:PlatformToolset=v142 + - name: Build allAddonsExample + working-directory: ${{env.GITHUB_WORKSPACE}} + run: + msbuild examples/templates/allAddonsExample/allAddonsExample.vcxproj /p:configuration=release /p:platform=${{ matrix.platform }} /p:PlatformToolset=v142 diff --git a/.github/workflows/manual-nightly.yml b/.github/workflows/manual-nightly.yml new file mode 100644 index 00000000000..13768055608 --- /dev/null +++ b/.github/workflows/manual-nightly.yml @@ -0,0 +1,32 @@ +name: manual-nightly + +on: workflow_dispatch +jobs: + manual-nightly: + runs-on: ubuntu-22.04 + strategy: + matrix: + cfg: + - {target: linux64, libs: 64gcc6} + env: + TARGET: ${{matrix.cfg.target}} + steps: + - uses: actions/checkout@v3 + - name: Install libunwind + run: sudo apt-get install libunwind-dev + - name: Install dependencies + run: sudo ./scripts/linux/ubuntu/install_dependencies.sh -y; + - name: Download libs + run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}}; + - name: Create Package + run: scripts/ci/package_builds.sh; + id: createpackage + - name: Update Release + uses: IsaacShelton/update-existing-release@v1.3.2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + tag: nightly + release: nightly + prerelease: false + replace: true + files: ${{ steps.createpackage.outputs.FILES_OUT }} From 25326d5915da2bc6e5b5107865bd9d79466d6081 Mon Sep 17 00:00:00 2001 From: ofTheo Date: Wed, 23 Aug 2023 14:52:34 -0700 Subject: [PATCH 6/6] remove dups --- .github/build-emscripten.yml | 42 ------------- .github/build-ios-tvos.yml | 42 ------------- .github/build-linux-nightly.yml | 35 ----------- .github/build-linux.yml | 51 ---------------- .github/build-macos.yml | 102 -------------------------------- .github/build-msys2.yml | 47 --------------- .github/build-vs.yml | 54 ----------------- .github/manual-nightly.yml | 32 ---------- 8 files changed, 405 deletions(-) delete mode 100644 .github/build-emscripten.yml delete mode 100644 .github/build-ios-tvos.yml delete mode 100644 .github/build-linux-nightly.yml delete mode 100644 .github/build-linux.yml delete mode 100644 .github/build-macos.yml delete mode 100644 .github/build-msys2.yml delete mode 100644 .github/build-vs.yml delete mode 100644 .github/manual-nightly.yml diff --git a/.github/build-emscripten.yml b/.github/build-emscripten.yml deleted file mode 100644 index 584da536747..00000000000 --- a/.github/build-emscripten.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: build-emscripten - -# make the action not run on the local repo if the branch is also in a pull request to OF/OF -on: - push: - if: github.event_name == 'push' && github.event.pull_request == null - paths-ignore: - - '**/*.md' - - 'examples/**' - pull_request: - if: github.event_name == 'pull_request' && github.repository == 'openframeworks/openFrameworks' - paths-ignore: - - '**/*.md' - - 'examples/**' - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build-emscripten: - runs-on: ubuntu-20.04 - strategy: - matrix: - cfg: - - {target: emscripten} - env: - TARGET: ${{matrix.cfg.target}} - steps: - - uses: actions/checkout@v3 - - name: Docker Step - run: "docker run -di --name emscripten -v $PWD:/src emscripten/emsdk:3.1.21 bash" - - name: Download libs - run: ./scripts/$TARGET/download_libs.sh - - name: Install dependencies - run: ./scripts/ci/$TARGET/install.sh - - name: Build - run: docker exec -i emscripten sh -c "scripts/ci/$TARGET/build.sh"; - - name: Upload Libs - run: scripts/ci/upload_of_lib.sh; - env: - GA_CI_SECRET: ${{ secrets.CI_SECRET }} diff --git a/.github/build-ios-tvos.yml b/.github/build-ios-tvos.yml deleted file mode 100644 index d4850359111..00000000000 --- a/.github/build-ios-tvos.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: build-ios-tvos - - -# make the action not run on the local repo if the branch is also in a pull request to OF/OF -on: - push: - if: github.event_name == 'push' && github.event.pull_request == null - paths-ignore: - - '**/*.md' - - 'examples/**' - pull_request: - if: github.event_name == 'pull_request' && github.repository == 'openframeworks/openFrameworks' - paths-ignore: - - '**/*.md' - - 'examples/**' - - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build-osx: - runs-on: macos-12 - strategy: - matrix: - cfg: - - {target: ios, libs: ios} - #- {target: tvos, libs: ios} #broken currently maybe better to just remove - env: - TARGET: ${{matrix.cfg.target}} - steps: - - uses: actions/checkout@v3 - - name: Download libs - run: ./scripts/${{matrix.cfg.libs}}/download_libs.sh - - name: install - run: ./scripts/ci/$TARGET/install.sh - - name: Build - run: ./scripts/ci/$TARGET/build.sh; - - env: - DEVELOPER_DIR: "/Applications/Xcode_13.4.1.app/Contents/Developer" diff --git a/.github/build-linux-nightly.yml b/.github/build-linux-nightly.yml deleted file mode 100644 index dc25e736adc..00000000000 --- a/.github/build-linux-nightly.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: nightly-linux64 - -on: - schedule: - - cron: "0 6 * * *" -jobs: - build-linux-platforms: - runs-on: ubuntu-22.04 - if: github.repository == 'openframeworks/openFrameworks' && github.ref == 'refs/heads/master' - strategy: - matrix: - cfg: - - {target: linux64, libs: 64gcc6} - env: - TARGET: ${{matrix.cfg.target}} - steps: - - uses: actions/checkout@v3 - - name: Install libunwind - run: sudo apt-get install libunwind-dev - - name: Install dependencies - run: sudo ./scripts/linux/ubuntu/install_dependencies.sh -y; - - name: Download libs - run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}}; - - name: Create Package - run: scripts/ci/package_builds.sh; - id: createpackage - - name: Update Release - uses: IsaacShelton/update-existing-release@v1.3.2 - with: - token: ${{ secrets.GITHUB_TOKEN }} - tag: nightly - release: nightly - prerelease: false - replace: true - files: ${{ steps.createpackage.outputs.FILES_OUT }} diff --git a/.github/build-linux.yml b/.github/build-linux.yml deleted file mode 100644 index b76df373676..00000000000 --- a/.github/build-linux.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: build-linux64 - -# make the action not run on the local repo if the branch is also in a pull request to OF/OF -on: - push: - if: github.event_name == 'push' && github.event.pull_request == null - paths-ignore: - - '**/*.md' - - 'examples/**' - pull_request: - if: github.event_name == 'pull_request' && github.repository == 'openframeworks/openFrameworks' - paths-ignore: - - '**/*.md' - - 'examples/**' - - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build-linux-platforms: - runs-on: ubuntu-latest - strategy: - matrix: - cfg: - - {target: linux64, libs: 64gcc6} - env: - TARGET: ${{matrix.cfg.target}} - steps: - - uses: actions/checkout@v3 - - name: Download libs - run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}}; - - name: Remove Old lib-unwind - run: if [ "$TARGET" = "linux64" ]; then - sudo apt-get remove libunwind-14 -y; - fi - - name: Install dependencies - run: ./scripts/ci/$TARGET/install.sh; - - name: Build - run: if [ "$TARGET" = "linux64" ]; then - scripts/ci/$TARGET/build.sh; - scripts/ci/$TARGET/run_tests.sh; - else - scripts/ci/$TARGET/build.sh; - fi - - name: Upload Libs - run: scripts/ci/upload_of_lib.sh; - env: - GA_CI_SECRET: ${{ secrets.CI_SECRET }} - diff --git a/.github/build-macos.yml b/.github/build-macos.yml deleted file mode 100644 index 36cbd731ec1..00000000000 --- a/.github/build-macos.yml +++ /dev/null @@ -1,102 +0,0 @@ -name: build-macos - -# make the action not run on the local repo if the branch is also in a pull request to OF/OF -on: - push: - if: github.event_name == 'push' && github.event.pull_request == null - paths-ignore: - - '**/*.md' - - 'examples/**' - pull_request: - if: github.event_name == 'pull_request' && github.repository == 'openframeworks/openFrameworks' - paths-ignore: - - '**/*.md' - - 'examples/**' - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build-osx: - runs-on: macos-12 - strategy: - matrix: - cfg: - - {target: osx, opt: "xcode"} - - {target: osx, opt: "makefiles"} - env: - TARGET: ${{matrix.cfg.target}} - OPT: ${{matrix.cfg.opt}} - steps: - - uses: actions/checkout@v3 - - name: Cache compile - id: cache-compile - uses: actions/cache@v3 - env: - cache-name: cache-keep-compile - with: - path: | - libs/openFrameworksCompiled/lib/osx/*.a - libs/openFrameworksCompiled/lib/osx/**/ - addons/obj/osx/**/ - scripts/templates/osx/build/**/ - - key: ${{ runner.os }}-${{matrix.cfg.opt}}-${{ env.cache-name }}-${{ hashFiles('**/*.cpp') }} - restore-keys: | - ${{ runner.os }}-${{matrix.cfg.opt}}-${{ env.cache-name }}- - - - - name: Cache libs - id: cache-libs - uses: actions/cache@v3 - env: - cache-name: cache-install-libs - with: - path: | - libs/boost/** - libs/cairo/** - libs/curl/** - libs/fmod/** - libs/FreeImage/** - libs/freetype/** - libs/glew/** - libs/glfw/** - libs/glm/** - libs/json/** - libs/pugixml/** - libs/rtAudio/** - libs/tess2/** - libs/uriparser/** - libs/utf8/** - addons/ofxAssimpModelLoader/libs/**/ - addons/ofxKinect/libs/**/ - addons/ofxOpenCv/libs/**/ - addons/ofxSvg/libs/**/ - addons/ofxPoco/libs/**/ - - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('scripts/apothecary/apothecary/formulas/**/*.sh') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - - if: ${{ steps.cache-libs.outputs.cache-hit != 'true' }} - # name: Download libs - # continue-on-error: true - run: ./scripts/$TARGET/download_libs.sh - - name: rm-dev - run: sudo rm -rf /Library/Developer - - # this step is not needed here because the script is empty - # - name: install - # run: ./scripts/ci/$TARGET/install.sh - - - name: Build - run: - if [ "$TARGET" = "osx" ] && [ "$OPT" = "xcode" ]; then - scripts/ci/$TARGET/build.sh $OPT; - else - scripts/ci/$TARGET/run_tests.sh; - fi - env: - DEVELOPER_DIR: "/Applications/Xcode_13.4.1.app/Contents/Developer" - SDKROOT: "/Applications/Xcode_13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" - diff --git a/.github/build-msys2.yml b/.github/build-msys2.yml deleted file mode 100644 index 0eac3d372aa..00000000000 --- a/.github/build-msys2.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: build-msys2 - -# make the action not run on the local repo if the branch is also in a pull request to OF/OF -on: - push: - if: github.event_name == 'push' && github.event.pull_request == null - paths-ignore: - - '**/*.md' - - 'examples/**' - pull_request: - if: github.event_name == 'pull_request' && github.repository == 'openframeworks/openFrameworks' - paths-ignore: - - '**/*.md' - - 'examples/**' - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build-msys2: - runs-on: windows-latest - strategy: - matrix: - msystem: - - mingw64 - # - ucrt64 - defaults: - run: - shell: msys2 {0} - steps: - - uses: actions/checkout@v3 - - uses: msys2/setup-msys2@v2 - with: - update: true - msystem: ${{matrix.msystem}} - install: >- - git - unzip - rsync - wget - - name: Install dependencies - run: ./scripts/ci/msys2/install.sh - - name: Build - run: ./scripts/ci/msys2/build.sh - - name: Run tests - run: ./scripts/ci/msys2/run_tests.sh diff --git a/.github/build-vs.yml b/.github/build-vs.yml deleted file mode 100644 index 59e5dab75ba..00000000000 --- a/.github/build-vs.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: build-vs - -# make the action not run on the local repo if the branch is also in a pull request to OF/OF -on: - push: - if: github.event_name == 'push' && github.event.pull_request == null - paths-ignore: - - '**/*.md' - - 'examples/**' - pull_request: - if: github.event_name == 'pull_request' && github.repository == 'openframeworks/openFrameworks' - paths-ignore: - - '**/*.md' - - 'examples/**' - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build-vs2019: - runs-on: windows-2019 - strategy: - matrix: - include: - - platform: x64 - bits: 64 - env: - BITS: ${{ matrix.bits }} - steps: - - name: Clone repository - uses: actions/checkout@v3 - - uses: msys2/setup-msys2@v2 - with: - update: true - install: >- - git - unzip - rsync - wget - - name: Install dependencies - shell: msys2 {0} - run: - ./scripts/ci/vs/install.sh - - name: Setup MSBuild - uses: microsoft/setup-msbuild@v1.1 - - name: Build emptyExample - working-directory: ${{env.GITHUB_WORKSPACE}} - run: - msbuild examples/templates/emptyExample/emptyExample.vcxproj /p:configuration=release /p:platform=${{ matrix.platform }} /p:PlatformToolset=v142 - - name: Build allAddonsExample - working-directory: ${{env.GITHUB_WORKSPACE}} - run: - msbuild examples/templates/allAddonsExample/allAddonsExample.vcxproj /p:configuration=release /p:platform=${{ matrix.platform }} /p:PlatformToolset=v142 diff --git a/.github/manual-nightly.yml b/.github/manual-nightly.yml deleted file mode 100644 index 13768055608..00000000000 --- a/.github/manual-nightly.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: manual-nightly - -on: workflow_dispatch -jobs: - manual-nightly: - runs-on: ubuntu-22.04 - strategy: - matrix: - cfg: - - {target: linux64, libs: 64gcc6} - env: - TARGET: ${{matrix.cfg.target}} - steps: - - uses: actions/checkout@v3 - - name: Install libunwind - run: sudo apt-get install libunwind-dev - - name: Install dependencies - run: sudo ./scripts/linux/ubuntu/install_dependencies.sh -y; - - name: Download libs - run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}}; - - name: Create Package - run: scripts/ci/package_builds.sh; - id: createpackage - - name: Update Release - uses: IsaacShelton/update-existing-release@v1.3.2 - with: - token: ${{ secrets.GITHUB_TOKEN }} - tag: nightly - release: nightly - prerelease: false - replace: true - files: ${{ steps.createpackage.outputs.FILES_OUT }}