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 6fd9245
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ defaults_bld: &defaults_bld
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"
echo 'export SDKMAN_DIR="$HOME/.sdkman"' >> $BASH_ENV
echo 'source "$HOME/.sdkman/bin/sdkman-init.sh"' >> $BASH_ENV
sdk install kotlin 2.0.0
- run:
name: Download the bld dependencies
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 6fd9245

Please sign in to comment.