Skip to content

Commit

Permalink
feat: enable 17
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfedr committed May 13, 2024
1 parent 4e24ceb commit 6ab0b0c
Show file tree
Hide file tree
Showing 32 changed files with 175 additions and 400 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,25 +75,34 @@ jobs:
packages: write
strategy:
matrix:
version: [ '30', '31', '32', '33' ]
variant: [ '', '-emulator', '-ndk', '-stf-client' ]
version: [ '32', '33' ]
variant: [ '', '-emulator', '-ndk', '-stf-client', '-jdk17', '-jdk11' ]
needs: [checks-hadolint, checks-shfmt, checks-shellcheck, checks-update]
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Check Exists
id: check-dir
run: |
if [ ! -d ${{ matrix.version }}${{ matrix.variant }} ]; then
echo "Directory ${{ matrix.version }}${{ matrix.variant }} does not exist"
echo "skipdir=true" >> $GITHUB_OUTPUT
fi
- name: Set up Docker Buildx
if: steps.check-dir.outputs.skipdir != 'true'
uses: docker/setup-buildx-action@v2

- name: Login to Docker Hub
if: github.ref == 'refs/heads/master'
if: steps.check-dir.outputs.skipdir != 'true' && github.ref == 'refs/heads/master'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Login to GAR
if: github.ref == 'refs/heads/master'
if: steps.check-dir.outputs.skipdir != 'true' && github.ref == 'refs/heads/master'
uses: docker/login-action@v2
with:
registry: europe-west1-docker.pkg.dev
Expand All @@ -102,6 +111,7 @@ jobs:

- name: Extract metadata (tags, labels) for Docker
id: meta
if: steps.check-dir.outputs.skipdir != 'true'
uses: docker/metadata-action@v4
with:
images: |
Expand All @@ -114,6 +124,7 @@ jobs:
- name: Cache Mode
id: cache-mode
if: steps.check-dir.outputs.skipdir != 'true'
run: |
if [ "$VARIANT" == '-emulator' ]; then
echo "::set-output name=mode::min"
Expand All @@ -124,6 +135,7 @@ jobs:
VARIANT: ${{ matrix.variant }}

- name: Build and push Docker image
if: steps.check-dir.outputs.skipdir != 'true'
uses: docker/build-push-action@v4
with:
context: ${{ matrix.version }}${{ matrix.variant }}
Expand Down
119 changes: 0 additions & 119 deletions 30-emulator/Dockerfile

This file was deleted.

117 changes: 0 additions & 117 deletions 30-stf-client/Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions 31-emulator/tools-emulator/android-start-emulator

This file was deleted.

30 changes: 0 additions & 30 deletions 31-emulator/tools-emulator/android-wait-for-emulator

This file was deleted.

19 changes: 0 additions & 19 deletions 31/tools/adb-all

This file was deleted.

Loading

0 comments on commit 6ab0b0c

Please sign in to comment.