Skip to content

Commit

Permalink
stash
Browse files Browse the repository at this point in the history
  • Loading branch information
jvalkeal committed Aug 30, 2024
1 parent 8775c53 commit 889c0ea
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 94 deletions.
9 changes: 9 additions & 0 deletions .github/actions/setup-zig/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Setup Zig
description: Installs a zig compiler
runs:
using: composite
steps:
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.13.0

196 changes: 102 additions & 94 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,100 +8,108 @@ on:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- nickname: linux jdk17
java: 17
os: ubuntu-latest
- nickname: macos intel jdk17
java: 17
os: macos-12
- nickname: macos arm jdk17
java: 17
os: macos-latest
- nickname: windows jdk17
java: 17
os: windows-latest
name: CI Build ${{ matrix.nickname }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: adopt
java-version: |
22
17
cache: gradle
- name: Build
run: ./gradlew build
- name: Upload Build Logs
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: buildlogs-${{ matrix.nickname }}
path: |
*/build/reports
*/*/build/reports
local:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: adopt
java-version: |
22
17
cache: gradle
- name: Build
run: ./gradlew publishMavenJavaPublicationToLocalRepository
- name: Upload Local Repo
uses: actions/upload-artifact@v3
with:
name: localrepo
path: |
build/publications/repos
publish:
runs-on: ubuntu-latest
if: github.repository_owner == 'spring-projects'
needs: [build]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: adopt
java-version: |
22
17
cache: gradle
- uses: jfrog/setup-jfrog-cli@v3
with:
version: 2.21.5
env:
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
- name: Configure JFrog Cli
- uses: ./.github/actions/setup-zig
- name: Zig Version
run: |
jf rt gradlec \
--use-wrapper \
--uses-plugin \
--deploy-ivy-desc=false \
--server-id-resolve repo.spring.io \
--server-id-deploy repo.spring.io \
--repo-resolve snapshot \
--repo-deploy snapshot
echo JFROG_CLI_BUILD_NAME=spring-shell-main >> $GITHUB_ENV
echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
- name: Build and Publish
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
run: |
jf rt gradle build artifactoryPublish
jf rt build-publish
zig version
# build:
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# include:
# - nickname: linux jdk17
# java: 17
# os: ubuntu-latest
# - nickname: macos intel jdk17
# java: 17
# os: macos-12
# - nickname: macos arm jdk17
# java: 17
# os: macos-latest
# - nickname: windows jdk17
# java: 17
# os: windows-latest
# name: CI Build ${{ matrix.nickname }}
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-java@v3
# with:
# distribution: adopt
# java-version: |
# 22
# 17
# cache: gradle
# - name: Build
# run: ./gradlew build
# - name: Upload Build Logs
# if: ${{ failure() }}
# uses: actions/upload-artifact@v3
# with:
# name: buildlogs-${{ matrix.nickname }}
# path: |
# */build/reports
# */*/build/reports
# local:
# runs-on: ubuntu-latest
# needs: [build]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-java@v3
# with:
# distribution: adopt
# java-version: |
# 22
# 17
# cache: gradle
# - name: Build
# run: ./gradlew publishMavenJavaPublicationToLocalRepository
# - name: Upload Local Repo
# uses: actions/upload-artifact@v3
# with:
# name: localrepo
# path: |
# build/publications/repos
# publish:
# runs-on: ubuntu-latest
# if: github.repository_owner == 'spring-projects'
# needs: [build]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-java@v3
# with:
# distribution: adopt
# java-version: |
# 22
# 17
# cache: gradle
# - uses: jfrog/setup-jfrog-cli@v3
# with:
# version: 2.21.5
# env:
# JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
# - name: Configure JFrog Cli
# run: |
# jf rt gradlec \
# --use-wrapper \
# --uses-plugin \
# --deploy-ivy-desc=false \
# --server-id-resolve repo.spring.io \
# --server-id-deploy repo.spring.io \
# --repo-resolve snapshot \
# --repo-deploy snapshot
# echo JFROG_CLI_BUILD_NAME=spring-shell-main >> $GITHUB_ENV
# echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
# - name: Build and Publish
# env:
# ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }}
# ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}
# GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
# GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
# GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
# run: |
# jf rt gradle build artifactoryPublish
# jf rt build-publish

0 comments on commit 889c0ea

Please sign in to comment.