Android #900
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is part of BOINC. | |
# https://boinc.berkeley.edu | |
# Copyright (C) 2022 University of California | |
# | |
# BOINC is free software; you can redistribute it and/or modify it | |
# under the terms of the GNU Lesser General Public License | |
# as published by the Free Software Foundation, | |
# either version 3 of the License, or (at your option) any later version. | |
# | |
# BOINC is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
# See the GNU Lesser General Public License for more details. | |
# | |
# You should have received a copy of the GNU Lesser General Public License | |
# along with BOINC. If not, see <http://www.gnu.org/licenses/>. | |
name: Android | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: '0 0 * * *' | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_KEY }} | |
AWS_DEFAULT_REGION: us-west-2 | |
jobs: | |
build: | |
name: ${{ matrix.app }}-${{ matrix.configuration }}-build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
app: [boinc-autodock-vina] | |
configuration: [arm64-android-static, arm-neon-android-static, arm-android-static, x64-android-static, x86-android-static] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Check if build is running from origin repo | |
if: ${{ success() && env.AWS_ACCESS_KEY_ID != 0 && env.AWS_SECRET_ACCESS_KEY != 0 }} | |
run: | | |
echo "VCPKG_BINARY_SOURCES=clear;x-aws,s3://vcpkg.cache.boinc-apps/,readwrite" >> $GITHUB_ENV | |
- name: Check if build is running from fork | |
if: ${{ success() && (env.AWS_ACCESS_KEY_ID == 0 || env.AWS_SECRET_ACCESS_KEY == 0) }} | |
run: | | |
echo "VCPKG_BINARY_SOURCES=clear;x-aws-config,no-sign-request;x-aws,s3://vcpkg.cache.boinc-apps/,read" >> $GITHUB_ENV | |
- name: Build | |
if: ${{ success() }} | |
run: | | |
python3 build.py -nt -ts=ci -t=${{ matrix.configuration }} ${{ matrix.app }} | |
- name: Upload boinc-autodock-vina artifacts | |
if: ${{ success() && matrix.app == 'boinc-autodock-vina' }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.app }}-${{ matrix.configuration }}-${{ github.event.pull_request.head.sha }} | |
path: | | |
build/${{ matrix.app }}/${{ matrix.configuration }}/boinc-autodock-vina | |
build/${{ matrix.app }}/${{ matrix.configuration }}/config-validator |