mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 00:42:08 +00:00
- updated continuous integration workflow
* bump GCC targets to 9 and 12 * bump Clang targets to 11 and 15 * use Ubuntu 22.04 images * use actual versions of checkout and upload-artifact actions * remove lots of needless formatting, double quotes in particular * remove unused dependencies * remove obsolete Strawberry Perl workaround
This commit is contained in:
parent
e19ce3ead4
commit
0bb0550d2f
1 changed files with 54 additions and 68 deletions
122
.github/workflows/continuous_integration.yml
vendored
122
.github/workflows/continuous_integration.yml
vendored
|
@ -10,73 +10,63 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
- {
|
- name: Visual Studio 2022
|
||||||
name: "Visual Studio 2022",
|
os: windows-2022
|
||||||
os: windows-2022,
|
extra_options: -DCMAKE_TOOLCHAIN_FILE=build/vcpkg/scripts/buildsystems/vcpkg.cmake
|
||||||
extra_options: "-A x64 -DCMAKE_TOOLCHAIN_FILE=build/vcpkg/scripts/buildsystems/vcpkg.cmake",
|
build_type: Release
|
||||||
build_type: "Release"
|
|
||||||
}
|
- name: Visual Studio 2022
|
||||||
- {
|
os: windows-2022
|
||||||
name: "Visual Studio 2019",
|
extra_options: -DCMAKE_TOOLCHAIN_FILE=build/vcpkg/scripts/buildsystems/vcpkg.cmake
|
||||||
os: windows-2019,
|
build_type: Debug
|
||||||
extra_options: "-A x64 -DCMAKE_TOOLCHAIN_FILE=build/vcpkg/scripts/buildsystems/vcpkg.cmake",
|
|
||||||
build_type: "Release"
|
- name: Visual Studio 2019
|
||||||
}
|
os: windows-2019
|
||||||
- {
|
extra_options: -DCMAKE_TOOLCHAIN_FILE=build/vcpkg/scripts/buildsystems/vcpkg.cmake
|
||||||
name: "Visual Studio 2019",
|
build_type: Release
|
||||||
os: windows-2019,
|
|
||||||
extra_options: "-A x64 -DCMAKE_TOOLCHAIN_FILE=build/vcpkg/scripts/buildsystems/vcpkg.cmake",
|
- name: macOS
|
||||||
build_type: "Debug"
|
os: macos-12
|
||||||
}
|
deps_cmdline: brew install libvpx webp
|
||||||
- {
|
build_type: Release
|
||||||
name: "macOS",
|
|
||||||
os: macos-12,
|
- name: macOS
|
||||||
deps_cmdline: "brew install libvpx webp",
|
os: macos-12
|
||||||
build_type: "Release"
|
extra_options: -G Xcode -DDYN_OPENAL=OFF
|
||||||
}
|
deps_cmdline: brew install libvpx webp
|
||||||
- {
|
build_type: Debug
|
||||||
name: "macOS",
|
|
||||||
os: macos-12,
|
- name: Linux GCC 9
|
||||||
extra_options: "-G Xcode -DDYN_OPENAL=OFF",
|
os: ubuntu-22.04
|
||||||
deps_cmdline: "brew install libvpx fluidsynth mpg123 libsndfile webp",
|
extra_options: -DCMAKE_C_COMPILER=gcc-9 -DCMAKE_CXX_COMPILER=g++-9
|
||||||
build_type: "Debug"
|
deps_cmdline: sudo apt update && sudo apt install libsdl2-dev libvpx-dev libgtk2.0-dev libwebp-dev
|
||||||
}
|
build_type: RelWithDebInfo
|
||||||
- {
|
|
||||||
name: "Linux GCC 7",
|
- name: Linux GCC 12
|
||||||
os: ubuntu-20.04,
|
os: ubuntu-22.04
|
||||||
extra_options: "-DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7",
|
extra_options: -DCMAKE_C_COMPILER=gcc-12 -DCMAKE_CXX_COMPILER=g++-12
|
||||||
deps_cmdline: "sudo apt update && sudo apt install g++-7 libsdl2-dev libvpx-dev libgtk2.0-dev libwebp-dev",
|
deps_cmdline: sudo apt update && sudo apt install libsdl2-dev libvpx-dev libgtk-3-dev libwebp-dev
|
||||||
build_type: "RelWithDebInfo"
|
build_type: MinSizeRel
|
||||||
}
|
|
||||||
- {
|
- name: Linux Clang 11
|
||||||
name: "Linux GCC 11",
|
os: ubuntu-22.04
|
||||||
os: ubuntu-20.04,
|
extra_options: -DCMAKE_C_COMPILER=clang-11 -DCMAKE_CXX_COMPILER=clang++-11 -DDYN_OPENAL=OFF
|
||||||
extra_options: "-DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11",
|
deps_cmdline: sudo apt update && sudo apt install clang-11 libsdl2-dev libvpx-dev libopenal-dev libwebp-dev
|
||||||
deps_cmdline: "sudo apt update && sudo apt install g++-11 libsdl2-dev libvpx-dev libgtk-3-dev libwebp-dev",
|
build_type: Debug
|
||||||
build_type: "MinSizeRel"
|
|
||||||
}
|
- name: Linux Clang 15
|
||||||
- {
|
os: ubuntu-22.04
|
||||||
name: "Linux Clang 9",
|
extra_options: -DCMAKE_C_COMPILER=clang-15 -DCMAKE_CXX_COMPILER=clang++-15
|
||||||
os: ubuntu-20.04,
|
deps_cmdline: sudo apt update && sudo apt install clang-15 libsdl2-dev libvpx-dev libwebp-dev
|
||||||
extra_options: "-DCMAKE_C_COMPILER=clang-9 -DCMAKE_CXX_COMPILER=clang++-9 -DDYN_OPENAL=OFF",
|
build_type: Release
|
||||||
deps_cmdline: "sudo apt update && sudo apt install clang-9 libsdl2-dev libvpx-dev libopenal-dev libfluidsynth-dev libmpg123-dev libsndfile1-dev libwebp-dev",
|
|
||||||
build_type: "Debug"
|
|
||||||
}
|
|
||||||
- {
|
|
||||||
name: "Linux Clang 12",
|
|
||||||
os: ubuntu-20.04,
|
|
||||||
extra_options: "-DCMAKE_C_COMPILER=clang-12 -DCMAKE_CXX_COMPILER=clang++-12",
|
|
||||||
deps_cmdline: "sudo apt update && sudo apt install clang-12 libsdl2-dev libvpx-dev libwebp-dev",
|
|
||||||
build_type: "Release"
|
|
||||||
}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ matrix.config.deps_cmdline }}" ]]; then
|
if [[ -n "${{ matrix.config.deps_cmdline }}" ]]; then
|
||||||
eval ${{ matrix.config.deps_cmdline }}
|
eval ${{ matrix.config.deps_cmdline }}
|
||||||
fi
|
fi
|
||||||
mkdir build
|
mkdir build
|
||||||
|
@ -85,7 +75,7 @@ jobs:
|
||||||
elif [[ "${{ runner.os }}" == 'Linux' ]]; then
|
elif [[ "${{ runner.os }}" == 'Linux' ]]; then
|
||||||
export ZMUSIC_PACKAGE=zmusic-1.1.9-linux.tar.xz
|
export ZMUSIC_PACKAGE=zmusic-1.1.9-linux.tar.xz
|
||||||
fi
|
fi
|
||||||
if [[ "${ZMUSIC_PACKAGE}" ]]; then
|
if [[ -n "${ZMUSIC_PACKAGE}" ]]; then
|
||||||
cd build
|
cd build
|
||||||
wget -q "https://github.com/coelckers/gzdoom/releases/download/ci_deps/${ZMUSIC_PACKAGE}"
|
wget -q "https://github.com/coelckers/gzdoom/releases/download/ci_deps/${ZMUSIC_PACKAGE}"
|
||||||
tar -xf "${ZMUSIC_PACKAGE}"
|
tar -xf "${ZMUSIC_PACKAGE}"
|
||||||
|
@ -96,15 +86,11 @@ jobs:
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
with:
|
with:
|
||||||
vcpkgDirectory: '${{ github.workspace }}/build/vcpkg'
|
vcpkgDirectory: '${{ github.workspace }}/build/vcpkg'
|
||||||
vcpkgGitCommitId: '65c013b9667ff1f58fb8724209227e5a2e761043'
|
vcpkgGitCommitId: '2c401863dd54a640aeb26ed736c55489c079323b'
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ runner.os }}" == 'Windows' ]]; then
|
|
||||||
# Remove Strawberry Perl from PATH environment variable to avoid usage of libraries it provides
|
|
||||||
export PATH=`echo $PATH | tr ":" "\n" | grep -v "Strawberry" | tr "\n" ":"`
|
|
||||||
fi
|
|
||||||
cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} -DCMAKE_PREFIX_PATH=`pwd`/build/zmusic -DPK3_QUIET_ZIPDIR=ON ${{ matrix.config.extra_options }} .
|
cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} -DCMAKE_PREFIX_PATH=`pwd`/build/zmusic -DPK3_QUIET_ZIPDIR=ON ${{ matrix.config.extra_options }} .
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
@ -129,7 +115,7 @@ jobs:
|
||||||
|
|
||||||
- name: Upload Package
|
- name: Upload Package
|
||||||
if: runner.os == 'Windows' # Remove to store packages of all targets
|
if: runner.os == 'Windows' # Remove to store packages of all targets
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: build/package
|
path: build/package
|
||||||
name: ${{ matrix.config.name }} ${{ matrix.config.build_type }}
|
name: ${{ matrix.config.name }} ${{ matrix.config.build_type }}
|
||||||
|
|
Loading…
Reference in a new issue