Skip to content

Commit

Permalink
fix: ci docker (#168)
Browse files Browse the repository at this point in the history
Co-authored-by: Ahmed Moussa <[email protected]>
Signed-off-by: Ahmed Moussa <[email protected]>
Signed-off-by: Curtis Harding <[email protected]>
Signed-off-by: Ahmed Moussa <[email protected]>
  • Loading branch information
curtis-h and hamada147 committed May 27, 2024
1 parent 1ab88ba commit 61a9b5b
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 6 deletions.
45 changes: 44 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,49 @@ jobs:
run: |
brew install autoconf automake libtool
- name: "Install Mac ToolChain"
if: matrix.os-type == 'macos'
run: |
brew tap messense/macos-cross-toolchains
- name: "Install Linux GNU for x86_64"
if: matrix.os-type == 'macos'
run: |
rm '/usr/local/bin/2to3'
rm '/usr/local/bin/2to3-3.11'
rm '/usr/local/bin/2to3-3.12'
rm '/usr/local/bin/python3'
rm '/usr/local/bin/python3.11'
rm '/usr/local/bin/python3.12'
rm '/usr/local/bin/idle3'
rm '/usr/local/bin/idle3.11'
rm '/usr/local/bin/idle3.12'
rm '/usr/local/bin/pydoc3'
rm '/usr/local/bin/pydoc3.11'
rm '/usr/local/bin/pydoc3.12'
rm '/usr/local/bin/python3-config'
rm '/usr/local/bin/python3.11-config'
rm '/usr/local/bin/python3.12-config'
rm -r '/usr/local/lib/node_modules'
brew install --overwrite x86_64-unknown-linux-gnu
- name: "Install Linux GNU for aarch64"
if: matrix.os-type == 'macos'
run: |
brew install --overwrite aarch64-unknown-linux-gnu
- name: "Install Rust Targets"
if: matrix.os-type == 'macos'
run: |
rustup target add armv7-linux-androideabi
rustup target add i686-linux-android
rustup target add aarch64-linux-android
rustup target add x86_64-linux-android
rustup target add aarch64-apple-darwin
rustup target add x86_64-apple-darwin
rustup target add aarch64-unknown-linux-gnu
rustup target add x86_64-unknown-linux-gnu
- uses: maxim-lobanov/setup-xcode@v1
if: matrix.os-type == 'macos'
with:
Expand All @@ -75,7 +118,7 @@ jobs:

- name: "Install wasm-pack"
run: cargo install wasm-pack

- name: "Test Kotlin code is properly formatted"
run: ./gradlew ktlintCheck

Expand Down
42 changes: 41 additions & 1 deletion .github/workflows/release-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
~/.gradle/caches
~/.gradle/wrapper
~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
key: "${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}"
restore-keys: |
${{ runner.os }}-gradle-
Expand All @@ -60,6 +60,46 @@ jobs:
if: matrix.os-type == 'linux'
run: sudo apt install rustc build-essential -y

- name: "Install Mac ToolChain"
run: |
brew tap messense/macos-cross-toolchains
- name: "Install Linux GNU for x86_64"
run: |
rm '/usr/local/bin/2to3'
rm '/usr/local/bin/2to3-3.11'
rm '/usr/local/bin/2to3-3.12'
rm '/usr/local/bin/python3'
rm '/usr/local/bin/python3.11'
rm '/usr/local/bin/python3.12'
rm '/usr/local/bin/idle3'
rm '/usr/local/bin/idle3.11'
rm '/usr/local/bin/idle3.12'
rm '/usr/local/bin/pydoc3'
rm '/usr/local/bin/pydoc3.11'
rm '/usr/local/bin/pydoc3.12'
rm '/usr/local/bin/python3-config'
rm '/usr/local/bin/python3.11-config'
rm '/usr/local/bin/python3.12-config'
rm -r '/usr/local/lib/node_modules'
brew install --overwrite x86_64-unknown-linux-gnu
- name: "Install Linux GNU for aarch64"
run: |
brew install --overwrite aarch64-unknown-linux-gnu
- name: "Install Rust Targets"
run: |
rustup target add armv7-linux-androideabi
rustup target add i686-linux-android
rustup target add aarch64-linux-android
rustup target add x86_64-linux-android
rustup target add aarch64-apple-darwin
rustup target add x86_64-apple-darwin
rustup target add aarch64-unknown-linux-gnu
rustup target add x86_64-unknown-linux-gnu
- name: "Install rust toolchain (Macos)"
if: matrix.os-type == 'macos'
run: brew install rustup
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,45 @@ jobs:
run: |
brew install autoconf automake libtool
- name: "Install Mac ToolChain"
run: |
brew tap messense/macos-cross-toolchains
- name: "Install Linux GNU for x86_64"
run: |
rm '/usr/local/bin/2to3'
rm '/usr/local/bin/2to3-3.11'
rm '/usr/local/bin/2to3-3.12'
rm '/usr/local/bin/python3'
rm '/usr/local/bin/python3.11'
rm '/usr/local/bin/python3.12'
rm '/usr/local/bin/idle3'
rm '/usr/local/bin/idle3.11'
rm '/usr/local/bin/idle3.12'
rm '/usr/local/bin/pydoc3'
rm '/usr/local/bin/pydoc3.11'
rm '/usr/local/bin/pydoc3.12'
rm '/usr/local/bin/python3-config'
rm '/usr/local/bin/python3.11-config'
rm '/usr/local/bin/python3.12-config'
rm -r '/usr/local/lib/node_modules'
brew install --overwrite x86_64-unknown-linux-gnu
- name: "Install Linux GNU for aarch64"
run: |
brew install --overwrite aarch64-unknown-linux-gnu
- name: "Install Rust Targets"
run: |
rustup target add armv7-linux-androideabi
rustup target add i686-linux-android
rustup target add aarch64-linux-android
rustup target add x86_64-linux-android
rustup target add aarch64-apple-darwin
rustup target add x86_64-apple-darwin
rustup target add aarch64-unknown-linux-gnu
rustup target add x86_64-unknown-linux-gnu
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0.1'
Expand Down
11 changes: 8 additions & 3 deletions apollo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ kotlin {
implementation("org.kotlincrypto.macs:hmac-sha2:0.3.0")
implementation("org.kotlincrypto.hash:sha2:0.4.0")
implementation("com.squareup.okio:okio:3.7.0")
implementation("org.jetbrains.kotlinx:atomicfu:0.23.1")
implementation("org.jetbrains.kotlinx:atomicfu:0.23.2")
}
}
val commonTest by getting {
Expand Down Expand Up @@ -646,6 +646,7 @@ kotlin {
.resolve("kotlin")
)
}
applyDefaultHierarchyTemplate()

all {
languageSettings {
Expand Down Expand Up @@ -846,8 +847,12 @@ afterEvaluate {
tasks.withType<KtLintCheckTask> {
// dependsOn(buildEd25519Bip32Task)
}
tasks.getByName("androidDebugSourcesJar").dependsOn(copyEd25519Bip32GeneratedTask)
tasks.getByName("androidReleaseSourcesJar").dependsOn(copyEd25519Bip32GeneratedTask)
tasks.withType<org.gradle.jvm.tasks.Jar> {
dependsOn(copyEd25519Bip32GeneratedTask)
}

tasks.getByName("androidDebugSourcesJar").dependsOn(copyToAndroidSrc)
tasks.getByName("androidReleaseSourcesJar").dependsOn(copyToAndroidSrc)

tasks.getByName("mergeDebugJniLibFolders").dependsOn(buildEd25519Bip32Task)
tasks.getByName("mergeReleaseJniLibFolders").dependsOn(buildEd25519Bip32Task)
Expand Down
2 changes: 1 addition & 1 deletion rust-ed25519-bip32

0 comments on commit 61a9b5b

Please sign in to comment.