Skip to content

Commit c982d74

Browse files
Merge branch 'main' into bugfix/fix-mappings
# Conflicts: # documentation/developer-guide/modules/tooling-guide/pages/java-aspect-tooling.adoc
2 parents ed75820 + d0127a8 commit c982d74

File tree

2,039 files changed

+52320
-47184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,039 files changed

+52320
-47184
lines changed
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Check New Pull Request
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
jobs:
7+
build-and-test:
8+
name: ${{ matrix.os }} build
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: true
12+
matrix:
13+
os: [windows-latest, ubuntu-20.04]
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v3
17+
18+
- name: Setup JDK
19+
uses: graalvm/setup-graalvm@v1
20+
with:
21+
version: '22.3.1'
22+
java-version: '17'
23+
components: 'native-image,js'
24+
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
native-image-job-reports: 'true'
26+
27+
- name: Cache Maven packages
28+
uses: actions/cache@v3
29+
with:
30+
path: ~/.m2/repository
31+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
32+
restore-keys: |
33+
${{ runner.os }}-maven-
34+
35+
- name: Configure Pagefile (Windows)
36+
if: matrix.os == 'windows-latest'
37+
# Fix for "LINK : fatal error LNK1171: unable to load mspdbcore.dll (error code: 1455)":
38+
# This seems to be caused by running out of memory; increasing page file
39+
# size suggested here:
40+
# https://github.com/actions/virtual-environments/issues/3420#issuecomment-861342418
41+
uses: al-cheb/[email protected]
42+
with:
43+
minimum-size: 16GB
44+
maximum-size: 16GB
45+
disk-root: "C:"
46+
47+
- name: Set Swap Space (Linux)
48+
if: matrix.os == 'ubuntu-20.04'
49+
uses: pierotofy/set-swap-space@master
50+
with:
51+
swap-size-gb: 12
52+
53+
- name: Build and run tests
54+
run: |
55+
java --version
56+
export MAVEN_OPTS="-Xmx4096m"
57+
mvn -B -pl '!org.eclipse.esmf:samm-cli' clean install -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
58+
cd tools/samm-cli
59+
mvn -B clean verify -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
60+
mvn -B verify -Pnative -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
61+
shell: bash
62+
63+
- name: Upload executable jar
64+
# We only need one OS job to upload the jar
65+
if: matrix.os == 'ubuntu-20.04'
66+
uses: actions/upload-artifact@v3
67+
with:
68+
name: samm-cli-jar
69+
path: tools/samm-cli/target/samm-cli-*.jar
70+
71+
- name: Upload binary (Windows)
72+
if: matrix.os == 'windows-latest'
73+
uses: actions/upload-artifact@v3
74+
with:
75+
name: samm-cli-binary-${{ matrix.os }}
76+
path: |
77+
tools/samm-cli/target/samm.exe
78+
tools/samm-cli/target/*.dll
79+
tools/samm-cli/target/lib/
80+
81+
- name: Upload binary (Linux/Mac)
82+
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'macos-latest'
83+
uses: actions/upload-artifact@v3
84+
with:
85+
name: samm-cli-binary-${{ matrix.os }}
86+
path: |
87+
tools/samm-cli/target/samm

.github/workflows/pull_request_check.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)