2021-03-02 02:36:10 +00:00
|
|
|
name: Build
|
|
|
|
|
2021-03-05 14:00:07 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
2021-03-02 02:36:10 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-linux-gcc:
|
|
|
|
name: Build Linux (GCC x86_64)
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2021-03-05 14:00:07 +00:00
|
|
|
sudo apt-get -y install build-essential curl git cmake ninja-build llvm-dev libclang-dev clang lld \
|
|
|
|
zlib1g-dev libglu1-mesa-dev libdbus-1-dev libvulkan-dev libxi-dev libxrandr-dev libasound2-dev \
|
|
|
|
libpulse-dev libudev-dev libpng-dev libncurses5-dev libx11-xcb-dev python3 python-is-python3 qt5-default
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Create build directory
|
|
|
|
shell: bash
|
|
|
|
run: cmake -E make_directory ${{github.workspace}}/build
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Configure CMake
|
|
|
|
working-directory: ${{github.workspace}}/build
|
2021-03-07 20:42:48 +00:00
|
|
|
run: |
|
|
|
|
cmake $GITHUB_WORKSPACE -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DURDE_VECTOR_ISA=sse41 \
|
|
|
|
-DURDE_DLPACKAGE=urde-$GITHUB_RUN_NUMBER-linux-gcc-x86_64
|
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Build
|
|
|
|
working-directory: ${{github.workspace}}/build
|
|
|
|
run: cmake --build . --config $BUILD_TYPE
|
|
|
|
|
2021-03-07 20:42:48 +00:00
|
|
|
- name: Generate AppImage
|
|
|
|
env:
|
|
|
|
VERSION: ${{github.run_number}}
|
|
|
|
run: ci/build-appimage.sh
|
|
|
|
|
2021-03-08 01:16:26 +00:00
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
2021-03-07 20:42:48 +00:00
|
|
|
with:
|
|
|
|
name: urde-linux-gcc-x86_64
|
|
|
|
path: URDE-*.AppImage
|
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
build-linux-clang:
|
|
|
|
name: Build Linux (Clang x86_64)
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2021-03-05 14:00:07 +00:00
|
|
|
sudo apt-get -y install build-essential curl git cmake ninja-build llvm-dev libclang-dev clang lld \
|
|
|
|
zlib1g-dev libglu1-mesa-dev libdbus-1-dev libvulkan-dev libxi-dev libxrandr-dev libasound2-dev \
|
|
|
|
libpulse-dev libudev-dev libpng-dev libncurses5-dev libx11-xcb-dev python3 python-is-python3 qt5-default
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Create build directory
|
|
|
|
run: cmake -E make_directory ${{github.workspace}}/build
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Configure CMake
|
|
|
|
working-directory: ${{github.workspace}}/build
|
2021-03-07 20:42:48 +00:00
|
|
|
|
|
|
|
run: |
|
|
|
|
cmake $GITHUB_WORKSPACE -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DURDE_VECTOR_ISA=sse41 \
|
|
|
|
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
|
|
|
|
-DURDE_DLPACKAGE=urde-$GITHUB_RUN_NUMBER-linux-clang-x86_64
|
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Build
|
|
|
|
working-directory: ${{github.workspace}}/build
|
|
|
|
run: cmake --build . --config $BUILD_TYPE
|
|
|
|
|
2021-03-07 20:42:48 +00:00
|
|
|
- name: Generate AppImage
|
|
|
|
env:
|
|
|
|
VERSION: ${{github.run_number}}
|
|
|
|
run: ci/build-appimage.sh
|
|
|
|
|
2021-03-08 01:16:26 +00:00
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
2021-03-07 20:42:48 +00:00
|
|
|
with:
|
|
|
|
name: urde-linux-clang-x86_64
|
|
|
|
path: URDE-*.AppImage
|
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
build-macos:
|
|
|
|
name: Build macOS (Clang x86_64)
|
|
|
|
runs-on: macos-10.15
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: brew install ninja qt
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Create build directory
|
|
|
|
run: cmake -E make_directory ${{github.workspace}}/build
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Configure CMake
|
|
|
|
working-directory: ${{github.workspace}}/build
|
2021-03-07 20:42:48 +00:00
|
|
|
run: cmake $GITHUB_WORKSPACE -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DURDE_VECTOR_ISA=sse41
|
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Build
|
|
|
|
working-directory: ${{github.workspace}}/build
|
|
|
|
run: cmake --build . --config $BUILD_TYPE
|
|
|
|
|
2021-03-08 01:16:26 +00:00
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
2021-03-07 20:42:48 +00:00
|
|
|
with:
|
|
|
|
name: urde-macos-x86_64
|
|
|
|
path: build/Binaries/urde.app
|
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
build-windows-msvc:
|
|
|
|
name: Build Windows (MSVC x86_64)
|
2021-03-07 20:42:48 +00:00
|
|
|
runs-on: [ self-hosted, windows, x64 ]
|
2021-03-08 01:40:00 +00:00
|
|
|
env:
|
|
|
|
LLVM_VERSION: 10.0.1
|
2021-03-13 14:41:14 +00:00
|
|
|
Qt_VERSION: 5.15.2
|
2021-03-02 02:36:10 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-08 01:40:00 +00:00
|
|
|
- name: Install LLVM
|
2021-03-13 16:58:20 +00:00
|
|
|
run: |
|
|
|
|
$TempDir = "$env:RUNNER_WORKSPACE\temp"
|
|
|
|
$Filename = "LLVM-$env:LLVM_VERSION-win64.exe"
|
|
|
|
New-Item -Path "$TempDir" -ItemType Directory -ea 0
|
|
|
|
(New-Object Net.WebClient).DownloadFile("https://axiodl.com/files/$Filename", "$TempDir\$Filename")
|
|
|
|
Start-Process "$TempDir\$Filename" -ArgumentList "/S /D=$env:RUNNER_WORKSPACE\LLVM" -Wait
|
|
|
|
|
|
|
|
- name: Install vcpkg Qt
|
|
|
|
run: |
|
|
|
|
$TempDir = "$env:RUNNER_WORKSPACE\temp"
|
|
|
|
$Filename = "vcpkg-qt-$env:Qt_VERSION.7z"
|
|
|
|
New-Item -Path "$TempDir" -ItemType Directory -ea 0
|
|
|
|
(New-Object Net.WebClient).DownloadFile("https://axiodl.com/files/$Filename", "$TempDir\$Filename")
|
|
|
|
7z x "-o$env:RUNNER_WORKSPACE" -aos "$TempDir\$Filename"
|
2021-03-08 01:16:26 +00:00
|
|
|
|
|
|
|
# - name: Install dependencies
|
|
|
|
# run: choco install ninja vulkan-sdk
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-05 14:00:07 +00:00
|
|
|
- name: Enable Visual Studio environment
|
|
|
|
uses: ilammy/msvc-dev-cmd@v1
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Create build directory
|
|
|
|
run: cmake -E make_directory ${{github.workspace}}/build
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Configure CMake
|
|
|
|
working-directory: ${{github.workspace}}/build
|
2021-03-07 20:42:48 +00:00
|
|
|
run: |
|
2021-03-13 14:59:28 +00:00
|
|
|
$workspace = $env:RUNNER_WORKSPACE -replace '\\', '/'
|
2021-03-07 20:42:48 +00:00
|
|
|
cmake $env:GITHUB_WORKSPACE -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DURDE_VECTOR_ISA=sse41 `
|
2021-03-13 16:58:20 +00:00
|
|
|
-DCMAKE_TOOLCHAIN_FILE="$workspace/vcpkg-qt-$env:Qt_VERSION/scripts/buildsystems/vcpkg.cmake" `
|
2021-03-07 20:42:48 +00:00
|
|
|
-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_CXX_FLAGS= -DCMAKE_C_FLAGS= `
|
2021-03-13 14:59:28 +00:00
|
|
|
-DLLVM_ROOT_DIR="$workspace/LLVM" `
|
2021-03-07 20:42:48 +00:00
|
|
|
-DURDE_DLPACKAGE=urde-$env:GITHUB_RUN_NUMBER-win32-msvc-x86_64
|
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Build
|
|
|
|
working-directory: ${{github.workspace}}/build
|
|
|
|
run: cmake --build . --config $BUILD_TYPE
|
|
|
|
|
2021-03-08 01:16:26 +00:00
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
2021-03-07 20:42:48 +00:00
|
|
|
with:
|
|
|
|
name: urde-windows-msvc-x86_64
|
|
|
|
path: |
|
|
|
|
build/Binaries/urde.exe
|
|
|
|
build/Binaries/hecl.exe
|
|
|
|
build/Binaries/hecl-gui.exe
|
|
|
|
build/Binaries/visigen.exe
|
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
build-windows-clang:
|
|
|
|
name: Build Windows (Clang x86_64)
|
|
|
|
runs-on: windows-2019
|
2021-03-08 01:40:00 +00:00
|
|
|
env:
|
|
|
|
LLVM_VERSION: 10.0.1
|
2021-03-13 14:41:14 +00:00
|
|
|
Qt_VERSION: 5.15.2
|
2021-03-02 02:36:10 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Install LLVM
|
2021-03-13 16:58:20 +00:00
|
|
|
run: |
|
|
|
|
$TempDir = "$env:RUNNER_WORKSPACE\temp"
|
|
|
|
$Filename = "LLVM-$env:LLVM_VERSION-win64.exe"
|
|
|
|
New-Item -Path "$TempDir" -ItemType Directory -ea 0
|
|
|
|
(New-Object Net.WebClient).DownloadFile("https://axiodl.com/files/$Filename", "$TempDir\$Filename")
|
|
|
|
Start-Process "$TempDir\$Filename" -ArgumentList "/S /D=$env:RUNNER_WORKSPACE\LLVM" -Wait
|
2021-03-10 20:36:19 +00:00
|
|
|
|
2021-03-13 16:58:20 +00:00
|
|
|
- name: Install vcpkg Qt
|
|
|
|
run: |
|
|
|
|
$TempDir = "$env:RUNNER_WORKSPACE\temp"
|
|
|
|
$Filename = "vcpkg-qt-$env:Qt_VERSION.7z"
|
|
|
|
New-Item -Path "$TempDir" -ItemType Directory -ea 0
|
|
|
|
(New-Object Net.WebClient).DownloadFile("https://axiodl.com/files/$Filename", "$TempDir\$Filename")
|
|
|
|
7z x "-o$env:RUNNER_WORKSPACE" -aos "$TempDir\$Filename"
|
2021-03-08 01:16:26 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: choco install ninja vulkan-sdk
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-05 14:00:07 +00:00
|
|
|
- name: Enable Visual Studio environment
|
|
|
|
uses: ilammy/msvc-dev-cmd@v1
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Create build directory
|
|
|
|
run: cmake -E make_directory ${{github.workspace}}/build
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Configure CMake
|
|
|
|
working-directory: ${{github.workspace}}/build
|
2021-03-07 20:42:48 +00:00
|
|
|
run: |
|
2021-03-13 14:59:28 +00:00
|
|
|
$workspace = $env:RUNNER_WORKSPACE -replace '\\', '/'
|
2021-03-07 20:42:48 +00:00
|
|
|
cmake $env:GITHUB_WORKSPACE -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DURDE_VECTOR_ISA=sse41 `
|
2021-03-13 16:58:20 +00:00
|
|
|
-DCMAKE_TOOLCHAIN_FILE="$workspace/vcpkg-qt-$env:Qt_VERSION/scripts/buildsystems/vcpkg.cmake" `
|
2021-03-07 20:42:48 +00:00
|
|
|
-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded `
|
2021-03-13 14:59:28 +00:00
|
|
|
-DCMAKE_C_COMPILER="$workspace/LLVM/bin/clang-cl.exe" `
|
|
|
|
-DCMAKE_CXX_COMPILER="$workspace/LLVM/bin/clang-cl.exe" `
|
|
|
|
-DCMAKE_LINKER="$workspace/LLVM/bin/lld-link.exe" `
|
|
|
|
-DLLVM_ROOT_DIR="$workspace/LLVM" `
|
2021-03-07 20:42:48 +00:00
|
|
|
-DURDE_DLPACKAGE=urde-$env:GITHUB_RUN_NUMBER-win32-clang-x86_64
|
|
|
|
|
2021-03-02 02:36:10 +00:00
|
|
|
- name: Build
|
|
|
|
working-directory: ${{github.workspace}}/build
|
|
|
|
run: cmake --build . --config $BUILD_TYPE
|
2021-03-07 20:42:48 +00:00
|
|
|
|
2021-03-08 01:16:26 +00:00
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
2021-03-07 20:42:48 +00:00
|
|
|
with:
|
|
|
|
name: urde-windows-clang-x86_64
|
|
|
|
path: |
|
|
|
|
build/Binaries/urde.exe
|
|
|
|
build/Binaries/hecl.exe
|
|
|
|
build/Binaries/hecl-gui.exe
|
|
|
|
build/Binaries/visigen.exe
|