Skip to content

Add basic github actions #9

Add basic github actions

Add basic github actions #9

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 5
- 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: SimpleNES
build_macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 5
- 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: SimpleNES
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 5
- 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: SimpleNES.exe