From adf6d539d6122fdc9124be157ab20d75ae2ff8ca Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 5 Dec 2023 10:48:50 +0100 Subject: [PATCH] try ci rework Signed-off-by: falkTX --- .github/workflows/bootstrap-deps.sh | 80 ++++++ .github/workflows/bootstrap.yml | 430 +++++++++++----------------- 2 files changed, 245 insertions(+), 265 deletions(-) create mode 100755 .github/workflows/bootstrap-deps.sh diff --git a/.github/workflows/bootstrap-deps.sh b/.github/workflows/bootstrap-deps.sh new file mode 100755 index 0000000..0ad73e4 --- /dev/null +++ b/.github/workflows/bootstrap-deps.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +set -e + +if [ x"${1}" = x"" ]; then + echo "usage: $0 " + exit 1 +fi + +EMSCRIPTEN_VERSION=${EMSCRIPTEN_VERSION:=latest} + +function get_linux_deb_arch() { + case "${1}" in + "linux-aarch64") echo "arm64" ;; + "linux-armhf") echo "armhf" ;; + "linux-i686") echo "i386" ;; + "linux-riscv64") echo "riscv64" ;; + "linux-x86_64") echo "amd64" ;; + "win32"|"win64") echo "i386" ;; + esac +} + +function install_compiler() { + case "${1}" in + "linux-aarch64") + apt-get install -yqq g++-aarch64-linux-gnu + ;; + "linux-armhf") + apt-get install -yqq g++-arm-linux-gnueabihf + ;; + "linux-i686") + apt-get install -yqq g++-i686-linux-gnu + ;; + "linux-riscv64") + apt-get install -yqq g++-riscv64-linux-gnu + ;; + "linux-x86_64") + # FIXME this assumes build runner is x86_64 + apt-get install -yqq g++ + ;; + "wasm") + [ -e ~/PawPawBuilds/emsdk ] || git clone https://github.com/emscripten-core/emsdk.git ~/PawPawBuilds/emsdk + cd ~/PawPawBuilds/emsdk && ./emsdk install ${EMSCRIPTEN_VERSION} && ./emsdk activate ${EMSCRIPTEN_VERSION} + ;; + "win32") + apt-get install -yqq binutils-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64 wine-stable + ;; + "win64") + apt-get install -yqq binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 wine-stable + ;; + esac +} + +case "${1}" in + "macos"|"macos-universal"|"macos-universal-10.15") + brew install cmake git jq meson + ;; + *) + sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list + sed -i "s/deb mirror/deb [arch=amd64] mirror/" /etc/apt/sources.list + apt-get update -qq + apt-get install -yqq autoconf automake autopoint binfmt-support build-essential curl cmake git jq lsb-release meson gperf qemu-user-static + + arch=$(get_linux_deb_arch "${1}") + release=$(lsb_release -cs) + + if [ -n "${arch}" ]; then + dpkg --add-architecture ${arch} + if [ "${arch}" != "amd64" ] && [ "${arch}" != "i386" ]; then + echo "deb [arch=${arch}] http://ports.ubuntu.com/ubuntu-ports ${release} main restricted universe multiverse" | tee -a /etc/apt/sources.list + echo "deb [arch=${arch}] http://ports.ubuntu.com/ubuntu-ports ${release}-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list + echo "deb [arch=${arch}] http://ports.ubuntu.com/ubuntu-ports ${release}-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list + fi + apt-get update -qq + apt-get install -y libasound2-dev:${arch} libdbus-1-dev:${arch} libgl1-mesa-dev:${arch} libglib2.0-dev:${arch} liblo-dev:${arch} libx11-dev:${arch} libxcursor-dev:${arch} libxext-dev:${arch} libxrandr-dev:${arch} + fi + + install_compiler "${1}" + ;; +esac diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml index ec9bbf1..32fe54d 100644 --- a/.github/workflows/bootstrap.yml +++ b/.github/workflows/bootstrap.yml @@ -14,58 +14,36 @@ jobs: strategy: matrix: include: - - name: linux-aarch64 - installer: apt + - target: linux-aarch64 os: ubuntu-latest container: ubuntu:22.04 - target: linux-aarch64 - - name: linux-armhf - installer: apt + - target: linux-armhf os: ubuntu-latest container: ubuntu:22.04 - target: linux-armhf - - name: linux-i686 - installer: apt + - target: linux-i686 os: ubuntu-latest container: ubuntu:22.04 - target: linux-i686 - - name: linux-riscv64 - installer: apt + - target: linux-riscv64 os: ubuntu-latest container: ubuntu:22.04 - target: linux-riscv64 - - name: linux-x86_64 - installer: apt + - target: linux-x86_64 os: ubuntu-latest container: ubuntu:22.04 - target: linux-x86_64 - - name: macos - installer: homebrew + - target: macos os: macos-11 - target: macos - - name: macos-universal - installer: homebrew + - target: macos-universal os: macos-11 - target: macos-universal - - name: macos-universal-10.15 - installer: homebrew + - target: macos-universal-10.15 os: macos-11 - target: macos-universal-10.15 - - name: wasm - installer: apt + - target: wasm os: ubuntu-latest container: ubuntu:22.04 - target: wasm - - name: win32 - installer: apt + - target: win32 os: ubuntu-latest container: ubuntu:22.04 - target: win32 - - name: win64 - installer: apt + - target: win64 os: ubuntu-latest container: ubuntu:22.04 - target: win64 runs-on: ${{ matrix.os }} container: image: ${{ matrix.container }} @@ -77,76 +55,9 @@ jobs: path: | ~/PawPawBuilds key: common-${{ matrix.target }}-v${{ env.CACHE_VERSION }} - - name: Set up dependencies (apt-get) - if: ${{ matrix.installer == 'apt' }} + - name: Set up dependencies run: | - apt-get update -qq - apt-get install -yqq autoconf automake autopoint binfmt-support build-essential curl cmake git jq meson gperf qemu-user-static - - name: Set up dependencies (homebrew) - if: ${{ matrix.installer == 'homebrew' }} - run: | - brew install cmake git jq meson - - name: Set up dependencies (linux-aarch64) - if: ${{ matrix.target == 'linux-aarch64' }} - run: | - dpkg --add-architecture arm64 - sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list - sed -i "s/deb mirror/deb [arch=amd64] mirror/" /etc/apt/sources.list - echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse" | tee /etc/apt/sources.list.d/ports-arm64.list - echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-arm64.list - echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-arm64.list - apt-get update -qq - apt-get install -yqq g++-aarch64-linux-gnu libasound2-dev:arm64 libdbus-1-dev:arm64 libgcc-s1:arm64 libgl1-mesa-dev:arm64 libglib2.0-dev:arm64 liblo-dev:arm64 libx11-dev:arm64 libxcursor-dev:arm64 libxext-dev:arm64 libxrandr-dev:arm64 - - name: Set up dependencies (linux-armhf) - if: ${{ matrix.target == 'linux-armhf' }} - run: | - dpkg --add-architecture armhf - sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list - sed -i "s/deb mirror/deb [arch=amd64] mirror/" /etc/apt/sources.list - echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse" | tee /etc/apt/sources.list.d/ports-armhf.list - echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-armhf.list - echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-armhf.list - apt-get update -qq - apt-get install -y g++-arm-linux-gnueabihf libasound2-dev:armhf libdbus-1-dev:armhf libgl1-mesa-dev:armhf libglib2.0-dev:armhf liblo-dev:armhf libx11-dev:armhf libxcursor-dev:armhf libxext-dev:armhf libxrandr-dev:armhf - - name: Set up dependencies (linux-i686) - if: ${{ matrix.target == 'linux-i686' }} - run: | - dpkg --add-architecture i386 - apt-get update -qq - apt-get install -yqq g++-i686-linux-gnu libasound2-dev:i386 libdbus-1-dev:i386 libgl1-mesa-dev:i386 libglib2.0-dev:i386 libsdl2-dev:i386 libx11-dev:i386 libxcursor-dev:i386 libxext-dev:i386 libxrandr-dev:i386 - - name: Set up dependencies (linux-riscv64) - if: ${{ matrix.target == 'linux-riscv64' }} - run: | - dpkg --add-architecture riscv64 - sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list - sed -i "s/deb mirror/deb [arch=amd64] mirror/" /etc/apt/sources.list - echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse" | tee /etc/apt/sources.list.d/ports-riscv64.list - echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-riscv64.list - echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-riscv64.list - apt-get update -qq - apt-get install -yqq g++-riscv64-linux-gnu libasound2-dev:riscv64 libdbus-1-dev:riscv64 libgl1-mesa-dev:riscv64 libglib2.0-dev:riscv64 libsdl2-dev:riscv64 libx11-dev:riscv64 libxcursor-dev:riscv64 libxext-dev:riscv64 libxrandr-dev:riscv64 - - name: Set up dependencies (linux-x86_64) - if: ${{ matrix.target == 'linux-x86_64' }} - run: | - apt-get install -yqq libasound2-dev libdbus-1-dev libgl1-mesa-dev libglib2.0-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev - - name: Set up dependencies (wasm) - if: ${{ matrix.target == 'wasm' }} - run: | - apt-get install -yqq autoconf automake git - [ -e ~/PawPawBuilds/emsdk ] || git clone https://github.com/emscripten-core/emsdk.git ~/PawPawBuilds/emsdk - cd ~/PawPawBuilds/emsdk && ./emsdk install ${{ env.EMSCRIPTEN_VERSION }} && ./emsdk activate ${{ env.EMSCRIPTEN_VERSION }} - - name: Set up dependencies (linux-aarch64) - if: ${{ matrix.target == 'win32' }} - run: | - dpkg --add-architecture i386 - apt-get update -qq - apt-get install -yqq binutils-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64 wine-stable - - name: Set up dependencies (win64) - if: ${{ matrix.target == 'win64' }} - run: | - dpkg --add-architecture i386 - apt-get update -qq - apt-get install -yqq binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 wine-stable + ./.github/workflows/bootstrap-deps.sh ${{ matrix.target }} - name: Run bootstrap shell: bash run: | @@ -163,169 +74,158 @@ jobs: name: common-${{ matrix.target }} path: common-${{ matrix.target }}.tar.gz - plugins: - strategy: - matrix: - include: - - name: linux-aarch64 - installer: apt - os: ubuntu-latest - container: ubuntu:22.04 - target: linux-aarch64 - - name: linux-armhf - installer: apt - os: ubuntu-latest - container: ubuntu:22.04 - target: linux-armhf - - name: linux-i686 - installer: apt - os: ubuntu-latest - container: ubuntu:22.04 - target: linux-i686 - - name: linux-riscv64 - installer: apt - os: ubuntu-latest - container: ubuntu:22.04 - target: linux-riscv64 - - name: linux-x86_64 - installer: apt - os: ubuntu-latest - container: ubuntu:22.04 - target: linux-x86_64 - - name: macos - installer: homebrew - os: macos-11 - target: macos - - name: macos-universal - installer: homebrew - os: macos-11 - target: macos-universal - - name: macos-universal-10.15 - installer: homebrew - os: macos-11 - target: macos-universal-10.15 - - name: wasm - installer: apt - os: ubuntu-latest - container: ubuntu:22.04 - target: wasm - - name: win32 - installer: apt - os: ubuntu-latest - container: ubuntu:22.04 - target: win32 - - name: win64 - installer: apt - os: ubuntu-latest - container: ubuntu:22.04 - target: win64 - runs-on: ${{ matrix.os }} - container: - image: ${{ matrix.container }} - needs: common - steps: - - uses: actions/checkout@v3 - - name: Set up cache - uses: actions/cache@v3 - with: - path: | - ~/PawPawBuilds - key: plugins-${{ matrix.target }}-v${{ env.CACHE_VERSION }} - - name: Set up dependencies (apt-get) - if: ${{ matrix.installer == 'apt' }} - run: | - apt-get update -qq - apt-get install -yqq autoconf automake autopoint binfmt-support build-essential curl cmake git jq meson gperf qemu-user-static - - name: Set up dependencies (homebrew) - if: ${{ matrix.installer == 'homebrew' }} - run: | - brew install cmake git jq meson - - name: Set up dependencies (linux-aarch64) - if: ${{ matrix.target == 'linux-aarch64' }} - run: | - dpkg --add-architecture arm64 - sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list - sed -i "s/deb mirror/deb [arch=amd64] mirror/" /etc/apt/sources.list - echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse" | tee /etc/apt/sources.list.d/ports-arm64.list - echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-arm64.list - echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-arm64.list - apt-get update -qq - apt-get install -yqq g++-aarch64-linux-gnu libasound2-dev:arm64 libdbus-1-dev:arm64 libgcc-s1:arm64 libgl1-mesa-dev:arm64 libglib2.0-dev:arm64 liblo-dev:arm64 libx11-dev:arm64 libxcursor-dev:arm64 libxext-dev:arm64 libxrandr-dev:arm64 - - name: Set up dependencies (linux-armhf) - if: ${{ matrix.target == 'linux-armhf' }} - run: | - dpkg --add-architecture armhf - sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list - sed -i "s/deb mirror/deb [arch=amd64] mirror/" /etc/apt/sources.list - echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse" | tee /etc/apt/sources.list.d/ports-armhf.list - echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-armhf.list - echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-armhf.list - apt-get update -qq - apt-get install -y g++-arm-linux-gnueabihf libasound2-dev:armhf libdbus-1-dev:armhf libgl1-mesa-dev:armhf libglib2.0-dev:armhf liblo-dev:armhf libx11-dev:armhf libxcursor-dev:armhf libxext-dev:armhf libxrandr-dev:armhf - - name: Set up dependencies (linux-i686) - if: ${{ matrix.target == 'linux-i686' }} - run: | - dpkg --add-architecture i386 - apt-get update -qq - apt-get install -yqq g++-i686-linux-gnu libasound2-dev:i386 libdbus-1-dev:i386 libgl1-mesa-dev:i386 libglib2.0-dev:i386 libsdl2-dev:i386 libx11-dev:i386 libxcursor-dev:i386 libxext-dev:i386 libxrandr-dev:i386 - - name: Set up dependencies (linux-riscv64) - if: ${{ matrix.target == 'linux-riscv64' }} - run: | - dpkg --add-architecture riscv64 - sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list - sed -i "s/deb mirror/deb [arch=amd64] mirror/" /etc/apt/sources.list - echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse" | tee /etc/apt/sources.list.d/ports-riscv64.list - echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-riscv64.list - echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-riscv64.list - apt-get update -qq - apt-get install -yqq g++-riscv64-linux-gnu libasound2-dev:riscv64 libdbus-1-dev:riscv64 libgl1-mesa-dev:riscv64 libglib2.0-dev:riscv64 libsdl2-dev:riscv64 libx11-dev:riscv64 libxcursor-dev:riscv64 libxext-dev:riscv64 libxrandr-dev:riscv64 - - name: Set up dependencies (linux-x86_64) - if: ${{ matrix.target == 'linux-x86_64' }} - run: | - apt-get install -yqq libasound2-dev libdbus-1-dev libgl1-mesa-dev libglib2.0-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev - - name: Set up dependencies (wasm) - if: ${{ matrix.target == 'wasm' }} - run: | - apt-get install -yqq autoconf automake git - [ -e ~/PawPawBuilds/emsdk ] || git clone https://github.com/emscripten-core/emsdk.git ~/PawPawBuilds/emsdk - cd ~/PawPawBuilds/emsdk && ./emsdk install ${{ env.EMSCRIPTEN_VERSION }} && ./emsdk activate ${{ env.EMSCRIPTEN_VERSION }} - - name: Set up dependencies (linux-aarch64) - if: ${{ matrix.target == 'win32' }} - run: | - dpkg --add-architecture i386 - apt-get update -qq - apt-get install -yqq binutils-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64 wine-stable - - name: Set up dependencies (win64) - if: ${{ matrix.target == 'win64' }} - run: | - dpkg --add-architecture i386 - apt-get update -qq - apt-get install -yqq binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 wine-stable - - name: Download common-${{ matrix.target }} - uses: actions/download-artifact@v3 - with: - name: common-${{ matrix.target }} - path: ~/PawPawBuilds - - name: Extract common-${{ matrix.target }} - shell: bash - run: | - cd ~/PawPawBuilds && \ - tar xf common-${{ matrix.target }}.tar.gz - - name: Run bootstrap - shell: bash - run: | - if [ '${{ matrix.target }}' == 'wasm' ]; then \ - source ~/PawPawBuilds/emsdk/emsdk_env.sh; \ - fi - ./bootstrap-plugins.sh ${{ matrix.target }} && ./.cleanup.sh ${{ matrix.target }} - - name: Pack bootstrap build - shell: bash - run: | - tar -C ~/PawPawBuilds -czf plugins-${{ matrix.target }}.tar.gz builds targets - - uses: actions/upload-artifact@v3 - with: - name: plugins-${{ matrix.target }} - path: plugins-${{ matrix.target }}.tar.gz + #plugins: + #strategy: + #matrix: + #include: + #- name: linux-aarch64 + #os: ubuntu-latest + #container: ubuntu:22.04 + #target: linux-aarch64 + #- name: linux-armhf + #os: ubuntu-latest + #container: ubuntu:22.04 + #target: linux-armhf + #- name: linux-i686 + #os: ubuntu-latest + #container: ubuntu:22.04 + #target: linux-i686 + #- name: linux-riscv64 + #os: ubuntu-latest + #container: ubuntu:22.04 + #target: linux-riscv64 + #- name: linux-x86_64 + #os: ubuntu-latest + #container: ubuntu:22.04 + #target: linux-x86_64 + #- name: macos + #os: macos-11 + #target: macos + #- name: macos-universal + #os: macos-11 + #target: macos-universal + #- name: macos-universal-10.15 + #os: macos-11 + #target: macos-universal-10.15 + #- name: wasm + #os: ubuntu-latest + #container: ubuntu:22.04 + #target: wasm + #- name: win32 + #os: ubuntu-latest + #container: ubuntu:22.04 + #target: win32 + #- name: win64 + #os: ubuntu-latest + #container: ubuntu:22.04 + #target: win64 + #runs-on: ${{ matrix.os }} + #container: + #image: ${{ matrix.container }} + #needs: common + #steps: + #- uses: actions/checkout@v3 + #- name: Set up cache + #uses: actions/cache@v3 + #with: + #path: | + #~/PawPawBuilds + #key: plugins-${{ matrix.target }}-v${{ env.CACHE_VERSION }} + #- name: Set up dependencies (apt-get) + #if: ${{ matrix.installer == 'apt' }} + #run: | + #apt-get update -qq + #apt-get install -yqq autoconf automake autopoint binfmt-support build-essential curl cmake git jq meson gperf qemu-user-static + #- name: Set up dependencies (homebrew) + #if: ${{ matrix.installer == 'homebrew' }} + #run: | + #brew install cmake git jq meson + #- name: Set up dependencies (linux-aarch64) + #if: ${{ matrix.target == 'linux-aarch64' }} + #run: | + #dpkg --add-architecture arm64 + #sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list + #sed -i "s/deb mirror/deb [arch=amd64] mirror/" /etc/apt/sources.list + #echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse" | tee /etc/apt/sources.list.d/ports-arm64.list + #echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-arm64.list + #echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-arm64.list + #apt-get update -qq + #apt-get install -yqq g++-aarch64-linux-gnu libasound2-dev:arm64 libdbus-1-dev:arm64 libgcc-s1:arm64 libgl1-mesa-dev:arm64 libglib2.0-dev:arm64 liblo-dev:arm64 libx11-dev:arm64 libxcursor-dev:arm64 libxext-dev:arm64 libxrandr-dev:arm64 + #- name: Set up dependencies (linux-armhf) + #if: ${{ matrix.target == 'linux-armhf' }} + #run: | + #dpkg --add-architecture armhf + #sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list + #sed -i "s/deb mirror/deb [arch=amd64] mirror/" /etc/apt/sources.list + #echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse" | tee /etc/apt/sources.list.d/ports-armhf.list + #echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-armhf.list + #echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-armhf.list + #apt-get update -qq + #apt-get install -y g++-arm-linux-gnueabihf libasound2-dev:armhf libdbus-1-dev:armhf libgl1-mesa-dev:armhf libglib2.0-dev:armhf liblo-dev:armhf libx11-dev:armhf libxcursor-dev:armhf libxext-dev:armhf libxrandr-dev:armhf + #- name: Set up dependencies (linux-i686) + #if: ${{ matrix.target == 'linux-i686' }} + #run: | + #dpkg --add-architecture i386 + #apt-get update -qq + #apt-get install -yqq g++-i686-linux-gnu libasound2-dev:i386 libdbus-1-dev:i386 libgl1-mesa-dev:i386 libglib2.0-dev:i386 libsdl2-dev:i386 libx11-dev:i386 libxcursor-dev:i386 libxext-dev:i386 libxrandr-dev:i386 + #- name: Set up dependencies (linux-riscv64) + #if: ${{ matrix.target == 'linux-riscv64' }} + #run: | + #dpkg --add-architecture riscv64 + #sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list + #sed -i "s/deb mirror/deb [arch=amd64] mirror/" /etc/apt/sources.list + #echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse" | tee /etc/apt/sources.list.d/ports-riscv64.list + #echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-riscv64.list + #echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list.d/ports-riscv64.list + #apt-get update -qq + #apt-get install -yqq g++-riscv64-linux-gnu libasound2-dev:riscv64 libdbus-1-dev:riscv64 libgl1-mesa-dev:riscv64 libglib2.0-dev:riscv64 libsdl2-dev:riscv64 libx11-dev:riscv64 libxcursor-dev:riscv64 libxext-dev:riscv64 libxrandr-dev:riscv64 + #- name: Set up dependencies (linux-x86_64) + #if: ${{ matrix.target == 'linux-x86_64' }} + #run: | + #apt-get install -yqq libasound2-dev libdbus-1-dev libgl1-mesa-dev libglib2.0-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev + #- name: Set up dependencies (wasm) + #if: ${{ matrix.target == 'wasm' }} + #run: | + #apt-get install -yqq autoconf automake git + #[ -e ~/PawPawBuilds/emsdk ] || git clone https://github.com/emscripten-core/emsdk.git ~/PawPawBuilds/emsdk + #cd ~/PawPawBuilds/emsdk && ./emsdk install ${{ env.EMSCRIPTEN_VERSION }} && ./emsdk activate ${{ env.EMSCRIPTEN_VERSION }} + #- name: Set up dependencies (linux-aarch64) + #if: ${{ matrix.target == 'win32' }} + #run: | + #dpkg --add-architecture i386 + #apt-get update -qq + #apt-get install -yqq binutils-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64 wine-stable + #- name: Set up dependencies (win64) + #if: ${{ matrix.target == 'win64' }} + #run: | + #dpkg --add-architecture i386 + #apt-get update -qq + #apt-get install -yqq binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 wine-stable + #- name: Download common-${{ matrix.target }} + #uses: actions/download-artifact@v3 + #with: + #name: common-${{ matrix.target }} + #path: ~/PawPawBuilds + #- name: Extract common-${{ matrix.target }} + #shell: bash + #run: | + #cd ~/PawPawBuilds && \ + #tar xf common-${{ matrix.target }}.tar.gz + #- name: Run bootstrap + #shell: bash + #run: | + #if [ '${{ matrix.target }}' == 'wasm' ]; then \ + #source ~/PawPawBuilds/emsdk/emsdk_env.sh; \ + #fi + #./bootstrap-plugins.sh ${{ matrix.target }} && ./.cleanup.sh ${{ matrix.target }} + #- name: Pack bootstrap build + #shell: bash + #run: | + #tar -C ~/PawPawBuilds -czf plugins-${{ matrix.target }}.tar.gz builds targets + #- uses: actions/upload-artifact@v3 + #with: + #name: plugins-${{ matrix.target }} + #path: plugins-${{ matrix.target }}.tar.gz #jack2: #strategy: