Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kaniol-lck committed Jul 10, 2024
1 parent 51bbbab commit 4d6142d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 26 deletions.
45 changes: 19 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,32 +32,24 @@ jobs:
export VERSION=$(grep -o '".*"' src/version.h | sed 's/"//g')-build.$GITHUB_RUN_NUMBER
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Download artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: etc/usr/artifacts/
- name: Process artifacts
run: |
mkdir -p /home/runner/work/modmanager/modmanager/etc/usr/publish
cd /home/runner/work/modmanager/modmanager/etc/usr/artifacts/ModManager-${{ env.VERSION }}-x64-packed
zip -q -r ModManager-${{ env.VERSION }}-x64-packed.zip *
mv ModManager-${{ env.VERSION }}-x64-packed.zip /home/runner/work/modmanager/modmanager/etc/usr/publish/ModManager-${{ env.VERSION }}-x64-packed.zip
mv /home/runner/work/modmanager/modmanager/etc/usr/artifacts/ModManager-${{ env.VERSION }}-x64-Installer.exe/ModManager-Installer.exe /home/runner/work/modmanager/modmanager/etc/usr/publish/ModManager-${{ env.VERSION }}-x64-Installer.exe
mv /home/runner/work/modmanager/modmanager/etc/usr/artifacts/ModManager-${{ env.VERSION }}.dmg/modmanager.dmg /home/runner/work/modmanager/modmanager/etc/usr/publish/ModManager-${{ env.VERSION }}.dmg
mv /home/runner/work/modmanager/modmanager/etc/usr/artifacts/ModManager-${{ env.VERSION }}-x86_64.AppImage/Mod_Manager-${{ env.VERSION }}-x86_64.AppImage /home/runner/work/modmanager/modmanager/etc/usr/publish/ModManager-${{ env.VERSION }}.AppImage
path: artifacts/
merge-multiple: true
- name: Get short commit sha
id: get_short_sha
run: |
short_sha=$(echo ${GITHUB_SHA} | cut -c1-7)
echo "::set-output name=short_sha::$short_sha"
- name: Create Github release
- name: Create Github pre-release
uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ env.VERSION }}"
prerelease: true
title: "Mod Manager Dev ${{ env.VERSION }} (${{ steps.get_short_sha.outputs.short_sha }})"
files: |
etc/usr/publish/**
artifacts/**
build-on-ubuntu:
name: Build On Ubuntu
runs-on: ubuntu-24.04 # for libquazip1-qt5 available
Expand Down Expand Up @@ -128,9 +120,9 @@ jobs:
fail-fast: false
matrix:
include:
# - qt_arch: win64_mingw
# qt_ver: 6.7.1
# modules: qt5compat
- qt_arch: win64_mingw
qt_ver: 6.7.1
modules: qt5compat
- qt_arch: win64_mingw81
qt_ver: 5.15.2
qt_tools_mingw_install: mingw810_64
Expand Down Expand Up @@ -231,28 +223,29 @@ jobs:
if: ${{ startsWith( matrix.qt_ver, 5 ) }}
run : |
cp C:/msys64/mingw64/bin/libquazip1-qt5.dll deploy/
# - name: qt6 dependencies
# if: ${{ startsWith( matrix.qt_ver, 6 ) }}
# run : |
# cp C:/msys64/mingw64/bin/libquazip1-qt6.dll deploy/
# cp C:/msys64/mingw64/bin/libicuuc74.dll deploy/
# cp C:/msys64/mingw64/bin/libicudt74.dll deploy/
# cp C:/msys64/mingw64/bin/Qt6Core5Compat.dll deploy/
- name: qt6 dependencies
if: ${{ startsWith( matrix.qt_ver, 6 ) }}
run : |
cp C:/msys64/mingw64/bin/libquazip1-qt6.dll deploy/
cp C:/msys64/mingw64/bin/libicuuc74.dll deploy/
cp C:/msys64/mingw64/bin/libicudt74.dll deploy/
cp C:/msys64/mingw64/bin/Qt6Core5Compat.dll deploy/
- name: Modify NSIS for x64
shell: pwsh
run: |
(Get-Content package/modmanager.nsi).replace('PROGRAMFILES', 'PROGRAMFILES64') | Set-Content package/modmanager.nsi
- name: Create installer
run: |
makensis package/modmanager.nsi
zip -q -r ModManager-${{ env.VERSION }}-${{ matrix.qt_ver }}-x64-packed.zip deploy/*
- uses: actions/upload-artifact@v2
with:
name: ModManager-${{ env.VERSION }}-x64-Installer.exe
name: ModManager-${{ env.VERSION }}-${{ matrix.qt_ver }}-x64-Installer.exe
path: ${{github.workspace}}/package/ModManager*-Installer.exe
- uses: actions/upload-artifact@v2
with:
name: ModManager-${{ env.VERSION }}-x64-packed
path: deploy/*
name: ModManager-${{ env.VERSION }}-${{ matrix.qt_ver }}-x64-packed
path: ${{github.workspace}}/ModManager-${{ env.VERSION }}-${{ matrix.qt_ver }}-x64-packed.zip
- name: Upload Release
if: startsWith(github.event.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
Expand Down
3 changes: 3 additions & 0 deletions src/ui/download/downloaderinfowidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
Expand Down

0 comments on commit 4d6142d

Please sign in to comment.