Skip to content

reworks workflows #204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from Jan 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions .github/workflows/benchmarks.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Dev CI
on:
push:
paths-ignore:
- samples/**
branches-ignore:
- master

jobs:
test:
uses: rsocket/rsocket-kotlin/.github/workflows/run-tests.yml@master
publish:
needs: [ test ]
uses: rsocket/rsocket-kotlin/.github/workflows/publish-snapshot.yml@master
with:
add-branch-suffix: true
16 changes: 16 additions & 0 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Main CI
on:
push:
paths-ignore:
- samples/**
branches:
- master

jobs:
test:
uses: rsocket/rsocket-kotlin/.github/workflows/run-tests.yml@master
publish:
needs: [ test ]
uses: rsocket/rsocket-kotlin/.github/workflows/publish-snapshot.yml@master
with:
add-branch-suffix: false
9 changes: 9 additions & 0 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Pull Request CI
on:
pull_request:
paths-ignore:
- samples/**

jobs:
test:
uses: rsocket/rsocket-kotlin/.github/workflows/run-tests.yml@master
34 changes: 34 additions & 0 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release CI
on:
push:
tags:
- '*'

jobs:
test:
uses: rsocket/rsocket-kotlin/.github/workflows/run-tests.yml@master
publish:
needs: [ test ]
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- run: echo "KONAN_DATA_DIR=${HOME}/.gradle/konan" >> $GITHUB_ENV
- name: Publish to Sonotype (version ${{ github.ref_name }})
uses: gradle/gradle-build-action@v2
with:
arguments: |
publishAllPublicationsToSonatypeRepository
--scan
--info
-Pversion=${{ github.ref_name }}
-PsigningKey=${{ secrets.signingKey }}
-PsigningPassword=${{ secrets.signingPassword }}
-PsonatypeUsername=${{ secrets.sonatypeUsername }}
-PsonatypePassword=${{ secrets.sonatypePassword }}
cache-read-only: true
gradle-home-cache-includes: |
caches
notifications
konan
nodejs
yarn
36 changes: 36 additions & 0 deletions .github/workflows/ci-samples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Samples CI
on:
push:
paths:
- samples/**
pull_request:
paths:
- samples/**

jobs:
build:
name: Build ${{ matrix.sample }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-11 ]
sample: [ chat ]
steps:
- uses: actions/checkout@v2
- if: matrix.os != 'windows-latest'
run: echo "KONAN_DATA_DIR=${HOME}/.gradle/konan" >> $GITHUB_ENV
- if: matrix.os == 'windows-latest'
run: echo "KONAN_DATA_DIR=${USERPROFILE}\.gradle\konan" >> $GITHUB_ENV
shell: bash
- uses: gradle/gradle-build-action@v2
with:
arguments: build --continue
cache-read-only: true
build-root-directory: samples/${{ matrix.sample }}
gradle-home-cache-includes: |
caches
notifications
konan
nodejs
yarn
135 changes: 0 additions & 135 deletions .github/workflows/gradle-main.yml

This file was deleted.

Loading