Update Snapcraft build configuration to use core24 base. #306
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Continuous build (Linux)" | |
on: | |
push: | |
branches: | |
- '*' | |
tags-ignore: | |
- 'continuous*' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-20.04 | |
arch: x86_64 | |
host: x86_64-linux-gnu | |
pkgarch: amd64 | |
dependencies: g++-multilib nasm wget wine64-tools yasm | |
- os: ubuntu-20.04 | |
arch: i686 | |
host: i386-linux-gnu | |
pkgarch: i386 | |
dependencies: g++-multilib nasm wget wine32-tools yasm | |
- os: ubuntu-20.04 | |
arch: armhf | |
host: arm-linux-gnueabihf | |
pkgarch: armhf | |
dependencies: g++-arm-linux-gnueabihf nasm qemu qemu-user-static wget yasm | |
- os: ubuntu-20.04 | |
arch: aarch64 | |
host: aarch64-linux-gnu | |
pkgarch: arm64 | |
dependencies: g++-aarch64-linux-gnu nasm qemu qemu-user-static wget yasm | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Add architectures | |
run: | | |
if [ ${{ matrix.arch }} = x86_64 ]; then | |
sudo dpkg --add-architecture i386 | |
else | |
sudo dpkg --add-architecture ${{ matrix.pkgarch }} | |
fi | |
- name: Prepare sources | |
if: ${{ matrix.arch != 'i686' && matrix.arch != 'x86_64' }} | |
run: | | |
echo "deb [arch=${{ matrix.pkgarch }}] http://ports.ubuntu.com/ubuntu-ports focal main restricted" | sudo tee --append /etc/apt/sources.list > /dev/null | |
echo "deb [arch=${{ matrix.pkgarch }}] http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted" | sudo tee --append /etc/apt/sources.list > /dev/null | |
echo "deb [arch=${{ matrix.pkgarch }}] http://ports.ubuntu.com/ubuntu-ports focal-security main restricted" | sudo tee --append /etc/apt/sources.list > /dev/null | |
sudo sed -i 's/deb http/deb \[arch=amd64,i386\] http/g' /etc/apt/sources.list | |
sudo sed -i 's/deb mirror/deb \[arch=amd64,i386\] mirror/g' /etc/apt/sources.list | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y --allow-downgrades libgd3=2.2.5-5.2ubuntu2.1 libodbc1=2.3.6-0.1build1 libpcre2-8-0=10.34-7ubuntu0.1 libpcre2-16-0=10.34-7ubuntu0.1 libpcre2-32-0=10.34-7ubuntu0.1 libpcre2-dev=10.34-7ubuntu0.1 | |
sudo apt install -y ${{ matrix.dependencies }} | |
sudo apt install -y adwaita-icon-theme gnome-icon-theme libasound2-dev:${{ matrix.pkgarch }} libfuse2:${{ matrix.pkgarch }} libgdk-pixbuf2.0-dev:${{ matrix.pkgarch }} libgtk-3-dev:${{ matrix.pkgarch }} libncurses-dev:${{ matrix.pkgarch }} libpulse-dev:${{ matrix.pkgarch }} libssl-dev:${{ matrix.pkgarch }} libudev-dev:${{ matrix.pkgarch }} | |
- name: Prepare toolchain | |
if: ${{ matrix.arch != 'i686' && matrix.arch != 'x86_64' }} | |
run: | | |
sudo rm -f /usr/bin/gcc /usr/bin/g++ /usr/bin/cpp /usr/bin/ld /usr/bin/strip | |
sudo ln -s ${{ matrix.host }}-gcc /usr/bin/gcc | |
sudo ln -s ${{ matrix.host }}-g++ /usr/bin/g++ | |
sudo ln -s ${{ matrix.host }}-cpp /usr/bin/cpp | |
sudo ln -s ${{ matrix.host }}-ld /usr/bin/ld | |
sudo ln -s ${{ matrix.host }}-strip /usr/bin/strip | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Checkout smooth | |
uses: actions/checkout@v4 | |
with: | |
repository: enzo1982/smooth | |
path: smooth | |
- name: Checkout BoCA | |
uses: actions/checkout@v4 | |
with: | |
repository: enzo1982/BoCA | |
path: boca | |
- name: Build AppImage | |
env: | |
AppImageArch: ${{ matrix.arch }} | |
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
run: | | |
.github/workflows/tools/build-appimage |