Skip to content

[feature] fmt

[feature] fmt #595

Workflow file for this run

name: build-android
on:
push:
paths-ignore:
- '**/README.md'
pull_request:
paths-ignore:
- '**/README.md'
jobs:
build-android:
runs-on: ubuntu-latest
strategy:
matrix:
cfg:
- {target: android, arch: armv7}
- {target: android, arch: arm64}
- {target: android, arch: x86}
- {target: android, arch: x86_64}
env:
TARGET: ${{ matrix.cfg.target }}
ARCH: ${{ matrix.cfg.arch }}
steps:
- name: Determine Release
id: vars
shell: bash
run: |
if [[ "${{ github.ref }}" == "refs/heads/master" ]]; then
echo "release=nightly" >> $GITHUB_ENV
echo "prerelease=false" >> $GITHUB_ENV
elif [[ "${{ github.ref }}" == "refs/heads/bleeding" ]]; then
echo "release=bleeding" >> $GITHUB_ENV
echo "prerelease=true" >> $GITHUB_ENV
fi
- uses: actions/[email protected]
- name: Scripts Calc Formula - ${{ matrix.cfg.target }} - ${{ matrix.cfg.arch }}
run: ./scripts/calculate_formulas.sh
- name: Scripts Install
run: ./scripts/$TARGET/install.sh
- name: build
run: ./scripts/build.sh
env:
GA_CI_SECRET: ${{ secrets.CI_SECRET }}
- name: List output directory
run: ls -lah out/
- name: Package
working-directory: ${{ env.GITHUB_WORKSPACE }}
run: scripts/package.sh
env:
BUNDLE: ${{ matrix.bundle }}
GA_CI_SECRET: ${{ secrets.CI_SECRET }}
- name: Update Release arm64
if: (github.repository == 'openframeworks/apothecary' && github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/bleeding'))
uses: johnwbyrd/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ env.release }}
release: ${{ env.release }}
prerelease: ${{ env.prerelease }}
files: out/openFrameworksLibs_${{ env.release }}_android_${{ matrix.cfg.arch }}.zip