Skip to content

Commit

Permalink
Release 1.0.0 (#2514)
Browse files Browse the repository at this point in the history
* Remove Atomic FU

* Retrigger CI

* Make publish task run on release/1.0.0

* Update AtomicRef to continuations api files

* Remove usage atomicfu wrappers

* Remove exhessive empty lines

* mpp root module config

* publish with `publishToMavenRepository`

* publish with `publish`

* publish linux native targets

* Restore Arrow versions

* introduce traverse and sequence for nullable types (#2519)

Co-authored-by: Simon Vergauwen <nomisRev@users.noreply.github.com>

Co-authored-by: raulraja <raulraja@gmail.com>
Co-authored-by: franciscodr <francisco.d@47deg.com>
Co-authored-by: Mitchell Yuwono <myuwono@atlassian.com>
  • Loading branch information
4 people committed Sep 20, 2021
1 parent cc0959a commit fc0ae25
Show file tree
Hide file tree
Showing 39 changed files with 628 additions and 342 deletions.
268 changes: 132 additions & 136 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ name: "Publish all libs, Arrow-stack and Docs"
on:
push:
branches:
- main
- release/**
paths:
- 'arrow-libs/**'
- '.github/**'
- release/1.0.0

env:
BASEDIR: ${{github.workspace}}/arrow-libs
Expand All @@ -19,7 +15,7 @@ env:
GRADLE_OPTS: -Dorg.gradle.configureondemand=true -Dorg.gradle.parallel=false -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"

jobs:
publish_linux_jvm_js_and_commons:
publish_linux:
runs-on: ubuntu-latest
timeout-minutes: 20

Expand Down Expand Up @@ -49,31 +45,31 @@ jobs:
- name: "Show env"
run: ${GITHUB_WORKSPACE}/.github/scripts/show-env.sh

- name: Publish commons
- name: Publish Arrow Libs
working-directory: arrow-libs
run: |
./gradlew publishKotlinMultiplatformPublicationToMavenRepository
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) Commons deployed!"
- name: Publish LinuxX64
working-directory: arrow-libs
run: |
./gradlew publishLinuxX64PublicationToMavenRepository
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) LinuxX64 deployed!"
- name: Publish Jvm
working-directory: arrow-libs
run: |
./gradlew publishJvmPublicationToMavenRepository
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) JVM deployed!"
- name: Publish Js
working-directory: arrow-libs
run: |
./gradlew publishJsPublicationToMavenRepository
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) JS deployed!"
publish_macos_and_ios:
./gradlew publish
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) Arrow libs deployed!"
# - name: Publish LinuxX64
# working-directory: arrow-libs
# run: |
# ./gradlew publishLinuxX64PublicationToMavenRepository
# echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) LinuxX64 deployed!"
#
# - name: Publish Jvm
# working-directory: arrow-libs
# run: |
# ./gradlew publishJvmPublicationToMavenRepository
# echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) JVM deployed!"
#
# - name: Publish Js
# working-directory: arrow-libs
# run: |
# ./gradlew publishJsPublicationToMavenRepository
# echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) JS deployed!"

publish_macos:
runs-on: macos-latest
timeout-minutes: 40

Expand Down Expand Up @@ -103,113 +99,113 @@ jobs:
- name: "Show env"
run: ${GITHUB_WORKSPACE}/.github/scripts/show-env.sh

- name: Publish macos X64
working-directory: arrow-libs
run: |
./gradlew publishMacosX64PublicationToMavenRepository
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) MacOs X64 deployed!"
- name: Publish macos Arm64
working-directory: arrow-libs
run: |
./gradlew publishMacosArm64PublicationToMavenRepository
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) MacOs Arm64 deployed!"
- name: Publish iosX64
working-directory: arrow-libs
run: |
./gradlew publishIosX64PublicationToMavenRepository
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) ios X64 deployed!"
- name: Publish iosArm64
working-directory: arrow-libs
run: |
./gradlew publishIosArm64PublicationToMavenRepository
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) ios Arm64 deployed!"
- name: Publish iosArm32
working-directory: arrow-libs
run: |
./gradlew publishIosArm32PublicationToMavenRepository
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) ios Arm32 deployed!"
- name: Publish iosSimulatorArm64
working-directory: arrow-libs
run: |
./gradlew publishIosSimulatorArm64PublicationToMavenRepository
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) iosSimulatorArm64 deployed!"
publish_tvos_and_watchos:
runs-on: macos-latest
timeout-minutes: 40

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Restore Gradle cache
id: cache
uses: actions/cache@v2.1.6
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.konan
key: tv-watchos-step-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
tv-watchos-step-gradle-
- name: "Install grep"
run: brew install grep

- name: "Set env"
run: ${GITHUB_WORKSPACE}/.github/scripts/set-env.sh

- name: "Show env"
run: ${GITHUB_WORKSPACE}/.github/scripts/show-env.sh

- name: Publish tvos Arm64
working-directory: arrow-libs
run: |
./gradlew publishTvosArm64PublicationToMavenRepository
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) tvosArm64 deployed!"
- name: Publish tvos X64
working-directory: arrow-libs
run: |
./gradlew publishTvosX64PublicationToMavenRepository
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) tvosX64 deployed!"
- name: Publish tvosSimulatorArm64
- name: Publish macos
working-directory: arrow-libs
run: |
./gradlew publishTvosSimulatorArm64PublicationToMavenRepository
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) tvosSimulatorArm64 deployed!"
- name: Publish watchosX64
working-directory: arrow-libs
run: |
./gradlew publishWatchosX64PublicationToMavenRepository
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) watchosX64 deployed!"
- name: Publish watchosX86
working-directory: arrow-libs
run: |
./gradlew publishWatchosX86PublicationToMavenRepository
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) watchosX86 deployed!"
- name: Publish watchosArm32
working-directory: arrow-libs
run: |
./gradlew publishWatchosArm32PublicationToMavenRepository
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) watchosArm32 deployed!"
- name: Publish watchosSimulatorArm64
working-directory: arrow-libs
run: |
./gradlew publishWatchosSimulatorArm64PublicationToMavenRepository
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) watchosSimulatorArm64 deployed!"
./gradlew publish
echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) MacOs deployed!"
# - name: Publish macos Arm64
# working-directory: arrow-libs
# run: |
# ./gradlew publishMacosArm64PublicationToMavenRepository
# echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) MacOs Arm64 deployed!"
#
# - name: Publish iosX64
# working-directory: arrow-libs
# run: |
# ./gradlew publishIosX64PublicationToMavenRepository
# echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) ios X64 deployed!"
#
# - name: Publish iosArm64
# working-directory: arrow-libs
# run: |
# ./gradlew publishIosArm64PublicationToMavenRepository
# echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) ios Arm64 deployed!"
#
# - name: Publish iosArm32
# working-directory: arrow-libs
# run: |
# ./gradlew publishIosArm32PublicationToMavenRepository
# echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) ios Arm32 deployed!"
#
# - name: Publish iosSimulatorArm64
# working-directory: arrow-libs
# run: |
# ./gradlew publishIosSimulatorArm64PublicationToMavenRepository
# echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) iosSimulatorArm64 deployed!"

# publish_tvos_and_watchos:
# runs-on: macos-latest
# timeout-minutes: 40
#
# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 0
#
# - name: Restore Gradle cache
# id: cache
# uses: actions/cache@v2.1.6
# with:
# path: |
# ~/.gradle/caches
# ~/.gradle/wrapper
# ~/.konan
# key: tv-watchos-step-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
# restore-keys: |
# tv-watchos-step-gradle-
#
# - name: "Install grep"
# run: brew install grep
#
# - name: "Set env"
# run: ${GITHUB_WORKSPACE}/.github/scripts/set-env.sh
#
# - name: "Show env"
# run: ${GITHUB_WORKSPACE}/.github/scripts/show-env.sh
#
# - name: Publish tvos Arm64
# working-directory: arrow-libs
# run: |
# ./gradlew publishTvosArm64PublicationToMavenRepository
# echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) tvosArm64 deployed!"
#
# - name: Publish tvos X64
# working-directory: arrow-libs
# run: |
# ./gradlew publishTvosX64PublicationToMavenRepository
# echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) tvosX64 deployed!"
#
# - name: Publish tvosSimulatorArm64
# working-directory: arrow-libs
# run: |
# ./gradlew publishTvosSimulatorArm64PublicationToMavenRepository
# echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) tvosSimulatorArm64 deployed!"
#
# - name: Publish watchosX64
# working-directory: arrow-libs
# run: |
# ./gradlew publishWatchosX64PublicationToMavenRepository
# echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) watchosX64 deployed!"
#
# - name: Publish watchosX86
# working-directory: arrow-libs
# run: |
# ./gradlew publishWatchosX86PublicationToMavenRepository
# echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) watchosX86 deployed!"
#
# - name: Publish watchosArm32
# working-directory: arrow-libs
# run: |
# ./gradlew publishWatchosArm32PublicationToMavenRepository
# echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) watchosArm32 deployed!"
#
# - name: Publish watchosSimulatorArm64
# working-directory: arrow-libs
# run: |
# ./gradlew publishWatchosSimulatorArm64PublicationToMavenRepository
# echo "$(cat $BASEDIR/gradle.properties | grep VERSION_NAME | cut -d'=' -f2) watchosSimulatorArm64 deployed!"

publish_windows:
runs-on: windows-latest
Expand Down Expand Up @@ -240,10 +236,10 @@ jobs:
run: ${GITHUB_WORKSPACE}/.github/scripts/show-env.sh
shell: bash

- name: Publish MingwX64
- name: Publish Windows
working-directory: arrow-libs
run: |
./gradlew publishMingwX64PublicationToMavenRepository
./gradlew publish
echo "$(cat gradle.properties | grep VERSION_NAME | cut -d'=' -f2) MingwX64 deployed!"
publish-arrow-stack:
Expand Down
3 changes: 0 additions & 3 deletions arrow-libs/ank/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlinx:atomicfu-gradle-plugin:$ATOMICFU_VERSION"
}
}

plugins {
Expand Down
3 changes: 0 additions & 3 deletions arrow-libs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlinx:atomicfu-gradle-plugin:$ATOMICFU_VERSION"
}
}

plugins {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ public final class arrow/continuations/Reset {
public final fun suspended (Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
}

public final class arrow/continuations/generic/AtomicRefKt {
public static final fun getAndUpdate (Ljava/util/concurrent/atomic/AtomicReference;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
public static final fun loop (Ljava/util/concurrent/atomic/AtomicReference;Lkotlin/jvm/functions/Function1;)Ljava/lang/Void;
public static final fun update (Ljava/util/concurrent/atomic/AtomicReference;Lkotlin/jvm/functions/Function1;)V
public static final fun updateAndGet (Ljava/util/concurrent/atomic/AtomicReference;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
}

public class arrow/continuations/generic/ControlThrowable : java/lang/Throwable {
public fun <init> ()V
public fun fillInStackTrace ()Ljava/lang/Throwable;
Expand Down
1 change: 0 additions & 1 deletion arrow-libs/core/arrow-continuations/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ apply from: "$TEST_COVERAGE"
apply from: "$DOC_CREATION"
apply from: "$PUBLICATION_MPP"
apply from: "$ANIMALSNIFFER_MPP"
apply plugin: 'kotlinx-atomicfu'
apply plugin: 'io.kotest.multiplatform'

kotlin {
Expand Down

0 comments on commit fc0ae25

Please sign in to comment.