-
Notifications
You must be signed in to change notification settings - Fork 49
89 lines (73 loc) · 1.9 KB
/
build.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
82
83
84
85
86
87
88
89
name: Build G-Earth
on:
push:
paths:
- '.github/workflows/**'
- 'G-Earth/**'
- 'pom.xml'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout G-Earth
uses: actions/checkout@v2
- name: Checkout G-Wasm
uses: actions/checkout@v2
with:
repository: sirjonasxx/G-Wasm
path: gwasm
ref: minimal
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
java-package: jdk+fx
distribution: 'liberica'
- name: Install G-Wasm
working-directory: gwasm
run: mvn -B install
- name: Build G-Earth
run: mvn -B package
- name: Zip Build/Mac
run: |
cd ${{ github.workspace }}/Build/Mac/
zip -r ../../build-mac.zip *
- name: Zip Build/Linux
run: |
cd ${{ github.workspace }}/Build/Linux/
zip -r ../../build-linux.zip *
- name: Zip Build/Windows_32bit
run: |
cd ${{ github.workspace }}/Build/Windows_32bit/
zip -r ../../build-win32.zip *
- name: Zip Build/Windows_64bit
run: |
cd ${{ github.workspace }}/Build/Windows_64bit/
zip -r ../../build-win64.zip *
- name: Upload Mac OSX
uses: actions/upload-artifact@v2
with:
name: Mac OSX
path: build-mac.zip
retention-days: 7
- name: Upload Linux
uses: actions/upload-artifact@v2
with:
name: Linux
path: build-linux.zip
retention-days: 7
- name: Upload Windows x32
uses: actions/upload-artifact@v2
with:
name: Windows x32
path: build-win32.zip
retention-days: 7
- name: Upload Windows x64
uses: actions/upload-artifact@v2
with:
name: Windows x64
path: build-win64.zip
retention-days: 7