Skip to content

Commit 36a4679

Browse files
committed
feat(ci): add build for arm and x86
1 parent 6ce0294 commit 36a4679

File tree

2 files changed

+108
-0
lines changed

2 files changed

+108
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7+
8+
name: arm64-Platform Matrix
9+
10+
on:
11+
push:
12+
branches: [ 'develop', 'master', 'release_**' ]
13+
pull_request:
14+
branches: [ 'develop', 'master', 'release_**' ]
15+
16+
jobs:
17+
build:
18+
19+
name: ${{ matrix.os }} - ${{ matrix.arch }}
20+
runs-on: ${{ matrix.runner }}
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
include:
26+
# Apple Silicon runners (using latest available)
27+
# see https://github.com/actions/runner-images?tab=readme-ov-file#available-images
28+
- os: macOS
29+
arch: arm64
30+
runner: macos-latest
31+
# Linux arm runners
32+
- os: Linux
33+
arch: arm64
34+
runner: ubuntu-24.04-arm
35+
36+
permissions:
37+
contents: read
38+
39+
steps:
40+
- name: Checkout sources
41+
uses: actions/checkout@v4
42+
- name: Set up JDK 17
43+
uses: actions/setup-java@v4
44+
with:
45+
java-version: '17'
46+
distribution: 'temurin'
47+
48+
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
49+
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
50+
- name: Setup Gradle
51+
uses: gradle/actions/setup-gradle@v4
52+
53+
- name: Build with Gradle Wrapper
54+
run: ./gradlew clean build --no-daemon
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7+
8+
name: X86_64-Platform Matrix
9+
10+
on:
11+
push:
12+
branches: [ 'develop', 'master', 'release_**' ]
13+
pull_request:
14+
branches: [ 'develop', 'master', 'release_**' ]
15+
16+
jobs:
17+
build:
18+
19+
name: ${{ matrix.os }} - ${{ matrix.arch }}
20+
runs-on: ${{ matrix.runner }}
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
include:
26+
# Macos Intel runners
27+
# see https://github.com/actions/runner-images?tab=readme-ov-file#available-images
28+
- os: macOS
29+
arch: x86_64
30+
runner: macos-13
31+
# Linux x86_64 runners
32+
- os: Linux
33+
arch: x86_64
34+
runner: ubuntu-latest
35+
36+
permissions:
37+
contents: read
38+
39+
steps:
40+
- name: Checkout sources
41+
uses: actions/checkout@v4
42+
- name: Set up JDK 8
43+
uses: actions/setup-java@v4
44+
with:
45+
java-version: '8'
46+
distribution: 'zulu'
47+
48+
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
49+
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
50+
- name: Setup Gradle
51+
uses: gradle/actions/setup-gradle@v4
52+
53+
- name: Build with Gradle Wrapper
54+
run: ./gradlew clean build --no-daemon

0 commit comments

Comments
 (0)