Skip to content

Commit 6971998

Browse files
committed
Add GitHub Actions build
Add exports arg Use jdk not jdk+fx Revert "Use jdk not jdk+fx" This reverts commit e4074b0. Test without 32b JVM 14 Use Adopt Specify shell as bash Reset build file changes use curl Silent mode Follow links Update Jetty Version Revert "Update Jetty Version" This reverts commit cdbb6ad. Skip UI Tests on Windows Skip CUDA tests Use openjdk action Remove unused URLs Add release logic
1 parent 2771bb8 commit 6971998

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

.github/workflows/ci.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: CI
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
build:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
include:
11+
- os: ubuntu-latest
12+
artifact-name: Linux
13+
architecture: x64
14+
build-options: ""
15+
- os: ubuntu-latest
16+
artifact-name: Linux-cuda
17+
architecture: x64
18+
build-options: "-Pcuda -x test"
19+
- os: windows-latest
20+
artifact-name: Win64
21+
architecture: x64
22+
build-options: "-PskipUITests"
23+
- os: windows-latest
24+
artifact-name: Win64-cuda
25+
architecture: x64
26+
build-options: "-PskipUITests -Pcuda -x test"
27+
- os: windows-latest
28+
artifact-name: Win32
29+
architecture: x86
30+
build-options: "-PskipUITests"
31+
- os: macos-latest
32+
artifact-name: macOS
33+
architecture: x64
34+
build-options: ""
35+
name: "Build - ${{ matrix.artifact-name }}"
36+
runs-on: ${{ matrix.os }}
37+
steps:
38+
- uses: actions/checkout@v2
39+
with:
40+
fetch-depth: 0
41+
- uses: joschi/setup-jdk@v2
42+
id: setup-java-14
43+
with:
44+
java-version: 14
45+
architecture: ${{ matrix.architecture }}
46+
- uses: joschi/setup-jdk@v2
47+
with:
48+
java-version: 11
49+
architecture: ${{ matrix.architecture }}
50+
- name: Check
51+
run: ./gradlew check jacocoTestReport jacocoRootReport :ui:jpackage -Pheadless=true -Pgeneration -PlogTests -Pjdk14=${{ steps.setup-java-14.outputs.path }} --stacktrace ${{ matrix.build-options }}
52+
- uses: actions/upload-artifact@v2
53+
with:
54+
name: ${{ matrix.artifact-name }}
55+
path: ui/build/installer
56+
- uses: codecov/codecov-action@v1
57+
name: Upload coverage to Codecov
58+
59+
release:
60+
needs: build
61+
runs-on: ubuntu-latest
62+
if: startsWith(github.ref, 'refs/tags/v')
63+
steps:
64+
- name: Download Artifacts
65+
uses: actions/download-artifact@v2
66+
- name: Upload assets to release
67+
uses: svenstaro/upload-release-action@v2
68+
with:
69+
repo_token: ${{ secrets.GITHUB_TOKEN }}
70+
file: "**/*"
71+
tag: ${{ github.ref }}
72+
overwrite: true
73+
file_glob: true

0 commit comments

Comments
 (0)