Skip to content

Commit

Permalink
Java + Gradle setup in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rongmario committed Feb 11, 2024
1 parent 2996606 commit 803c82b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ jobs:
- name: Make Directory
run: mkdir output

- name: Install Java 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: current

- name: Gradle Build
run: ./gradlew build

- name: Install GCC-Multilib
run: sudo apt-get install gcc-multilib

Expand Down Expand Up @@ -57,6 +72,15 @@ jobs:
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: current

- name: Gradle Build
run: ./gradlew build

- name: Install MSVC
uses: ilammy/msvc-dev-cmd@v1
Expand Down Expand Up @@ -89,6 +113,15 @@ jobs:
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: current

- name: Gradle Build
run: ./gradlew build

- name: Compile
run: gcc -c -arch ${{ matrix.arch[0] }} -fPIC -I${JAVA_HOME}/include -I${JAVA_HOME}/include/darwin ${{ env.PATH_TO_CODE }}.c -o ${{ env.PATH_TO_CODE }}_${{ matrix.arch[1] }}.o
Expand Down

0 comments on commit 803c82b

Please sign in to comment.