Skip to content

Commit

Permalink
Different local properties strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
davecramer committed Apr 25, 2024
1 parent e425615 commit 918e64a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,22 @@ jobs:
distribution: ${{ matrix.java_distribution }}
# Architecture is explicit to workaround https://github.com/actions/setup-java/issues/559
architecture: ${{ runner.arch == 'ARM64' && 'aarch64' || 'x64' }}
- name: Prepare local properties
- name: Prepare local properties windows
if: ${{ matrix.os == 'windows-latest' }}
shell: powershell
run: |
echo "enable_ssl_tests=${{ matrix.ssl == 'yes' && 'true' || 'false' }}" | Out-File .\ssltest.local.properties
echo "preferQueryMode=${{ matrix.query_mode }}" | Out-File .\build.local.properties
- name: Prepare local properties ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
# See https://github.com/actions/runner/issues/409
cat <<EOF >ssltest.local.properties
enable_ssl_tests=${{ matrix.ssl == 'yes' && 'true' || 'false' }}
EOF
cat <<EOF >build.local.properties
preferQueryMode=${{ matrix.query_mode }}
EOF
- uses: burrunan/gradle-cache-action@v1
name: Test
Expand Down

0 comments on commit 918e64a

Please sign in to comment.