This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
deps: update SFML version to 2.6.1 #80
Workflow file for this run
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: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest] | |
name: ${{matrix.os}} | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup enviroment (Ubuntu) | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt update | |
sudo apt install libudev-dev libx11-dev libxcursor-dev libxrandr-dev libgl1-mesa-dev libalut-dev libvorbis-dev libsndfile1-dev libsfml-dev | |
- name: Setup clang (Windows) | |
if: matrix.os == 'windows-latest' | |
run: echo "PATH=$PATH:C:/msys64/mingw64/bin" >> $GITHUB_ENV | |
- name: Setup ninja (Ubuntu) | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt install ninja-build | |
- name: Setup cppkg | |
run: cargo install --git https://github.com/ShenMian/cppkg | |
- name: Build (Release) | |
run: cppkg build -r | |
- name: Upload binaries (Windows) | |
if: matrix.os == 'windows-latest' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sokoban-windows | |
path: target/release/sokoban.exe | |
- name: Upload binaries (Ubuntu) | |
if: matrix.os == 'ubuntu-latest' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sokoban-ubuntu | |
path: target/release/sokoban |