bleeding - uriparser fix to build static linked library. #581
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
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/checkout@v2 | |
- 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: 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 |