| 1 | name: "Continuous build (Linux)" |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - '*' |
| 7 | tags-ignore: |
| 8 | - 'continuous*' |
| 9 | |
| 10 | jobs: |
| 11 | build: |
| 12 | strategy: |
| 13 | matrix: |
| 14 | include: |
| 15 | - os: ubuntu-22.04 |
| 16 | arch: x86_64 |
| 17 | host: x86_64-linux-gnu |
| 18 | pkgarch: amd64 |
| 19 | dependencies: g++-multilib meson nasm wget wine64-tools yasm |
| 20 | |
| 21 | - os: ubuntu-22.04 |
| 22 | arch: i686 |
| 23 | host: i386-linux-gnu |
| 24 | pkgarch: i386 |
| 25 | dependencies: g++-multilib meson nasm wget wine32-tools yasm |
| 26 | |
| 27 | - os: ubuntu-22.04 |
| 28 | arch: armhf |
| 29 | host: arm-linux-gnueabihf |
| 30 | pkgarch: armhf |
| 31 | dependencies: g++-arm-linux-gnueabihf meson nasm qemu qemu-user-static wget yasm |
| 32 | |
| 33 | - os: ubuntu-22.04 |
| 34 | arch: aarch64 |
| 35 | host: aarch64-linux-gnu |
| 36 | pkgarch: arm64 |
| 37 | dependencies: g++-aarch64-linux-gnu meson nasm qemu qemu-user-static wget yasm |
| 38 | |
| 39 | - os: ubuntu-22.04 |
| 40 | arch: riscv64 |
| 41 | host: riscv64-linux-gnu |
| 42 | pkgarch: riscv64 |
| 43 | dependencies: g++-riscv64-linux-gnu meson nasm qemu qemu-user-static wget yasm |
| 44 | |
| 45 | - os: ubuntu-22.04 |
| 46 | arch: ppc64el |
| 47 | host: powerpc64le-linux-gnu |
| 48 | pkgarch: ppc64el |
| 49 | dependencies: g++-powerpc64le-linux-gnu meson nasm qemu qemu-user-static wget yasm |
| 50 | |
| 51 | fail-fast: false |
| 52 | |
| 53 | runs-on: ${{ matrix.os }} |
| 54 | |
| 55 | steps: |
| 56 | - name: Add architectures |
| 57 | run: | |
| 58 | if [ ${{ matrix.arch }} = x86_64 ]; then |
| 59 | sudo dpkg --add-architecture i386 |
| 60 | else |
| 61 | sudo dpkg --add-architecture ${{ matrix.pkgarch }} |
| 62 | fi |
| 63 | |
| 64 | - name: Prepare sources |
| 65 | if: ${{ matrix.arch != 'i686' && matrix.arch != 'x86_64' }} |
| 66 | run: | |
| 67 | echo "deb [arch=${{ matrix.pkgarch }}] http://ports.ubuntu.com/ubuntu-ports jammy main restricted" | sudo tee --append /etc/apt/sources.list > /dev/null |
| 68 | echo "deb [arch=${{ matrix.pkgarch }}] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted" | sudo tee --append /etc/apt/sources.list > /dev/null |
| 69 | echo "deb [arch=${{ matrix.pkgarch }}] http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted" | sudo tee --append /etc/apt/sources.list > /dev/null |
| 70 | sudo sed -i 's/deb http/deb \[arch=amd64,i386\] http/g' /etc/apt/sources.list |
| 71 | sudo sed -i 's/deb mirror/deb \[arch=amd64,i386\] mirror/g' /etc/apt/sources.list |
| 72 | |
| 73 | - name: Install dependencies |
| 74 | run: | |
| 75 | sudo apt update |
| 76 | sudo apt install -y ${{ matrix.dependencies }} |
| 77 | sudo apt install -y adwaita-icon-theme gnome-icon-theme libasound2-dev:${{ matrix.pkgarch }} libgdk-pixbuf2.0-dev:${{ matrix.pkgarch }} libgtk-3-dev:${{ matrix.pkgarch }} liblzma-dev:${{ matrix.pkgarch }} libncurses-dev:${{ matrix.pkgarch }} libpulse-dev:${{ matrix.pkgarch }} libssl-dev:${{ matrix.pkgarch }} libudev-dev:${{ matrix.pkgarch }} libzstd-dev:${{ matrix.pkgarch }} |
| 78 | |
| 79 | - name: Prepare toolchain |
| 80 | if: ${{ matrix.arch != 'i686' && matrix.arch != 'x86_64' }} |
| 81 | run: | |
| 82 | sudo rm -f /usr/bin/gcc /usr/bin/g++ /usr/bin/cpp /usr/bin/ld /usr/bin/strip |
| 83 | sudo ln -s ${{ matrix.host }}-gcc /usr/bin/gcc |
| 84 | sudo ln -s ${{ matrix.host }}-g++ /usr/bin/g++ |
| 85 | sudo ln -s ${{ matrix.host }}-cpp /usr/bin/cpp |
| 86 | sudo ln -s ${{ matrix.host }}-ld /usr/bin/ld |
| 87 | sudo ln -s ${{ matrix.host }}-strip /usr/bin/strip |
| 88 | |
| 89 | - name: Checkout repository |
| 90 | uses: actions/checkout@v6 |
| 91 | with: |
| 92 | submodules: recursive |
| 93 | |
| 94 | - name: Build AppImage |
| 95 | env: |
| 96 | AppImageArch: ${{ matrix.arch }} |
| 97 | RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} |
| 98 | run: | |
| 99 | .github/workflows/tools/build-appimage |