forked from avaraline/Avara
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (78 loc) · 2.71 KB
/
avara-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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: C/C++ CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
Ubuntu:
name: Ubuntu Latest
runs-on: ubuntu-latest
steps:
- name: install dependencies
run: |
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
sudo apt-get update -y -qq
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libegl1-mesa-dev libgles2-mesa-dev libdirectfb-dev
- uses: actions/checkout@v2
- name: make
run: make -j
- name: Run headless test
uses: GabrielBB/[email protected]
with:
run: make tests
Windows:
name: Windows
runs-on: windows-latest
steps:
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
install: rsync git zip mingw-w64-x86_64-SDL2 mingw-w64-x86_64-clang mingw-w64-x86_64-glbinding mingw-w64-x86_64-glew make
- uses: actions/checkout@v2
- name: make
shell: msys2 {0}
run: |
make set-version
make -j winapp
make tests
- name: deploy nightly
if: startsWith(github.repository_owner, 'avaraline') && endsWith(github.ref, 'main')
uses: WebFreak001/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: https://uploads.github.com/repos/avaraline/Avara/releases/28954246/assets{?name,label}
release_id: 28954246
asset_path: ./build-main/WinAvara.zip
asset_name: Avara-Windows-Nightly-$$.zip
asset_content_type: application/zip
max_releases: 1
macOS:
name: macOS
runs-on: macOS-latest
steps:
- name: install dependencies
run: |
wget -q "https://www.libsdl.org/release/SDL2-2.0.14.dmg"
hdiutil attach SDL2-2.0.14.dmg
sudo cp -R /Volumes/SDL2/SDL2.framework /Library/Frameworks/
- uses: actions/checkout@v2
- name: make
run: make -j macapp SIGNING_ID=NONE
- name: make tests
run: make tests
- name: print env variables
run: echo $GITHUB_REPOSITORY && echo $GITHUB_REF
- name: deploy nightly
if: startsWith(github.repository_owner, 'avaraline') && endsWith(github.ref, 'main')
uses: WebFreak001/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: https://uploads.github.com/repos/avaraline/Avara/releases/28954246/assets{?name,label}
release_id: 28954246
asset_path: ./build/MacAvara.zip
asset_name: Avara-macOS-Nightly-$$.zip
asset_content_type: application/zip
max_releases: 1