This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
Simplify RemotingClient
based recipes
#261
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: ci | |
on: | |
push: | |
branches: | |
- main | |
tags-ignore: | |
- "*" | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: {} | |
schedule: | |
- cron: 0 18 * * * | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
GRADLE_SWITCHES: --console=plain --info --stacktrace --warning-mode=all --no-daemon | |
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.gradle_enterprise_access_key }} | |
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.gradle_enterprise_cache_username }} | |
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.gradle_enterprise_cache_password }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
show-progress: false | |
- uses: gradle/wrapper-validation-action@v1 | |
######################## | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 21 | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.x | |
######################## | |
# - name: Build wasm | |
# run: | | |
# dotnet workload install wasi-experimental | |
# mkdir -p build/wasm-api | |
# curl -L https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-21/wasi-sdk-21.0-linux.tar.gz -sSL | tar xfz - -C build/wasm-api/ | |
# export WASI_SDK_PATH=$PWD/build/wasm-api/wasi-sdk-21.0 | |
# dotnet build wasm | |
######################## | |
- name: build | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: ${{ env.GRADLE_SWITCHES }} build | |
- name: publish-snapshots | |
if: github.event_name != 'pull_request' | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: ${{ env.GRADLE_SWITCHES }} snapshot publish -PforceSigning -x test | |
env: | |
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSSRH_USERNAME }} | |
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSSRH_TOKEN }} | |
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.OSSRH_SIGNING_KEY }} | |
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.OSSRH_SIGNING_PASSWORD }} |