diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7eef2ce..4a34eb3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 @@ -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