Skip to content

Manually merge Tamil translation changes #145

Manually merge Tamil translation changes

Manually merge Tamil translation changes #145

Workflow file for this run

name: Packaging
on:
push:
push:
#tags:
#- "v*"
branches:
- master
jobs:
win_installer:
name: Build Windows installer
runs-on: windows-latest
if: "contains(github.event.head_commit.message, 'prepare_build')"
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
# Use 'tools' to install win32_mingw810,
# because MinGw shipped with this docker is not able to compile (link) 32bits Qt project
- name: Install Qt 5.15
uses: jurplel/install-qt-action@v4
with:
version: '5.15.2'
host: 'windows'
target: 'desktop'
arch: 'win32_mingw81'
tools: 'tools_mingw,qt.tools.win32_mingw810'
- name: Variables and Qt 5 environment configuration
shell: pwsh
run: |
Write-Output "${{ env.Qt5_DIR }}/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
Write-Output "${{ env.IQTA_TOOLS }}/mingw810_32/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo ("NOOTKA_VERSION=" + $((Get-Content .\src\libs\core\nootkaconfig.h | %{ $_.Split(' ')[2]; }) -replace '"', '')) >> $env:GITHUB_ENV
echo ("NOOTKA_COM_CNT=" + $(git rev-list HEAD --count)) >> $env:GITHUB_ENV
- name: Compile and prepare installer
shell: pwsh
run: |
./packaging/nsis/build_installer.ps1
Move-Item -Path .\build\installs\Nootka-*-Windows-Installer.exe -Destination "Nootka-${{ env.NOOTKA_VERSION }}-b${{ env.NOOTKA_COM_CNT }}-Windows-Installer.exe"
- name: Upload installer to GitHub
uses: actions/upload-artifact@v4
with:
name: "Nootka-${{ env.NOOTKA_VERSION }}-b${{ env.NOOTKA_COM_CNT }}-Windows-Installer.exe"
path: "D:/a/nootka/nootka/Nootka-${{ env.NOOTKA_VERSION }}-b${{ env.NOOTKA_COM_CNT }}-Windows-Installer.exe"
macos_dmg:
name: Build Mac dmg
runs-on: macos-13
needs: win_installer
#if: "contains(github.event.commits[0].message, 'prepare_build')"
steps:
- name: Select Xcode version for Mac
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.3'
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set variables
run: |
VER=$(cat src/libs/core/nootkaconfig.h | awk -F" " '{ print $3 }' | sed 's/\"//g')
echo "NOOTKA_VERSION=$VER" >> $GITHUB_ENV
CNT=$(git rev-list HEAD --count)
echo "NOOTKA_COM_CNT=$CNT" >> $GITHUB_ENV
- name: Install Qt
uses: jurplel/install-qt-action@v4
- name: Install fftw, sound-touch, ogg-vorbis
run: |
#brew update
brew install fftw
brew install sound-touch
brew install libogg
brew install libvorbis
#brew upgrade
- name: Compile and prepare dmg
run: |
echo "version is ${{ env.NOOTKA_VERSION }}"
echo "commits number is ${{ env.NOOTKA_COM_CNT }}"
mkdir build
cd ./build
mkdir installs
MACOSX_DEPLOYMENT_TARGET=10.14
export MACOSX_DEPLOYMENT_TARGET
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./installs ../
make -j 2
make install
make deploy
make dmg
cp installs/Nootka*.dmg ../
cd ..
mv Nootka*.dmg Nootka-${{ env.NOOTKA_VERSION }}-b${{ env.NOOTKA_COM_CNT }}.dmg
- name: Upload dmg to GitHub
uses: actions/upload-artifact@v4
with:
name: Nootka-${{ env.NOOTKA_VERSION }}-b${{ env.NOOTKA_COM_CNT }}.dmg
path: /Users/runner/work/nootka/nootka/Nootka-${{ env.NOOTKA_VERSION }}-b${{ env.NOOTKA_COM_CNT }}.dmg
upload_package:
name: Uploading to SF
runs-on: ubuntu-latest
needs: macos_dmg
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set variables
run: |
VER=$(cat src/libs/core/nootkaconfig.h | awk -F" " '{ print $3 }' | sed 's/\"//g')
echo "NOOTKA_VERSION=$VER" >> $GITHUB_ENV
CNT=$(git rev-list HEAD --count)
echo "NOOTKA_COM_CNT=$CNT" >> $GITHUB_ENV
- name: get bundle
uses: actions/download-artifact@v4
with:
name: Nootka-${{ env.NOOTKA_VERSION }}-b${{ env.NOOTKA_COM_CNT }}.dmg
- name: get installer
uses: actions/download-artifact@v4
with:
name: Nootka-${{ env.NOOTKA_VERSION }}-b${{ env.NOOTKA_COM_CNT }}-Windows-Installer.exe
- name: Upload dmg to SF
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: Nootka-${{ env.NOOTKA_VERSION }}-b${{ env.NOOTKA_COM_CNT }}.dmg
remote_path: ${{ secrets.REMOTE_PATH }}
remote_host: ${{ secrets.SSH_HOST }}
remote_user: ${{ secrets.SSH_USER }}
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Upload installer to SF
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: Nootka-${{ env.NOOTKA_VERSION }}-b${{ env.NOOTKA_COM_CNT }}-Windows-Installer.exe
remote_path: ${{ secrets.REMOTE_PATH }}
remote_host: ${{ secrets.SSH_HOST }}
remote_user: ${{ secrets.SSH_USER }}
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}