forked from kivutar/rombundler
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.32 KB
/
ci.yml
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
43
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
defaults:
run:
shell: bash
jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt-get update -q
- run: sudo apt-get install libopenal-dev xorg-dev libgl1-mesa-dev libglfw3-dev -y --allow-unauthenticated
- run: make
build_osx:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: make
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- run: choco install wget --ignore-checksums
- run: mkdir lib
- run: wget --no-check-certificate http://www.openal-soft.org/openal-binaries/openal-soft-1.21.0-bin.zip
- run: 7z x openal-soft-1.21.0-bin.zip -o/c/
- run: cp /c/openal-soft-1.21.0-bin/libs/Win64/* ./lib
- run: wget https://github.com/glfw/glfw/releases/download/3.3.4/glfw-3.3.4.bin.WIN64.zip
- run: 7z x glfw-3.3.4.bin.WIN64.zip -o/c/
- run: cp /c/glfw-3.3.4.bin.WIN64/lib-mingw-w64/libglfw3* ./lib
- run: cp /c/glfw-3.3.4.bin.WIN64/lib-mingw-w64/glfw3.dll .
- run: echo "CFLAGS=-I\"/c/openal-soft-1.21.0-bin/include/\" -I\"/c/glfw-3.3.4.bin.WIN64/include/\"" >> $GITHUB_ENV
- run: echo "LDFLAGS=-L./lib" >> $GITHUB_ENV
- run: CC=gcc make