-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (59 loc) · 1.6 KB
/
ictdroid-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
name: ICTDroid CI
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.8.2
- name: Setup Python
uses: actions/[email protected]
with:
python-version: '3.10'
- name: Install Python Requirements
run: python -m pip install requests coloredlogs
# Build for Windows
- name: Run Build Script for Windows
run: python ./scripts/build.py windows
- name: Upload Windows Build
uses: actions/upload-artifact@v3
with:
name: ICTDroid-windows-x64
path: build/
- name: Remove Build Directory
run: rm -rf ./build
# Build for Linux
- name: Run Build Script for Linux
run: python ./scripts/build.py linux
- name: Upload Linux Build
uses: actions/upload-artifact@v3
with:
name: ICTDroid-linux-x64
path: build/
- name: Remove Build Directory
run: rm -rf ./build
# Build for Mac OS X
- name: Run Build Script for Mac OS X
run: python ./scripts/build.py macosx
- name: Upload Mac OS X Build
uses: actions/upload-artifact@v3
with:
name: ICTDroid-darwin-x64
path: build/
- name: Remove Build Directory
run: rm -rf ./build