rm gh workflows to build editor

This commit is contained in:
Anthony Rabine 2023-12-25 22:22:47 +01:00
parent 5710356308
commit a9b41ef3db
2 changed files with 0 additions and 111 deletions

View file

@ -1,61 +0,0 @@
name: BuildStoryEditor-Linux
on:
workflow_dispatch: {}
schedule:
- cron: "0 0 * * *"
env:
QT_VERSION: 6.5.1
jobs:
build_linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: install_deps
run : |
pip install aqtinstall
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential cmake libgl1-mesa-dev libpulse-dev
sudo apt-get install libxcb-*
sudo apt-get install libxkb-*
sudo apt-get install libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev
- name: install_qt
run : |
python3 -m aqt install-qt -m qtmultimedia -O ${{ github.workspace }}/Qt/ linux desktop ${{ env.QT_VERSION }}
echo ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64/bin/ >> $GITHUB_PATH
- name: build
working-directory: ./story-editor
run: |
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DQt6_DIR=${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64/gcc_64/lib/cmake/Qt6 ..
make
- name: appimage
working-directory: ./story-editor/build
run: |
wget -O deploy.AppImage https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
chmod +x deploy.AppImage
mkdir -p appdir/usr/bin
mkdir -p appdir/usr/lib
mkdir -p appdir/usr/share/applications
mkdir -p appdir/usr/share/icons/hicolor/512x512
cp -r story-editor appdir/usr/bin
cp -r ../story-editor.desktop appdir/usr/share/applications
cp -r ../story-editor-logo.png appdir/usr/share/icons/hicolor/512x512/
cd appdir
../deploy.AppImage usr/share/applications/story-editor.desktop -qmake=${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64/bin/qmake -appimage -always-overwrite
- name: upload_artefact
uses: actions/upload-artifact@v3
with:
name: StoryEditorLinux
path: ./story-editor/build/appdir/StoryEditor*.AppImage

View file

@ -1,50 +0,0 @@
name: BuildStoryEditor-Windows
on:
workflow_dispatch: {}
push:
branches:
- main
jobs:
build_win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: install_deps
run : |
choco install wget -y
choco install nsis -y
choco install ninja -y
- name: build
working-directory: ./story-editor
run : |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -G Ninja ..
ninja
ls
mkdir story-editor
cp story-editor.exe story-editor
- name: package_setup
working-directory: ./story-editor
run : |
makensis.exe /V3 nsis-installer.nsi
- name: upload_zip_artefact
uses: actions/upload-artifact@v3
with:
name: StoryEditorWindows-Zip
path: ./story-editor/build/story-editor
- name: upload_stup_artefact
uses: actions/upload-artifact@v3
with:
name: StoryEditorWindows-Setup
path: ./story-editor/build/story-editor-setup.exe
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./story-editor/build/story-editor-setup.exe
./story-editor/build/StoryEditor-Windows.zip