-
Notifications
You must be signed in to change notification settings - Fork 2
83 lines (73 loc) · 2.25 KB
/
maven.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
name: quarkus-qbiccs Continuous Integration
on:
push:
paths-ignore:
- '**.md'
- '**.adoc'
branches: [ main ]
pull_request:
paths-ignore:
- '**.md'
- '**.adoc'
branches: [ main ]
types: [ opened, synchronize, reopened ]
jobs:
build-matrix:
name: "Matrix build"
strategy:
fail-fast: false
matrix:
llvm-version: ["15"]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install LLVM
uses: KyleMayes/install-llvm-action@v1.6.1
with:
version: ${{ matrix.llvm-version }}
directory: ${{ runner.temp }}/llvm-install
- name: Install `libgcc` (Linux only)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install -y libgcc-11-dev
- name: Install libunwind (Linux only)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install -y libunwind-dev
- name: Install OpenJDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
# Temporary: avoid quarkus issues with maven >= 3.8.x
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.8.7
- name: Clone project
uses: actions/checkout@v3
with:
path: quarkus-qbicc
submodules: recursive
- name: Build extension
run: |
mvn --batch-mode install
working-directory: quarkus-qbicc
- name: Clone knative-quarkus-bench
uses: actions/checkout@v3
with:
repository: ibm/knative-quarkus-bench
path: knative-quarkus-bench
- name: Compile sleep benchmark
env:
MAVEN_OPTS: -Xss8m -Xms1024M -Xmx4096M
run: |
mvn --batch-mode package -Dquarkus.container-image.build=false -Pqbicc
working-directory: knative-quarkus-bench/benchmarks/sleep
- name: Run sleep benchmark
# TODO: Disabled on macos because it isn't working in the CI environment (not sure why..)
if: matrix.os != 'macos-latest'
run: ./quarkus-qbicc/.github/workflows/testSleep.sh
env:
QUARKUS_HTTP_HOST: 127.0.0.1
QUARKUS_HTTP_PORT: 8081