Skip to content

Update continuous_integration.yml #3

Update continuous_integration.yml

Update continuous_integration.yml #3

name: Continuous Integration
on:
push:
branches-ignore:
- build_windows_dependencies
pull_request:
branches-ignore:
- build_windows_dependencies
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Visual Studio 64-bit",
os: windows-2019,
build_type: "Release",
extra_options: "-A x64",
package_name: "vs_x64"
}
- {
name: "Visual Studio 32-bit",
os: windows-2019,
build_type: "Release",
extra_options: "-A Win32",
package_name: "vs_win32"
}
- {
name: "Linux GCC",
os: ubuntu-20.04,
build_type: "Release",
extra_options: "",
package_name: "linux_gcc"
}
- {
name: "Linux Clang",
os: ubuntu-20.04,
build_type: "Release",
extra_options: "-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++",
package_name: "linux_clang"
}
- {
name: "macOS Clang",
os: macos-11,
build_type: "Release",
extra_options: "",
package_name: "macos"
}
steps:
- uses: actions/checkout@v1
- name: Install Dependencies
shell: bash
run: |
mkdir build
cd build
if [[ "${{ runner.os }}" == 'Windows' ]]; then
declare -x DEPS_FILENAME=windows_dependencies_v4.zip
curl -LO https://github.com/coelckers/prboom-plus/releases/download/windows_dependencies/${DEPS_FILENAME}
7z x ${DEPS_FILENAME} -o..
elif [[ "${{ runner.os }}" == 'Linux' ]]; then
sudo apt update
sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev \
libpcre3-dev libmad0-dev libfluidsynth-dev libdumb1-dev libvorbis-dev libportmidi-dev \
libasound2-dev
elif [[ "${{ runner.os }}" == 'macOS' ]]; then
brew install sdl2 sdl2_image sdl2_mixer sdl2_net pcre mad fluidsynth dumb portmidi
fi
- name: Configure
shell: bash
run: |
cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} ${{ matrix.config.extra_options }} ../prboom2
- name: Build
shell: bash
run: |
cd build
if [[ "${{ runner.os }}" == 'Windows' ]]; then
cmake --build . --config ${{ matrix.config.build_type }} -- -maxcpucount -verbosity:minimal
else
cmake --build . -- --jobs=2 --keep-going
fi
- name: Create Package
shell: bash
run: |
cd build
mkdir package
if [[ "${{ runner.os }}" == 'Windows' ]]; then
cp ${{ matrix.config.build_type }}/prboom-plus.exe ${{ matrix.config.build_type }}/prboom-plus-game-server.exe prboom-plus.wad package
elif [[ "${{ runner.os }}" == 'macOS' ]]; then
cp -R Launcher.app package
else
cp prboom-plus prboom-plus-game-server prboom-plus.wad package
fi
cp config.h package
- name: Upload Package
uses: actions/upload-artifact@v1
with:
path: build/package
name: ${{ matrix.config.package_name }}
- name: List Build Directory
if: always()
shell: bash
run: |
git status
ls -lR build
build-ps2:
name: PS2 build
runs-on: ubuntu-latest
container: ps2dev/ps2dev:latest
steps:
- name: Install dependencies
run: |
apk add cmake build-base git zip gawk python3 py3-pip bash
- name: git checkout
uses: actions/checkout@v4
- name: Compile PS2
run: |

Check failure on line 133 in .github/workflows/continuous_integration.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/continuous_integration.yml

Invalid workflow file

You have an error in your yaml syntax on line 133
cmake -S . -B build -DBUILD_GL=OFF "-DCMAKE_TOOLCHAIN_FILE=${PS2DEV}/share/ps2dev.cmake" "-DCMAKE_INSTALL_PREFIX=${PS2SDK}/ports" "-DCMAKE_PREFIX_PATH=${PS2SDK}/ports"
cmake --build build