Archive library #5
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: Archive library | |
on: | |
workflow_dispatch: | |
jobs: | |
archive: | |
name: Archive | |
runs-on: macos-14-large | |
steps: | |
- name: Check out | |
uses: actions/checkout@v2 | |
- name: Fetch submodules | |
run: git submodule update --init | |
- name: Cached Konan | |
uses: actions/cache@v2 | |
with: | |
path: ~/.konan | |
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | |
restore-keys: ${{ runner.os }}-konan- | |
- name: Cached Gradle | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | |
restore-keys: ${{ runner.os }}-gradle- | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Install build tools | |
run: | | |
brew install autoconf@2.69 automake coreutils gettext libtool po4a | |
brew link --overwrite autoconf@2.69 | |
- name: Build native libs | |
run: ./gradlew :native:buildLibs | |
- name: Publish locally | |
run: ./gradlew publishToMavenLocal | |
- name: Copy artifact files | |
run: | | |
mkdir -p maven-local/archive | |
cp -r ~/.m2/repository/* maven-local/archive | |
- name: Upload archive | |
uses: actions/upload-artifact@v2 | |
with: | |
name: tor-mobile-kmp-archive | |
path: | | |
maven-local | |
!maven-local/**/maven-metadata-local.xml |