Skip to content

Commit

Permalink
Cleaned up CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Jul 13, 2024
1 parent dc1a3de commit 9561010
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
18 changes: 9 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
version: 2
version: 2.1

orbs:
sdkman: joshdholtz/[email protected]

defaults: &defaults
working_directory: ~/repo
environment:
Expand All @@ -9,14 +13,10 @@ defaults: &defaults
defaults_bld: &defaults_bld
steps:
- checkout
- run:
name: Install Kotlin via SDKMAN!
command: |
curl -s "https://get.sdkman.io" | bash
echo sdkman_auto_answer=true > $HOME/.sdkman/etc/config
echo sdkman_auto_selfupdate=true >> $HOME/.sdkman/etc/config
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install kotlin 2.0.0
- sdkman/setup-sdkman
- sdkman/sdkman-install:
candidate: kotlin
version: 2.0.0
- run:
name: Download the bld dependencies
command: ./bld download
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/bld.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
name: bld-ci

on: [push, pull_request, workflow_dispatch]
on: [ push, pull_request, workflow_dispatch ]

jobs:
build-bld-project:
runs-on: ubuntu-latest

env:
COVERAGE_SDK: "17"
COVERAGE_JDK: "17"
COVERAGE_KOTLIN: "2.0.0"
KOTLIN_HOME: /usr/share/kotlinc

strategy:
matrix:
java-version: [17, 21, 22]
kotlin-version: [1.9.24, 2.0.0]
java-version: [ 17, 21, 22 ]
kotlin-version: [ 1.9.24, 2.0.0 ]

steps:
- name: Checkout source repository
Expand Down Expand Up @@ -54,7 +55,7 @@ jobs:

- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
if: success() && matrix.java-version == env.COVERAGE_SDK && matrix.kotlin-version == env.COVERAGE_KOTLIN
if: success() && matrix.java-version == env.COVERAGE_JDK && matrix.kotlin-version == env.COVERAGE_KOTLIN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2 changes: 1 addition & 1 deletion bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pipelines:
- echo sdkman_auto_answer=true > $HOME/.sdkman/etc/config
- echo sdkman_auto_selfupdate=true >> $HOME/.sdkman/etc/config
- source "$HOME/.sdkman/bin/sdkman-init.sh"
- sdk install java 17.0.11-tem
- sdk install java 17.0.11-oracle
- sdk install kotlin 2.0.0
- source "$HOME/.sdkman/bin/sdkman-init.sh"
# Download, compile and test with bld
Expand Down

0 comments on commit 9561010

Please sign in to comment.