Add referral risk scoring and risk signals tracking #72
Workflow file for this run
This file contains hidden or 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: Release - Gemstone iOS | |
| on: | |
| push: | |
| tags: | |
| - "*" | |
| workflow_dispatch: | |
| inputs: | |
| ref_name: | |
| description: "github ref name (tag)" | |
| required: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| SCCACHE_GHA_ENABLED: "true" | |
| RUSTC_WRAPPER: "sccache" | |
| BUILD_MODE: "release" | |
| IPHONEOS_DEPLOYMENT_TARGET: "17.0" | |
| jobs: | |
| upload_ios_framework: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Set version tag | |
| run: | | |
| if [ ${{ github.event.inputs.ref_name }} ]; then | |
| echo "VER_NAME=${{ github.event.inputs.ref_name }}" >> $GITHUB_ENV | |
| elif [ ${{ github.ref_type == 'tag' }} ]; then | |
| echo "VER_NAME=${{ github.ref_name }}" >> $GITHUB_ENV | |
| else | |
| echo "no ref_name or tag" | |
| exit 1 | |
| fi | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ env.VER_NAME }} | |
| - uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Run sccache-cache | |
| uses: mozilla-actions/[email protected] | |
| - name: Install just | |
| uses: extractions/setup-just@v2 | |
| - name: Build iOS frameworks | |
| run: | | |
| just install-ios-targets | |
| export BUILD_MODE=${{ env.BUILD_MODE }} IPHONEOS_DEPLOYMENT_TARGET=${{ env.IPHONEOS_DEPLOYMENT_TARGET }} && just build-ios | |
| working-directory: gemstone | |
| - name: Zip iOS framework | |
| run: | | |
| cd target/spm | |
| tar -cjvf Gemstone-spm.tar.bz2 Package.swift Sources | |
| ls -tlh | |
| working-directory: gemstone | |
| - name: Upload to release | |
| run: | | |
| if [[ $(gh release list | grep ${{ env.VER_NAME }}) ]]; then | |
| gh release upload ${{ env.VER_NAME }} target/spm/Gemstone-spm.tar.bz2 --clobber | |
| else | |
| echo "Release not found, creating a new draft release" | |
| gh release create ${{ env.VER_NAME }} target/spm/Gemstone-spm.tar.bz2 --title ${{ env.VER_NAME }} --generate-notes --prerelease | |
| fi | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| working-directory: gemstone |