Skip to content

Commit

Permalink
feat(ci): add ci.yml github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstovrob authored Dec 17, 2024
1 parent d0c71b7 commit 71ff34b
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: MIT-GAME-CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up CMake
run: sudo apt-get install -y cmake

- name: Build Debug
run: |
chmod +x ./maker.sh
./maker.sh debug
if: matrix.os == 'ubuntu-latest'

- name: Build Release for Linux
run: |
chmod +x ./maker.sh
./maker.sh build
if: matrix.os == 'ubuntu-latest'

- name: Build Release for Windows
run: |
choco install cmake --version 3.19.0
chmod +x ./maker.sh
./maker.sh build
if: matrix.os == 'windows-latest'

- name: Build Release for macOS
run: |
brew install cmake
chmod +x ./maker.sh
./maker.sh build
if: matrix.os == 'macos-latest'

- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ runner.os }}-build
path: ./Build/*

0 comments on commit 71ff34b

Please sign in to comment.