forked from RavenProject/Ravencoin
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (50 loc) · 1.88 KB
/
dependencies-osx.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
61
name: Dependencies - Mac OS X
on:
pull_request:
branches:
- depends
paths:
- 'depends/**'
push:
branches:
- depends
paths:
- 'depends/**'
env:
OS: osx
SCRIPTS: ${{ GITHUB.WORKSPACE }}/.github/scripts
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the Code
uses: actions/checkout@v1
- name: Install Build Tools
run: sudo ${SCRIPTS}/00-install-deps.sh ${OS}
- name: Copy the Xcode Dependency Files
run: |
cd ${{ GITHUB.WORKSPACE }}
curl -O https://raven-build-resources.s3.amazonaws.com/osx/MacOSX10.11.sdk.tar.gz
- name: Extract Xcode Resources
run: |
mkdir -p ${{ GITHUB.WORKSPACE }}/depends/SDKs
cd ${{ GITHUB.WORKSPACE }}/depends/SDKs && tar -zxf ${{ GITHUB.WORKSPACE }}/MacOSX10.11.sdk.tar.gz
- name: Build the Dependencies
run: cd ${{ GITHUB.WORKSPACE }}/depends && make HOST=x86_64-apple-darwin14 -j2
- name: Tar Up the Dependencies
run: |
if [[ ! -e ${{ GITHUB.WORKSPACE }}/depends_temp ]]; then mkdir -p ${{ GITHUB.WORKSPACE }}/depends_temp; fi
cd ${{ GITHUB.WORKSPACE }}/depends && tar zcf ${{ GITHUB.WORKSPACE }}/depends_temp/raven-osx-dependencies.tar.gz .
cd ${{ GITHUB.WORKSPACE }}/depends_temp
if [[ -e raven-osx-dependencies.tar.gz ]]; then sha256sum raven-osx-dependencies.tar.gz > SHASUM; else echo "no dependency tar file found"; fi
- name: Sync the Dependencies to S3
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks
env:
SOURCE_DIR: "${{ GITHUB.WORKSPACE }}/depends_temp/"
DEST_DIR: 'osx'
AWS_REGION: 'us-east-1'
AWS_S3_BUCKET: "raven-build-resources"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}