Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Use different filter for executable filenames on non-Windows systems #247

Use different filter for executable filenames on non-Windows systems

Use different filter for executable filenames on non-Windows systems #247

Workflow file for this run

name: CI/CD
on:
push:
branches:
- dev
pull_request:
branches:
- dev
env:
BUILD_TYPE: RelWithDebInfo
VCPKG_ROOT: ${{github.workspace}}/vcpkg
jobs:
linux:
name: Linux-x64
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '5.15.2'
host: 'linux'
target: 'desktop'
arch: 'gcc_64'
dir: '${{github.workspace}}/qt/'
- uses: lukka/get-cmake@latest
- name: Restore artifacts, setup vcpkg
uses: lukka/run-vcpkg@v10
with:
vcpkgDirectory: '${{env.VCPKG_ROOT}}'
runVcpkgInstall: false
vcpkgJsonIgnores: "['**/vcpkg/**', '**/vcpkg_config/**']"
- name: Configure
run: >
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/vcpkg/scripts/buildsystems/vcpkg.cmake
-DQt5_DIR=${{env.Qt5_DIR}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j2
# - name: Prepare artifacts
# run: |
# mkdir "Half-Life Asset Manager"
# mv build/HLAM "Half-Life Asset Manager"
# mv build/libopenal.so.1.22.2 "Half-Life Asset Manager"
# mv build/libQt5Core.so.5.15.2 "Half-Life Asset Manager"
# mv build/libQt5Gui.so.5.15.2 "Half-Life Asset Manager"
# mv build/libQt5Network.so.5.15.2 "Half-Life Asset Manager"
# mv build/libQt5Widgets.so.5.15.2 "Half-Life Asset Manager"
# mv build/imageformats "Half-Life Asset Manager/imageformats"
# mv build/platforms "Half-Life Asset Manager/platforms"
#
# - name: Upload artifacts
# uses: actions/upload-artifact@v3
# with:
# name: Linux-x64
# path: "Half-Life Asset Manager"
win32:
name: Win32
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '5.15.2'
host: 'windows'
target: 'desktop'
arch: 'win32_msvc2019'
dir: '${{github.workspace}}/qt/'
- uses: lukka/get-cmake@latest
- name: Restore artifacts, setup vcpkg
uses: lukka/run-vcpkg@v10
with:
vcpkgDirectory: '${{env.VCPKG_ROOT}}'
runVcpkgInstall: false
vcpkgJsonIgnores: "['**/vcpkg/**', '**/vcpkg_config/**']"
- name: Configure
run: >
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/vcpkg/scripts/buildsystems/vcpkg.cmake
-DQt5_DIR=${{env.Qt5_DIR}}
-A Win32
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j2
- name: Prepare artifacts
run: |
mkdir "Half-Life Asset Manager"
mv build/HLAM.exe "Half-Life Asset Manager"
mv build/OpenAL32.dll "Half-Life Asset Manager"
mv build/Qt5Core.dll "Half-Life Asset Manager"
mv build/Qt5Gui.dll "Half-Life Asset Manager"
mv build/Qt5Network.dll "Half-Life Asset Manager"
mv build/Qt5Widgets.dll "Half-Life Asset Manager"
mv build/imageformats "Half-Life Asset Manager/imageformats"
mv build/platforms "Half-Life Asset Manager/platforms"
mv build/styles "Half-Life Asset Manager/styles"
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Win32
path: "Half-Life Asset Manager"