forked from zeroc-ice/ice
-
Notifications
You must be signed in to change notification settings - Fork 0
146 lines (133 loc) · 4.56 KB
/
ci.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
name: ci
on:
workflow_dispatch:
push:
branches: ["3.7", "main", "macos-windows-ci"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["3.7", "main"]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Build Dependencies
uses: ./.github/actions/setup-build-dependencies
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ runner.os }}-build
if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos')
- name: Build Ice
uses: ./.github/actions/build
test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Test Dependencies
uses: ./.github/actions/setup-test-dependencies
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ runner.os }}-build
if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos')
- name: Test
run: python3 allTests.py --workers=3
# runs-on: ${{ matrix.os }}
# needs: build-ice
# steps:
# - name: Configure Test Dependencies
# uses: ./.github/actions/configure-test-dependencies
# - name: Checkout repository
# uses: actions/checkout@v3
# - name: Setup ccache
# uses: hendrikmuhs/ccache-action@v1.2
# with:
# key: ${{ runner.os }}-build
# if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos')
# - name: Test
# run: python3 allTests.py --workers=3
# linux-latest:
# runs-on: [ubuntu-latest]
# steps:
# - name: Install dependencies
# run: sudo apt-get install -y python3 python3-pip nodejs libbz2-dev libssl-dev libffi-dev libmcpp-dev libedit-dev liblmdb-dev libexpat1-dev libsystemd-dev openjdk-17-jdk ruby ruby-dev php-cli php-dev
# - name: Install test dependencies
# run: python3 -m pip install passlib cryptography
# - name: Checkout repository
# uses: actions/checkout@v3
# - name: Setup ccache
# uses: hendrikmuhs/ccache-action@v1.2
# with:
# key: ${{ runner.os }}-build
# - name: Build
# run: |
# export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
# make -j3 V=1
# - name: Test
# run: python3 allTests.py --workers=3
# macos-latest:
# runs-on: [macos-latest]
# steps:
# - name: Install brew dependencies
# run: brew install python3 ruby openjdk node php lmdb mcpp
# - name: Install test dependencies
# run: python3 -m pip install passlib cryptography
# - name: Checkout repository
# uses: actions/checkout@v3
# - name: Setup ccache
# uses: hendrikmuhs/ccache-action@v1.2
# with:
# key: ${{ runner.os }}-build
# - name: Build
# run: |
# export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
# make -j3 V=1
# - name: Test
# run: python3 allTests.py --workers=3
# windows-latest:
# runs-on: [windows-latest]
# steps:
# # - name: Install dependencies
# # run: choco --yes install
# - name: Setup MSBuild
# uses: microsoft/setup-msbuild@v1.1
# with:
# msbuild-architecture: x64
# - name: Setup Python
# uses: actions/setup-python@v5
# with:
# python-version: "3.12"
# - name: Install test dependencies
# run: python -m pip install passlib cryptography python-dev-tools
# - name: Checkout repository
# uses: actions/checkout@v3
# - name: Cache
# uses: actions/cache@v3
# with:
# path: |
# **/bin
# **/obj
# key: ${{ runner.os }}-build-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-build-${{ github.sha }}
# ${{ runner.os }}-build-
# - name: Configure Environment
# run: |
# echo "PythonHome=$env:Python_ROOT_DIR" >> $env:GITHUB_ENV
# - name: Build
# run: msbuild /m /p:Platform=x64 ice.proj
# - name: Test
# run: python allTests.py --platform=x64 --workers=3