forked from signalapp/ringrtc
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (49 loc) · 1.76 KB
/
ios_artifacts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build RingRTC iOS Artifacts
run-name: Build RingRTC iOS Artifacts (${{ github.ref_name }})
on:
workflow_dispatch:
inputs:
dry_run:
description: "When true, don't upload to GCS"
default: false
required: false
type: boolean
runner:
description: "Mac runner:"
default: 'macos-latest'
required: true
type: choice
options:
- 'macos-latest'
- 'macos-latest-xl'
env:
CARGO_TERM_COLOR: always
jobs:
build_ios:
name: Build iOS
permissions:
# Needed to clone the repo
contents: 'read'
# Needed for google-github-actions/auth.
id-token: 'write'
runs-on: ${{ inputs.runner }}
steps:
- uses: actions/checkout@v4
- run: brew install protobuf coreutils # for grealpath
- run: rustup toolchain install $(cat rust-toolchain) --profile minimal --target x86_64-apple-ios,aarch64-apple-ios,aarch64-apple-ios-sim --component rust-src
- run: ./bin/fetch-artifact --platform ios --release
- run: ./bin/build-ios --ringrtc-only --archive-ringrtc --release
- name: Output Artifact Checksum
run: 'sha256sum out/ringrtc-ios-build-v*.tar.bz2 | tee -a $GITHUB_STEP_SUMMARY'
- uses: google-github-actions/auth@v2
with:
workload_identity_provider: 'projects/741367068918/locations/global/workloadIdentityPools/github/providers/github-actions'
service_account: '[email protected]'
- uses: google-github-actions/upload-cloud-storage@v2
if: ${{ !inputs.dry_run }}
with:
path: 'out'
destination: build-artifacts.signal.org/libraries
glob: 'ringrtc-ios-build-v*.tar.bz2'
parent: false
process_gcloudignore: false