Skip to content

Commit

Permalink
Android APK upload work
Browse files Browse the repository at this point in the history
Docker build work
  • Loading branch information
isarkis committed Sep 12, 2024
1 parent 2a2a3ee commit 725ba58
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,14 @@ runs:
- name: sccache check
run: sccache -s
shell: bash
- name: find apks
run: find src/out -name \*.apk -print
shell: bash
- name: Archive Android APKs
if: startsWith(${{matrix.platform}}, 'android')
uses: actions/upload-artifact@v4
with:
name: APKs
name: ${{ matrix.platform }} APKs
path: |
src/out/android-arm64_qa/apks/*.apk
src/out/${{ matrix.platform }}_qa/apks/*.apk
src/out/${{ matrix.platform }}_qa/*_apk/*.apk
7 changes: 3 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ inputs.platform }} @ ${{ github.event.label.name || github.event.pull_request.number || github.sha }} @ ${{ github.event.label.name && github.event.pull_request.number || github.event.action }}
cancel-in-progress: true


# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# Retrieves configuration from json file.
Expand Down Expand Up @@ -110,15 +109,15 @@ jobs:
echo "FLOATING_TAG=${tag}" >> $GITHUB_ENV
# Handle GitHub registry used for everything other than pull requests off forked repos.
- name: Login to GitHub Docker Registry ${{env.GITHUB_REGISTRY}}
if: ${{ (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.full_name == github.repository) }}
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.1.0
with:
registry: ${{ env.GITHUB_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set Docker Tag
id: set-docker-tag-github
if: ${{ (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.full_name == github.repository) }}
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
run: |
echo "DOCKER_TAG=${GITHUB_REGISTRY}/${{ github.repository }}/${DOCKER_SERVICE}:${FULL_GIT_SHA::7}" >> $GITHUB_ENV
echo "DOCKER_FLOATING_TAG=${GITHUB_REGISTRY}/${{ github.repository }}/${DOCKER_SERVICE}:${FLOATING_TAG}" >> $GITHUB_ENV
Expand Down Expand Up @@ -193,4 +192,4 @@ jobs:
uses: ./src/.github/actions/build
with:
targets: ${{ needs.initialize.outputs.targets }}


0 comments on commit 725ba58

Please sign in to comment.