Skip to content

Commit

Permalink
Add Windows build to CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
carltonwhitehead authored and evant committed Aug 25, 2023
1 parent cee9597 commit 2fe72e8
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: 2.1
orbs:
gradle: circleci/gradle@1.0.10
win: circleci/windows@5.0
_defaults: &defaults
working_directory: ~/code
environment:
Expand All @@ -10,6 +11,10 @@ _gradle_checksum: &gradle_checksum
command: >-
find . -name 'build.gradle' | sort | xargs cat | shasum | awk '{print
$1}' > /tmp/gradle_cache_seed
_gradle_checksum_windows: &gradle_checksum_windows
name: Generate Cache Checksum (Windows)
command: >-
Get-ChildItem -Filter *.gradle* -Recurse | Get-FileHash | Out-File -FilePath ".circleci/gradle_cache_seed"
jobs:
build-linux:
docker:
Expand Down Expand Up @@ -79,6 +84,29 @@ jobs:
key: >-
gradle-{{ checksum "/tmp/gradle_cache_seed" }}-{{ checksum
".circleci/config.yml" }}-macos
build-windows:
executor:
name: win/default
size: large
steps:
- checkout
- run:
<<: *gradle_checksum_windows
- restore_cache:
key: >-
gradle-{{ checksum ".circleci/gradle_cache_seed" }}-{{ checksum
".circleci/config.yml" }}-windows
- run:
command: ./gradlew --no-daemon build
shell: bash.exe
- save_cache:
paths:
- ~/.gradle/caches
- ~/.gradle/wrapper
- ~/.konan
key: >-
gradle-{{ checksum ".circleci/gradle_cache_seed" }}-{{ checksum
".circleci/config.yml" }}-windows
workflows:
version: 2
build:
Expand All @@ -91,6 +119,10 @@ workflows:
filters:
branches:
ignore: main
- build-windows:
filters:
branches:
ignore: main
- build-linux:
context: opensource-maven
filters:
Expand Down

0 comments on commit 2fe72e8

Please sign in to comment.