-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 957 Bytes
/
c-cpp.yml
File metadata and controls
42 lines (35 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: C/C++ with Make
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake xorg-dev libglu1-mesa-dev
git clone https://github.com/raysan5/raylib.git --depth=1
cd raylib/src
make PLATFORM=PLATFORM_DESKTOP
sudo make install
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew install raylib make
- name: Build with Make
run: make all
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: stegachat-${{ matrix.os }}
path: ./bin/stegachat