Skip to content

Commit

Permalink
Add github action that builds and test the project.
Browse files Browse the repository at this point in the history
Disable verification because I couldn't get it to work in
github action enviroment, I suspect it has something to do
with caching/proxying maven, but I'm not sure
  • Loading branch information
ionspin committed Jul 14, 2024
1 parent aa4202c commit 3e9ba11
Show file tree
Hide file tree
Showing 13 changed files with 408 additions and 3,218 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/github-pull-request-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

name: Build project and run tests.
run-name: ${{ github.actor }} pull request
on:
pull_request:
branches:
- main

env:
CHROME_BIN: "chrome"
jobs:
Build-And-Test-Linux:
runs-on: ubuntu-latest
steps:
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Checkout
uses: actions/checkout@v4
- uses: browser-actions/setup-chrome@v1
- run: ./linuxBuild.sh
Build-And-Test-Mac:
runs-on: macos-latest
steps:
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Checkout
uses: actions/checkout@v4
- uses: browser-actions/setup-chrome@v1
- run: ./macBuild.sh
Build-And-Test-Windows:
runs-on: windows-latest
steps:
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Checkout
uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
- uses: browser-actions/setup-chrome@v1
- shell: msys2 {0}
run: |
./windowsBuild.sh
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ build/
/buildSrc/out
/bignum/node_modules
zignum/
.kotlin/
9 changes: 0 additions & 9 deletions bignum/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ kotlin {
if (hostOs == HostOs.LINUX) {
linuxX64("linux")
if (ideaActive.not()) {
linuxArm32Hfp()
linuxArm64()
androidNativeX64()
androidNativeX86()
Expand Down Expand Up @@ -225,14 +224,6 @@ kotlin {

if (ideaActive.not()) {

val linuxArm32HfpMain by getting {
dependsOn(nativeMain)
}

val linuxArm32HfpTest by getting {
dependsOn(nativeTest)
}

val linuxArm64Main by getting {
dependsOn(nativeMain)
}
Expand Down
3 changes: 0 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,14 @@ buildscript {

repositories {
mavenCentral()
gradlePluginPortal()
}

dependencies {
// classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:${Versions.dokkaPlugin}")
}
}

allprojects {

repositories {
mavenCentral()
maven {
Expand Down
6 changes: 6 additions & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ plugins {
`kotlin-dsl`
}

buildscript {
repositories {
mavenCentral()
}
}

repositories {
mavenCentral()
}
6 changes: 3 additions & 3 deletions buildSrc/src/main/kotlin/Deps.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
*/

object Versions {
val kotlinCoroutines = "1.8.0-RC2"
val kotlin = "1.9.21"
val kotlinSerialization = "1.6.2"
val kotlinCoroutines = "1.9.0-RC"
val kotlin = "2.0.0"
val kotlinSerialization = "1.7.1"
val dokkaPlugin = "1.9.10"
}

Expand Down
3,072 changes: 80 additions & 2,992 deletions gradle/verification-metadata.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
#
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 3e9ba11

Please sign in to comment.