feat: moving KMP to one repo #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: 'Pull Request - Compile Build' | |
defaults: | |
run: | |
shell: bash | |
concurrency: | |
group: ${{ github.head_ref }}${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
JAVA_VERSION: 11 | |
ATALA_GITHUB_ACTOR: ${{ secrets.ATALA_GITHUB_ACTOR }} | |
ATALA_GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }} | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
token: ${{ secrets.ATALA_GITHUB_TOKEN }} | |
fetch-depth: 0 | |
- name: "Install Java ${{ env.JAVA_VERSION }}" | |
uses: actions/setup-java@v3 | |
with: | |
java-version: "${{ env.JAVA_VERSION }}" | |
distribution: zulu | |
- name: Gradle Build Action | |
uses: gradle/gradle-build-action@v2 | |
- name: Test Kotlin code is properly formatted | |
working-directory: ./anoncred-kmm | |
run: ./gradlew ktlintCheck | |
- name: Install Homebrew | |
run: > | |
/bin/bash -c "$(curl -fsSL | |
https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
- name: "Install autoconf, automake, libtool" | |
run: | | |
brew install autoconf automake libtool | |
- name: "Install Mac ToolChain" | |
run: | | |
brew tap messense/macos-cross-toolchains | |
- name: "Brew Linking issue fix" | |
run: | | |
rm '/usr/local/bin/2to3' | |
- name: "Install Linux GNU for x86_64" | |
run: | | |
rm '/usr/local/bin/2to3-3.11' | |
rm '/usr/local/bin/idle3' | |
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" | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | |
- 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 Cargo NDK" | |
run: | | |
cargo install cargo-ndk | |
- name: Build Check All tests | |
working-directory: ./anoncred-kmm | |
run: ./gradlew :anoncreds-kmp:allTests |