chore/fix: fix up viewport and application window type. Resolve build… #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | ||
on: | ||
push: | ||
branches: [ master, rework ] | ||
workflow_dispatch: # nothing here | ||
env: | ||
BUILD_DIR: '${{github.workspace}}/build' | ||
QT_VERSION: '6.5.3' | ||
QT_MODULES: 'qtimageformats' | ||
jobs: | ||
build-linux: | ||
strategy: | ||
matrix: | ||
build_type: [ Debug, Release ] | ||
target: [ Source, StrataSource ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
aqtversion: '==3.1.*' | ||
version: ${{env.QT_VERSION}} | ||
host: linux | ||
target: desktop | ||
modules: ${{env.QT_MODULES}} | ||
dir: '${{github.workspace}}/libs/Qt' | ||
cache: true | ||
- name: Configure CMake | ||
if: ${{matrix.target == "StrataSource"}} | ||
Check failure on line 39 in .github/workflows/build.yml GitHub Actions / BuildInvalid workflow file
|
||
run: cmake -G "Unix Makefiles" -B build -DCHAOS_INITIATIVE=ON -DCOMPRESSVTF=ON -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DQT_BASEDIR='${{github.workspace}}/libs/Qt/Qt/6.5.3/gcc_64' | ||
- name: Configure CMake | ||
if: ${{matrix.target == "Source"}} | ||
run: cmake -G "Unix Makefiles" -B build -DCOMPRESSVTF=ON -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DQT_BASEDIR='${{github.workspace}}/libs/Qt/Qt/6.5.3/gcc_64' | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: vtf-edit-revitalized-linux-${{matrix.build_type}}-${{matrix.target}} | ||
path: | | ||
${{github.workspace}}/build/VTF_Edit_Revitalized | ||
${{github.workspace}}/build/tls/*.so* | ||
${{github.workspace}}/build/imageformats/*.so* | ||
${{github.workspace}}/build/platforms/*.so* | ||
${{github.workspace}}/build/*.so* | ||
build-msvc: | ||
strategy: | ||
matrix: | ||
build_type: [ Debug, Release ] | ||
runs-on: windows-2019 | ||
defaults: | ||
run: | ||
shell: cmd | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
- name: Install Qt6 | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
aqtversion: '==3.1.*' | ||
dir: '${{github.workspace}}/libs/Qt' | ||
version: ${{env.QT_VERSION}} | ||
arch: win64_msvc2019_64 | ||
modules: ${{env.QT_MODULES}} | ||
cache: true | ||
- name: Set up MSVC | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
- name: Configure CMake | ||
if: ${{matrix.target == "StrataSource"}} | ||
env: | ||
CMAKE_PREFIX_PATH: ${{env.Qt6_Dir}} | ||
run: cmake -G "Ninja" -B build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCOMPRESSVTF=ON -DCHAOS_INITIATIVE=ON -DQT_BASEDIR=${{github.workspace}}\libs\Qt\Qt\6.5.3\msvc2019_64 | ||
- name: Configure CMake | ||
if: ${{matrix.target == "Source"}} | ||
env: | ||
CMAKE_PREFIX_PATH: ${{env.Qt6_Dir}} | ||
run: cmake -G "Ninja" -B build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCOMPRESSVTF=ON -DQT_BASEDIR=${{github.workspace}}\libs\Qt\Qt\6.5.3\msvc2019_64 | ||
- name: Build | ||
run: cmake --build build --config ${{matrix.build_type}} | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: vtf-edit-revitalized-windows-${{matrix.build_type}}-${{matrix.target}} | ||
path: | | ||
${{github.workspace}}\build\*.exe | ||
${{github.workspace}}\build\*.dll | ||
${{github.workspace}}\build\platforms\*.dll | ||
${{github.workspace}}\build\tls\*.dll | ||
${{github.workspace}}\build\imageformats\*.dll | ||