mirror of
https://github.com/Xeeynamo/sotn-decomp.git
synced 2024-11-23 13:09:44 +00:00
81c9212460
I noticed a few deprecation warnings so went through and updated all the "uses" dependencies to the latest.
64 lines
1.7 KiB
YAML
64 lines
1.7 KiB
YAML
name: Build C code
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'include/**'
|
|
- 'src/**'
|
|
- 'cmake/**'
|
|
- 'CMakeLists*'
|
|
pull_request:
|
|
paths:
|
|
- 'include/**'
|
|
- 'src/**'
|
|
- 'cmake/**'
|
|
- 'CMakeLists*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install requirements
|
|
run: sudo apt-get update && sudo apt-get install build-essential libsdl2-dev
|
|
- name: Clone repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.ref }}
|
|
submodules: false
|
|
- name: Build
|
|
run: |
|
|
cmake -B ${{github.workspace}}/pc
|
|
cmake --build ${{github.workspace}}/pc --config Release
|
|
|
|
build-macos:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Install requirements
|
|
run: brew install SDL2
|
|
- name: Clone repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.ref }}
|
|
submodules: false
|
|
- name: Build
|
|
run: |
|
|
cmake -B ${{github.workspace}}/pc
|
|
cmake --build ${{github.workspace}}/pc --config Release
|
|
|
|
build-windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Install requirements
|
|
run: |
|
|
mkdir C:\temp-sdl2
|
|
powershell Invoke-WebRequest 'https://github.com/libsdl-org/SDL/releases/download/release-2.28.5/SDL2-devel-2.28.5-VC.zip' -OutFile C:\temp-sdl2\SDL2-devel-2.28.5-VC.zip
|
|
7z x C:\temp-sdl2\SDL2-devel-2.28.5-VC.zip -oC:\temp-sdl2
|
|
- name: Clone repo
|
|
uses: actions/checkout@v4
|
|
- name: Build
|
|
run: |
|
|
cmake -B ${{github.workspace}}/pc -DCMAKE_BUILD_TYPE=Release -DSDL2_PATH=C:\temp-sdl2\SDL2-2.28.5
|
|
cmake --build ${{github.workspace}}/pc --config Release |