yeah using a separate job for that was a little silly, wasn't it?

This commit is contained in:
Nadia Holmquist Pedersen 2024-02-01 21:15:37 +01:00
parent 21dd0796b7
commit fac941d9b8
1 changed files with 19 additions and 44 deletions

View File

@ -14,54 +14,29 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
name: Check out sources name: Check out sources
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list
sudo apt update sudo apt update
sudo apt install --allow-downgrades cmake ninja-build extra-cmake-modules libpcap0.8-dev libsdl2-dev \ sudo apt install --allow-downgrades cmake ninja-build extra-cmake-modules libpcap0.8-dev libsdl2-dev \
qt6-{base,base-private,multimedia}-dev libslirp0 libslirp-dev libarchive-dev libzstd-dev --allow-downgrades qt6-{base,base-private,multimedia}-dev libslirp0 libslirp-dev libarchive-dev libzstd-dev libfuse2
- name: Configure - name: Configure
run: cmake -B build -G Ninja -DUSE_QT6=ON -DCMAKE_INSTALL_PREFIX=./dist run: cmake -B build -G Ninja -DUSE_QT6=ON -DCMAKE_INSTALL_PREFIX=/usr
- name: Build - name: Build
run: | run: |
cmake --build build cmake --build build
cmake --install build DESTDIR=AppDir cmake --install build
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: melonDS-ubuntu-x86_64 name: melonDS-ubuntu-x86_64
path: dist path: AppDir/usr/bin/melonDS
- name: Fetch AppImage tools
appimage:
name: AppImage
runs-on: ubuntu-22.04
needs: [ build ]
continue-on-error: true
steps:
- name: Install dependencies
run: | run: |
sudo apt update
sudo apt install --allow-downgrades \
qt6-{base,base-private,multimedia,tools}-dev qt6-qpa-plugins \
libpcap0.8 libsdl2-2.0-0 libslirp0 libarchive13 zstd libfuse2
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: melonDS-ubuntu-x86_64
path: melonDS
- name: Prepare AppDir
run: |
mkdir AppDir
mv melonDS AppDir/usr
- name: Prepare necessary Tools for building the AppImage
run: |
ls -R
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
chmod a+x linuxdeploy-x86_64.AppImage chmod a+x linuxdeploy-*.AppImage
chmod a+x linuxdeploy-plugin-qt-x86_64.AppImage
- name: Build the AppImage - name: Build the AppImage
env: env:
QMAKE: /usr/lib/qt6/bin/qmake QMAKE: /usr/lib/qt6/bin/qmake