forked from YOU54F/pact-ruby-ffi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcirrus.yml.old
74 lines (70 loc) · 1.96 KB
/
cirrus.yml.old
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
BUILD_TEST_TASK_TEMPLATE: &BUILD_TEST_TASK_TEMPLATE
cirrus_cli_pre_req_script:
- chmod +x script/**/*
arch_check_script:
- uname -am
test_script:
- find . -name "*.sh" | xargs chmod +x
- make install
- make download_all_libs
- make test
- make grpc
PROTOC: &PROTOC
protoc_script: |
PROTOC_ZIP=protoc-3.14.0-linux-x86_64.zip
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/$PROTOC_ZIP
unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
rm -f $PROTOC_ZIP
linux_amd64_task:
env:
matrix:
- IMAGE: ruby:3.2
- IMAGE: ruby:3.1
# - IMAGE: ruby:3.0 # needs GLIBC_2.32
# - IMAGE: ruby:2.7 # needs GLIBC_2.32
# - IMAGE: ruby:2.6 # needs GLIBC_2.32
container:
image: $IMAGE
architecture: amd64
install_script:
- apt update --yes && apt install --yes jq protobuf-compiler libc6
- ruby --version
- bundler --version
<< : *BUILD_TEST_TASK_TEMPLATE
# << : *PROTOC
linux_arm64_task:
env:
matrix:
- IMAGE: ruby:3.2
- IMAGE: ruby:3.1
- IMAGE: ruby:3.0
- IMAGE: ruby:2.7
- IMAGE: ruby:2.6
arm_container:
image: $IMAGE
architecture: arm64
install_script:
- apt update --yes && apt install --yes jq protobuf-compiler
- ruby --version
- bundler --version
<<: *BUILD_TEST_TASK_TEMPLATE
# <<: *PROTOC
macos_arm64_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-base:latest
env:
PATH: ${HOME}/.pyenv/shims:${PATH}
matrix:
- IMAGE: 3.2.2 # preinstalled on macos-ventura-base
# - IMAGE: 3.1.4
# - IMAGE: 3.0.6
- IMAGE: 2.7.8 # preinstalled on macos-ventura-base
# - IMAGE: 2.6.10
install_script:
- brew install protobuf
- rm /Users/admin/.rbenv/version
- rbenv install ${IMAGE} || true
- rbenv global ${IMAGE}
- ruby --version
<< : *BUILD_TEST_TASK_TEMPLATE