-
Notifications
You must be signed in to change notification settings - Fork 68
53 lines (52 loc) · 2.02 KB
/
xcode.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
name: 'O-MVLL Xcode'
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: O-MVLL Xcode 14.1
shell: bash
run: |
curl -LO https://open-obfuscator.build38.io/static/omvll-deps-xcode-14_1.tar
mkdir -p /tmp/third-party-xcode14
mkdir -p $GITHUB_WORKSPACE/dist
tar xvf ./omvll-deps-xcode-14_1.tar --directory=/tmp/third-party-xcode14
docker run --rm \
-v /tmp/third-party-xcode14:/third-party \
-v $GITHUB_WORKSPACE:/o-mvll \
openobfuscator/omvll-xcode:latest bash /o-mvll/scripts/docker/xcode_14_compile.sh
- name: O-MVLL Signing
uses: indygreg/[email protected]
with:
input_path: ${{ github.workspace }}/src/build_xcode/omvll_unsigned.dylib
output_path: ${{ github.workspace }}/src/build_xcode/omvll_xcode_14.dylib
p12_file: ${{ github.workspace }}/scripts/certificates/SigningCertificate.p12
p12_password: ${{ secrets.certificate_password }}
- name: Generate deployment tar
uses: a7ul/[email protected]
id: compress
with:
command: c
cwd: ${{ github.workspace }}/src/build_xcode/
files: |
./omvll_xcode_14.dylib
outPath: ${{ github.workspace }}/dist/omvll_xcode_14.tar.gz
- name: O-MVLL Deployment
env:
BUILD38_S3_KEY: ${{ secrets.BUILD38_S3_KEY }}
BUILD38_S3_SECRET: ${{ secrets.BUILD38_S3_SECRET }}
shell: bash
run: |
docker run \
-v $GITHUB_WORKSPACE:/o-mvll \
-e GITHUB_ACTIONS="true" \
-e GITHUB_WORKSPACE=$GITHUB_WORKSPACE \
-e GITHUB_REF=$GITHUB_REF \
-e GITHUB_REPOSITORY=$GITHUB_REPOSITORY \
-e BUILD38_S3_KEY=$BUILD38_S3_KEY \
-e BUILD38_S3_SECRET=$BUILD38_S3_SECRET \
--rm \
openobfuscator/deployment python3 /o-mvll/.github/scripts/s3-deploy.py