Skip to content

Implement Healing Salve #7

Implement Healing Salve

Implement Healing Salve #7

Workflow file for this run

name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Install dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y \
pkg-config \
libsodium-dev \
libgl1-mesa-dev \
libx11-dev libxrandr-dev libxcursor-dev libxi-dev \
libudev-dev libfreetype-dev
- name: Install dependencies (macOS)
if: matrix.os == 'macos-latest'
run: brew install pkg-config libsodium
- name: Install dependencies (Windows, MSYS2/MinGW64)
if: matrix.os == 'windows-latest'
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: >-
mingw-w64-x86_64-gcc
mingw-w64-x86_64-cmake
mingw-w64-x86_64-ninja
mingw-w64-x86_64-pkgconf
mingw-w64-x86_64-libsodium
git
- name: Configure (Unix)
if: matrix.os != 'windows-latest'
run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
- name: Build (Unix)
if: matrix.os != 'windows-latest'
run: cmake --build build
- name: Configure (Windows)
if: matrix.os == 'windows-latest'
shell: msys2 {0}
run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
- name: Build (Windows)
if: matrix.os == 'windows-latest'
shell: msys2 {0}
run: cmake --build build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: secure_card-${{ matrix.os }}
path: |
build/secure_card*
build/resources
build/start_game.*
if-no-files-found: warn