-
Notifications
You must be signed in to change notification settings - Fork 8
56 lines (46 loc) · 1.16 KB
/
deploy.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
name: Build and Deploy
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install deps
run: ./ci_install.sh
- name: "Build → armeabi-v7a"
run: |
. env.sh
./build.sh --all armeabi-v7a
- name: "Build → arm64-v8a"
run: |
. env.sh
./build.sh --all arm64-v8a
- name: "Build → x86"
run: |
. env.sh
./build.sh --all x86
- name: "Build → x86_64"
run: |
. env.sh
./build.sh --all x86_64
- name: Archive (with Irrlicht)
run: |
shopt -s extglob
cd deps && zip -9r ../deps.zip -- */!(PNG|JPEG)
ls -lh ../deps.zip
- name: Archive (without Irrlicht)
run: |
shopt -s extglob
cd deps && zip -9r ../deps-lite.zip -- */!(Irrlicht)
ls -lh ../deps-lite.zip
- name: Upload and tag
uses: pyTooling/Actions/releaser@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: 'latest'
files: |
deps.zip
deps-lite.zip
if: github.event_name == 'push' && github.ref == 'refs/heads/master'