Skip to content

Commit 184ed3e

Browse files
authored
Add a CI workflow. (#44)
1 parent 59e9063 commit 184ed3e

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
5+
env:
6+
FORCE_COLOR: "1"
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
12+
# Cancel active CI runs for a PR before starting another run
13+
concurrency:
14+
group: ${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
config:
19+
name: ${{ matrix.target }}
20+
runs-on: macOS-latest
21+
strategy:
22+
matrix:
23+
target: [ "iOS", "tvOS", "watchOS" ]
24+
steps:
25+
- name: Checkout
26+
uses: actions/[email protected]
27+
28+
- name: Set up Python
29+
uses: actions/[email protected]
30+
with:
31+
python-version: "3.X"
32+
33+
- name: Build BZip2 for ${{ matrix.target }}
34+
run: |
35+
make BZip2-${{ matrix.target }}
36+
37+
- name: Build XZ for ${{ matrix.target }}
38+
run: |
39+
make XZ-${{ matrix.target }}
40+
41+
- name: Build libFFI for ${{ matrix.target }}
42+
run: |
43+
make libFFI-${{ matrix.target }}
44+
45+
- name: Build mpdecimal for ${{ matrix.target }}
46+
run: |
47+
make mpdecimal-${{ matrix.target }}
48+
49+
- name: Build OpenSSL for ${{ matrix.target }}
50+
run: |
51+
make OpenSSL-${{ matrix.target }}
52+
53+
- name: Upload Build Artifact
54+
uses: actions/[email protected]
55+
with:
56+
name: dist-${{ matrix.target }}
57+
path: dist
58+
if-no-files-found: error

0 commit comments

Comments
 (0)