mirror of
https://github.com/amhndu/SimpleNES.git
synced 2025-04-02 10:21:43 -04:00
73 lines
1.5 KiB
YAML
73 lines
1.5 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build_linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install -y libsfml-dev
|
|
|
|
- name: Build
|
|
run: |
|
|
mkdir build/ && cd build/
|
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
make -j4
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: SimpleNES-linux
|
|
path: build/SimpleNES
|
|
|
|
|
|
build_macos:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
brew install sfml
|
|
|
|
- name: Build
|
|
run: |
|
|
mkdir build/ && cd build/
|
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
make -j4
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: SimpleNES-macos
|
|
path: build/SimpleNES
|
|
|
|
build_windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
vcpkg install sfml
|
|
|
|
- name: Build
|
|
run: |
|
|
mkdir build/ && cd build/
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake ..
|
|
cmake --build .
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: SimpleNES-win.exe
|
|
path: build/SimpleNES.exe
|