Add new icon #16
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: Continuous Integration | |
on: | |
push: | |
branches: [ "main" ] | |
tags-ignore: ['*'] | |
paths-ignore: ['**.md'] | |
pull_request: | |
branches: [ "main" ] | |
paths-ignore: ['**.md'] | |
jobs: | |
build: | |
name: ${{ matrix.config.name }} | |
runs-on: ${{ matrix.config.os }} | |
defaults: | |
run: | |
shell: ${{ matrix.config.shell }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { | |
name: Linux GCC, | |
os: ubuntu-latest, | |
compiler: gcc, | |
shell: bash, | |
} | |
- { | |
name: macOS Clang, | |
os: macos-latest, | |
compiler: clang, | |
shell: bash, | |
} | |
- { | |
name: MSYS2 UCRT64, | |
os: windows-latest, | |
compiler: gcc, | |
shell: 'msys2 {0}', | |
msystem: ucrt64, | |
msys-env: mingw-w64-ucrt-x86_64, | |
} | |
steps: | |
- name: Install dependencies (Linux) | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install \ | |
cmake \ | |
libsdl2-dev \ | |
libsdl2-mixer-dev | |
- name: Install dependencies (macOS) | |
if: runner.os == 'macOS' | |
env: | |
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1 | |
run: | | |
brew update || true | |
brew install \ | |
cmake \ | |
sdl2 \ | |
sdl2_mixer | |
- name: Install dependencies (MSYS2) | |
if: matrix.config.shell == 'msys2 {0}' | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: ${{ matrix.config.msystem }} | |
update: false | |
install: >- | |
${{ matrix.config.msys-env }}-gcc | |
${{ matrix.config.msys-env }}-cmake | |
${{ matrix.config.msys-env }}-SDL2 | |
${{ matrix.config.msys-env }}-SDL2_mixer | |
- uses: actions/checkout@v3 | |
- name: Configure | |
env: | |
CC: ${{ matrix.config.compiler }} | |
CFLAGS: -Wall | |
run: | | |
cmake -E make_directory cmake-build | |
cmake -S . -B cmake-build | |
- name: Build | |
run: | | |
cmake --build cmake-build --config Release | |
- name: Upload artifacts (Windows) | |
uses: actions/upload-artifact@v3 | |
if: runner.os == 'Windows' | |
with: | |
name: rotten-${{ github.sha }}-win64 | |
path: | | |
cmake-build/rotten.exe | |
cmake-build/rotten_sw.exe | |
misc/wad/rotten.wad | |
- name: Upload artifacts (Linux) | |
uses: actions/upload-artifact@v3 | |
if: runner.os == 'Linux' | |
with: | |
name: rotten-${{ github.sha }}-Linux | |
path: | | |
cmake-build/rotten | |
cmake-build/rotten_sw | |
misc/wad/rotten.wad | |
- name: Upload artifacts (macOS) | |
uses: actions/upload-artifact@v3 | |
if: runner.os == 'macOS' | |
with: | |
name: rotten-${{ github.sha }}-macOS | |
path: | | |
cmake-build/rotten | |
cmake-build/rotten_sw | |
misc/wad/rotten.wad |