Bump version #1
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: 'iOS' | |
on: push | |
jobs: | |
osx-sdk: | |
runs-on: macos-11.0 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install system dependencies | |
run: | | |
brew install cmake ninja ccache | |
python -m pip install --upgrade pip setuptools wheel | |
- name: Get Date | |
id: get-date | |
run: | | |
echo "::set-output name=date::$(/bin/date -u "+%Y-%m-%d-%H;%M;%S")" | |
shell: bash | |
- name: Setup cache dir | |
shell: bash | |
run: | | |
mkdir -p ~/.ccache | |
- name: ccache cache files | |
uses: actions/cache@v3 | |
with: | |
path: ~/.ccache | |
key: ios-${{ runner.os }}-${{ steps.get-date.outputs.date }} | |
restore-keys: | | |
ios-${{ runner.os }}- | |
- name: Build iOS SDK | |
shell: bash | |
env: | |
CCACHE_DIR: ~/.ccache | |
CCACHE_MAXSIZE: 10.0G | |
CCACHE_CPP2: 1 | |
CCACHE_COMPRESS: 1 | |
run: | | |
bash scripts/osx/package_ios.sh | |
- name: 'Upload Artifact' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ios-sdk | |
path: build/*.tar.gz | |
retention-days: 3 | |
- name: Deploy | |
env: | |
LIEF_S3_KEY: ${{ secrets.LIEF_S3_KEY }} | |
LIEF_S3_SECRET: ${{ secrets.LIEF_S3_SECRET }} | |
shell: bash | |
run: | | |
python -m pip install --upgrade requests mako boto3 | |
python .github/deploy.py | |