Delete all the workflows so they don't complain at me while I'm doing this
This commit is contained in:
parent
5439742578
commit
4f33da153e
|
@ -1,55 +0,0 @@
|
||||||
name: CMake Build (AppImage x86-64)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install cmake extra-cmake-modules libcurl4-gnutls-dev libpcap0.8-dev libsdl2-dev libqt5multimedia5-plugins qt5-default qtbase5-private-dev qtmultimedia5-dev libslirp0 libslirp-dev libarchive-dev zstd libzstd-dev --allow-downgrades
|
|
||||||
- name: Create build environment
|
|
||||||
run: mkdir ${{runner.workspace}}/build
|
|
||||||
- name: Configure
|
|
||||||
working-directory: ${{runner.workspace}}/build
|
|
||||||
run: cmake $GITHUB_WORKSPACE
|
|
||||||
- name: Make
|
|
||||||
working-directory: ${{runner.workspace}}/build
|
|
||||||
run: |
|
|
||||||
make -j$(nproc --all)
|
|
||||||
- name: Prepare AppDir for AppImage
|
|
||||||
working-directory: ${{runner.workspace}}/build
|
|
||||||
run: |
|
|
||||||
make install DESTDIR=AppDir
|
|
||||||
mv ./AppDir/usr/local/bin ./AppDir/usr/bin
|
|
||||||
mv ./AppDir/usr/local/share ./AppDir/usr/share
|
|
||||||
rm -rf ./AppDir/usr/local
|
|
||||||
- name: Prepare necessary Tools for building the AppImage
|
|
||||||
working-directory: ${{runner.workspace}}/build
|
|
||||||
run: |
|
|
||||||
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
|
|
||||||
chmod a+x linuxdeploy-x86_64.AppImage
|
|
||||||
chmod a+x linuxdeploy-plugin-qt-x86_64.AppImage
|
|
||||||
- name: Build the AppImage
|
|
||||||
working-directory: ${{runner.workspace}}/build
|
|
||||||
run: |
|
|
||||||
./linuxdeploy-x86_64.AppImage --appdir AppDir --plugin qt --output appimage
|
|
||||||
mkdir dist
|
|
||||||
cp ./melonDS*.AppImage ./dist
|
|
||||||
- uses: actions/upload-artifact@v1
|
|
||||||
with:
|
|
||||||
name: melonDS-appimage-x86_64
|
|
||||||
path: ${{runner.workspace}}/build/dist
|
|
|
@ -1,76 +0,0 @@
|
||||||
name: CMake Build (macOS Universal)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
prepare:
|
|
||||||
runs-on: [self-hosted, macOS, ARM64]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Clean workspace
|
|
||||||
run: rm -rf ${{runner.workspace}}/build
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
|
|
||||||
build-arm64:
|
|
||||||
needs: prepare
|
|
||||||
runs-on: [self-hosted, macOS, ARM64]
|
|
||||||
env:
|
|
||||||
homebrew_prefix: /opt/homebrew
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Create build directory
|
|
||||||
run: mkdir -p ${{runner.workspace}}/build/arm64
|
|
||||||
|
|
||||||
- name: Configure
|
|
||||||
working-directory: ${{runner.workspace}}/build/arm64
|
|
||||||
run: arch -arm64 ${{env.homebrew_prefix}}/bin/cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_PREFIX_PATH="${{env.homebrew_prefix}}/opt/qt@6;${{env.homebrew_prefix}}/opt/libarchive" -DPKG_CONFIG_EXECUTABLE=${{env.homebrew_prefix}}/bin/pkg-config -DMACOS_BUNDLE_LIBS=ON -DUSE_QT6=ON
|
|
||||||
|
|
||||||
- name: Make
|
|
||||||
working-directory: ${{runner.workspace}}/build/arm64
|
|
||||||
run: arch -arm64 make -j$(sysctl -n hw.logicalcpu)
|
|
||||||
|
|
||||||
build-x86_64:
|
|
||||||
needs: prepare
|
|
||||||
runs-on: [self-hosted, macOS, ARM64]
|
|
||||||
env:
|
|
||||||
homebrew_prefix: /usr/local
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Create build directory
|
|
||||||
run: mkdir -p ${{runner.workspace}}/build/x86_64
|
|
||||||
|
|
||||||
- name: Configure
|
|
||||||
working-directory: ${{runner.workspace}}/build/x86_64
|
|
||||||
run: arch -x86_64 ${{env.homebrew_prefix}}/bin/cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_PREFIX_PATH="${{env.homebrew_prefix}}/opt/qt@6;${{env.homebrew_prefix}}/opt/libarchive" -DPKG_CONFIG_EXECUTABLE=${{env.homebrew_prefix}}/bin/pkg-config -DMACOS_BUNDLE_LIBS=ON -DUSE_QT6=ON
|
|
||||||
|
|
||||||
- name: Make
|
|
||||||
working-directory: ${{runner.workspace}}/build/x86_64
|
|
||||||
run: arch -x86_64 make -j$(sysctl -n hw.logicalcpu)
|
|
||||||
|
|
||||||
universal-binary:
|
|
||||||
needs: [build-arm64, build-x86_64]
|
|
||||||
runs-on: [self-hosted, macOS, ARM64]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Merge binaries
|
|
||||||
run: $GITHUB_WORKSPACE/tools/mac-universal.py ${{runner.workspace}}/build/arm64/melonDS.app ${{runner.workspace}}/build/x86_64/melonDS.app ${{runner.workspace}}/build/universal/melonDS.app
|
|
||||||
|
|
||||||
- name: Codesign app
|
|
||||||
run: codesign -s - --deep -f ${{runner.workspace}}/build/universal/melonDS.app
|
|
||||||
|
|
||||||
- name: Create DMG
|
|
||||||
run: hdiutil create -fs HFS+ -volname melonDS -srcfolder ${{runner.workspace}}/build/universal/melonDS.app -ov -format UDBZ ${{runner.workspace}}/build/universal/melonDS.dmg
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: macOS-universal
|
|
||||||
path: ${{runner.workspace}}/build/universal/melonDS.dmg
|
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
name: CMake Build (Ubuntu aarch64)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
env:
|
|
||||||
BUILD_TYPE: Release
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
container: ubuntu:20.04
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Prepare system
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
apt update
|
|
||||||
apt -y full-upgrade
|
|
||||||
apt -y install git
|
|
||||||
- name: Check out source
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
- name: Install dependencies
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
dpkg --add-architecture arm64
|
|
||||||
sh -c "sed \"s|^deb \([a-z\.:/]*\) \([a-z\-]*\) \(.*\)$|deb [arch=amd64] \1 \2 \3\ndeb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports \2 \3|\" /etc/apt/sources.list > /etc/apt/sources.list.new"
|
|
||||||
rm /etc/apt/sources.list
|
|
||||||
mv /etc/apt/sources.list{.new,}
|
|
||||||
apt update
|
|
||||||
DEBIAN_FRONTEND=noninteractive apt install -y {gcc-10,g++-10,pkg-config}-aarch64-linux-gnu {libsdl2,qtbase5,qtbase5-private,qtmultimedia5,libslirp,libarchive,libzstd}-dev:arm64 zstd:arm64 cmake extra-cmake-modules dpkg-dev
|
|
||||||
- name: Configure
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
CC=aarch64-linux-gnu-gcc-10 CXX=aarch64-linux-gnu-g++-10 cmake -DPKG_CONFIG_EXECUTABLE=/usr/bin/aarch64-linux-gnu-pkg-config $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -B build
|
|
||||||
- name: Make
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
cmake --build build -j$(nproc --all)
|
|
||||||
mkdir dist
|
|
||||||
cp build/melonDS dist
|
|
||||||
- uses: actions/upload-artifact@v1
|
|
||||||
with:
|
|
||||||
name: melonDS-ubuntu-aarch64
|
|
||||||
path: dist
|
|
|
@ -1,37 +0,0 @@
|
||||||
name: CMake Build (Ubuntu x86-64)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install cmake extra-cmake-modules libcurl4-gnutls-dev libpcap0.8-dev libsdl2-dev qt5-default qtbase5-private-dev qtmultimedia5-dev libslirp0 libslirp-dev libarchive-dev zstd libzstd-dev --allow-downgrades
|
|
||||||
- name: Create build environment
|
|
||||||
run: mkdir ${{runner.workspace}}/build
|
|
||||||
- name: Configure
|
|
||||||
working-directory: ${{runner.workspace}}/build
|
|
||||||
run: cmake $GITHUB_WORKSPACE
|
|
||||||
- name: Make
|
|
||||||
working-directory: ${{runner.workspace}}/build
|
|
||||||
run: |
|
|
||||||
make -j$(nproc --all)
|
|
||||||
mkdir dist
|
|
||||||
cp melonDS dist
|
|
||||||
- uses: actions/upload-artifact@v1
|
|
||||||
with:
|
|
||||||
name: melonDS-ubuntu-x86_64
|
|
||||||
path: ${{runner.workspace}}/build/dist
|
|
|
@ -1,43 +0,0 @@
|
||||||
name: CMake Build (Windows x86-64)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
env:
|
|
||||||
BUILD_TYPE: Release
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: windows-latest
|
|
||||||
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: msys2 {0}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
- uses: msys2/setup-msys2@v2
|
|
||||||
with:
|
|
||||||
msystem: MINGW64
|
|
||||||
update: true
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: pacman -Sq --noconfirm git pkgconf mingw-w64-x86_64-{cmake,SDL2,qt5-static,libslirp,libarchive,toolchain}
|
|
||||||
|
|
||||||
- name: Configure
|
|
||||||
working-directory: ${{runner.workspace}}
|
|
||||||
run: cmake -B build $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_STATIC=ON -DCMAKE_PREFIX_PATH=C:/tools/msys64/mingw64/qt5-static
|
|
||||||
|
|
||||||
- name: Make
|
|
||||||
working-directory: ${{runner.workspace}}/build
|
|
||||||
run: cmake --build .
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v1
|
|
||||||
with:
|
|
||||||
name: melonDS-windows-x86_64
|
|
||||||
path: ${{runner.workspace}}\build\melonDS.exe
|
|
Loading…
Reference in New Issue