Skip to content

Commit

Permalink
ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
kaniol-lck committed May 22, 2024
1 parent 92730ff commit 52e947c
Showing 1 changed file with 26 additions and 29 deletions.
55 changes: 26 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ jobs:
path: etc/usr/artifacts/
- name: Process artifacts
run: |
mkdir -p /home/runner/work/modmanager-qt/modmanager-qt/etc/usr/publish
# cd /home/runner/work/modmanager-qt/modmanager-qt/etc/usr/artifacts/ModManager-packed
mkdir -p /home/runner/work/modmanager/modmanager/etc/usr/publish
# cd /home/runner/work/modmanager/modmanager/etc/usr/artifacts/ModManager-packed
# zip -q -r ModManager-${{ env.VERSION }}-packed.zip *
cd /home/runner/work/modmanager-qt/modmanager-qt/etc/usr/artifacts/ModManager-x64-packed
cd /home/runner/work/modmanager/modmanager/etc/usr/artifacts/ModManager-x64-packed
zip -q -r ModManager-${{ env.VERSION }}-x64-packed.zip *
# mv /home/runner/work/modmanager-qt/modmanager-qt/etc/usr/artifacts/ModManager-packed/ModManager-${{ env.VERSION }}-packed.zip /home/runner/work/modmanager-qt/modmanager-qt/etc/usr/publish/ModManager-${{ env.VERSION }}-packed.zip
mv /home/runner/work/modmanager-qt/modmanager-qt/etc/usr/artifacts/ModManager-x64-packed/ModManager-${{ env.VERSION }}-x64-packed.zip /home/runner/work/modmanager-qt/modmanager-qt/etc/usr/publish/ModManager-${{ env.VERSION }}-x64-packed.zip
# mv /home/runner/work/modmanager-qt/modmanager-qt/etc/usr/artifacts/ModManager-${{ env.VERSION }}-Installer.exe/ModManager-Installer.exe /home/runner/work/modmanager-qt/modmanager-qt/etc/usr/publish/ModManager-${{ env.VERSION }}-Installer.exe
mv /home/runner/work/modmanager-qt/modmanager-qt/etc/usr/artifacts/ModManager-${{ env.VERSION }}-x64-Installer.exe/ModManager-Installer.exe /home/runner/work/modmanager-qt/modmanager-qt/etc/usr/publish/ModManager-${{ env.VERSION }}-x64-Installer.exe
mv /home/runner/work/modmanager-qt/modmanager-qt/etc/usr/artifacts/ModManager-${{ env.VERSION }}.dmg/modmanager.dmg /home/runner/work/modmanager-qt/modmanager-qt/etc/usr/publish/ModManager-${{ env.VERSION }}.dmg
mv /home/runner/work/modmanager-qt/modmanager-qt/etc/usr/artifacts/ModManager-${{ env.VERSION }}-x86_64.AppImage/Mod_Manager-${{ env.VERSION }}-x86_64.AppImage /home/runner/work/modmanager-qt/modmanager-qt/etc/usr/publish/ModManager-${{ env.VERSION }}.AppImage
# mv /home/runner/work/modmanager/modmanager/etc/usr/artifacts/ModManager-packed/ModManager-${{ env.VERSION }}-packed.zip /home/runner/work/modmanager/modmanager/etc/usr/publish/ModManager-${{ env.VERSION }}-packed.zip
mv /home/runner/work/modmanager/modmanager/etc/usr/artifacts/ModManager-x64-packed/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 }}-Installer.exe/ModManager-Installer.exe /home/runner/work/modmanager/modmanager/etc/usr/publish/ModManager-${{ env.VERSION }}-Installer.exe
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
- name: Get short commit sha
id: get_short_sha
run: |
Expand Down Expand Up @@ -137,6 +137,13 @@ jobs:
msys_arch: x86_64
x64_suffix: -x64
modules: qt5compat
- qt_arch: win64_mingw81
qt_ver: 5.15.2
qt_tools_mingw_install: mingw810_64
mingw_arch: mingw64
msys_arch: x86_64
x64_suffix: -x64
modules:
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v4
Expand Down Expand Up @@ -245,19 +252,19 @@ jobs:
makensis package/modmanager.nsi
- uses: actions/upload-artifact@v2
with:
name: ModManager-${{ env.VERSION }}${{ matrix.x64_suffix }}-Installer.exe
name: ModManager-${{ env.VERSION }}${{ matrix.x64_suffix }}-Qt${{ matrix.qt_ver }}-Installer.exe
path: ${{github.workspace}}/package/ModManager*-Installer.exe
- uses: actions/upload-artifact@v2
with:
name: ModManager${{ matrix.x64_suffix }}-win-packed
name: ModManager${{ matrix.x64_suffix }}-Qt${{ matrix.qt_ver }}-packed
path: deploy/*
- name: Upload Release
if: startsWith(github.event.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: package/ModManager-Installer.exe
asset_name: ModManager-${{ env.VERSION }}${{ matrix.x64_suffix }}-Installer.exe
asset_name: ModManager-${{ env.VERSION }}${{ matrix.x64_suffix }}-Qt${{ matrix.qt_ver }}-Installer.exe
tag: ${{ github.ref }}
overwrite: true
# enable them if find a way to build libaria2
Expand Down Expand Up @@ -377,7 +384,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macOS-latest]
os: [macOS-10.15]
qt_ver: [6.7.1]
qt_arch: [clang_64]
steps:
Expand All @@ -390,24 +397,14 @@ jobs:
target: 'desktop'
arch: ${{ matrix.qt_arch }}
modules: 'qtwebengine'
- uses: actions/checkout@v4
with:
repository: 'kaniol-lck/aria2'
path: 'aria2'
- name: Install libaria2
run: |
cd aria2
brew install cppunit gettext openssl libssh2 c-ares sqlite3 autoconf automake pkg-config libtool
echo 'CC=clang' >> $GITHUB_ENV
echo 'CXX=clang++' >> $GITHUB_ENV
./configure \
--without-openssl --without-gnutls --with-appletls \
--disable-nls --enable-libaria2 \
CPPFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address"
make
make check
sudo make install
cd ..
wget "https://github.com/kaniol-lck/aria2/releases/download/libaria2-release-1.36.0/libaria2-clang-macos-10.15.zip"
unzip *.zip
csrutil status
sudo cp -r lib/ usr/local/lib/
sudo cp -r include/aria2/ usr/local/include/
rm -rf lib/ include/ *.zip
- name: Install dependencies
run: |
brew install quazip gnu-sed aria2
Expand Down

0 comments on commit 52e947c

Please sign in to comment.