10
10
- ' main'
11
11
12
12
env :
13
- BUILDER_VERSION : v0.8.18
13
+ BUILDER_VERSION : v0.9.1
14
14
BUILDER_SOURCE : releases
15
15
BUILDER_HOST : https://d19elf31gohf1l.cloudfront.net
16
16
PACKAGE_NAME : aws-crt-swift
17
- LINUX_BASE_IMAGE : ubuntu-16-x64
18
17
RUN : ${{ github.run_id }}-${{ github.run_number }}
18
+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
19
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
20
+ AWS_REGION : us-east-1
19
21
20
22
jobs :
21
23
lint :
@@ -32,81 +34,39 @@ jobs:
32
34
uses :
norio-nomura/[email protected]
33
35
env :
34
36
DIFF_BASE : ${{ github.base_ref }}
35
- ubuntu :
37
+ linux :
36
38
runs-on : ubuntu-latest
37
39
strategy :
38
40
matrix :
39
41
image :
40
- - aws-crt-swift-5-ubuntu-16-x64
42
+ - ubuntu-x64
43
+ - al2-x64
44
+ - centos-x64
41
45
steps :
42
- - name : Checkout Sources
43
- uses : actions/checkout@v2
44
- with :
45
- submodules : true
46
- # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
47
46
- name : Build ${{ env.PACKAGE_NAME }}
48
47
run : |
49
- echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin
50
- export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/${{ matrix.image }}:${{ env.BUILDER_VERSION }}
51
- docker pull $DOCKER_IMAGE
52
- docker run --mount type=bind,source=$(pwd),target=/root/${{ env.PACKAGE_NAME }} --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} --build-dir=/root/${{ env.PACKAGE_NAME }} --spec=downstream
53
- al2 :
54
- runs-on : ubuntu-latest
55
- strategy :
56
- matrix :
57
- image :
58
- - aws-crt-swift-5-al2-x64
59
- steps :
60
- - name : Checkout Sources
61
- uses : actions/checkout@v2
62
- with :
63
- submodules : true
64
- # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
65
- - name : Build ${{ env.PACKAGE_NAME }} + consumers
66
- run : |
67
- echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin
68
- export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/${{ matrix.image }}:${{ env.BUILDER_VERSION }}
69
- docker pull $DOCKER_IMAGE
70
- docker run --mount type=bind,source=$(pwd),target=/root/${{ env.PACKAGE_NAME }} --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} --build-dir=/root/${{ env.PACKAGE_NAME }} --spec=downstream
71
- centos :
72
- runs-on : ubuntu-latest
73
- strategy :
74
- matrix :
75
- image :
76
- - aws-crt-swift-5-centos-x64
77
- steps :
78
- - name : Checkout Sources
79
- uses : actions/checkout@v2
80
- with :
81
- submodules : true
82
- # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
83
- - name : Build ${{ env.PACKAGE_NAME }}
84
- run : |
85
- echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin
86
- export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/${{ matrix.image }}:${{ env.BUILDER_VERSION }}
87
- docker pull $DOCKER_IMAGE
88
- docker run --mount type=bind,source=$(pwd),target=/root/${{ env.PACKAGE_NAME }} --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} --build-dir=/root/${{ env.PACKAGE_NAME }} --spec=downstream
48
+ aws s3 cp --debug s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
49
+ ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-swift-5-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }}
89
50
osx :
90
51
runs-on : macos-11
91
52
steps :
92
- - name : Checkout Sources
93
- uses : actions/checkout@v2
94
- with :
95
- submodules : true
96
53
- name : Build ${{ env.PACKAGE_NAME }} + consumers
97
54
run : |
98
55
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
99
56
chmod a+x builder
100
- ./builder build -p ${{ env.PACKAGE_NAME }} --spec=downstream
101
- ios :
57
+ ./builder build -p ${{ env.PACKAGE_NAME }}
58
+ devices :
102
59
runs-on : macos-11
60
+ strategy :
61
+ fail-fast : false
62
+ matrix :
63
+ target :
64
+ - ios
65
+ - tvos
66
+ - watchos
103
67
steps :
104
- - name : Checkout Sources
105
- uses : actions/checkout@v2
106
- with :
107
- submodules : true
108
68
- name : Build ${{ env.PACKAGE_NAME }} + consumers
109
69
run : |
110
70
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
111
71
chmod a+x builder
112
- ./builder build -p ${{ env.PACKAGE_NAME }} --spec=downstream -- target=ios -armv8
72
+ ./builder build -p ${{ env.PACKAGE_NAME }} --target=${{ matrix. target }} -armv8
0 commit comments