-
-
Notifications
You must be signed in to change notification settings - Fork 13
161 lines (146 loc) · 4.96 KB
/
pr.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
name: PR
on: pull_request
concurrency:
group: pr-${{ github.ref }}
cancel-in-progress: true
jobs:
superlinter:
name: Lint bash, docker, markdown, and yaml
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Lint codebase
uses: docker://github/super-linter:v3.8.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: true
VALIDATE_BASH: true
VALIDATE_DOCKERFILE: true
VALIDATE_MD: true
VALIDATE_YAML: true
validate-docker-image-builds:
name: Validate Docker image builds
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Docker build
run: "docker build --pull ."
verify-changelog:
name: Verify CHANGELOG is valid
runs-on: ubuntu-latest
container:
image: ghcr.io/ponylang/changelog-tool:release
steps:
- uses: actions/[email protected]
- name: Verify CHANGELOG
run: changelog-tool verify
alpine-bootstrap:
name: Alpine bootstrap
runs-on: ubuntu-latest
container:
image: ghcr.io/ponylang/ponyup-ci-alpine-bootstrap-tester:20230830
steps:
- uses: actions/[email protected]
- name: Bootstrap test
run: SSL=0.9.0 .ci-scripts/test-bootstrap.sh
fedora39-bootstrap:
name: Fedora 39 bootstrap
runs-on: ubuntu-latest
container:
image: ghcr.io/ponylang/ponyup-ci-fedora39-bootstrap-tester:20240130
steps:
- uses: actions/[email protected]
- name: Bootstrap test
run: SSL=3.0.x .ci-scripts/test-bootstrap.sh
ubuntu20_04-bootstrap:
name: Ubuntu 20.04 bootstrap
runs-on: ubuntu-latest
container:
image: ghcr.io/ponylang/ponyup-ci-ubuntu20.04-bootstrap-tester:20230830
steps:
- uses: actions/[email protected]
- name: Bootstrap test
run: .ci-scripts/test-bootstrap.sh
ubuntu22_04-bootstrap:
name: Ubuntu 22.04 bootstrap
runs-on: ubuntu-latest
container:
image: ghcr.io/ponylang/ponyup-ci-ubuntu22.04-bootstrap-tester:20230830
steps:
- uses: actions/[email protected]
- name: Bootstrap test
run: SSL=3.0.x .ci-scripts/test-bootstrap.sh
arm64-macos-bootstrap:
name: arm64 MacOS bootstrap
runs-on: macos-14
steps:
- uses: actions/[email protected]
- name: Install dependencies
# libressl gets installed but is returning a non-zero exit code,
# so we have to soldier on through the stupidity
continue-on-error: true
run: |
brew update
brew install libressl
- name: Bootstrap test
run: SSL=0.9.0 .ci-scripts/test-bootstrap.sh
x86-64-macos-bootstrap:
name: x86_64 MacOS bootstrap
runs-on: macos-13
steps:
- uses: actions/[email protected]
- name: Install dependencies
# libressl gets installed but is returning a non-zero exit code,
# so we have to soldier on through the stupidity
continue-on-error: true
run: |
brew update
brew install libressl
- name: Bootstrap test
run: SSL=0.9.0 .ci-scripts/test-bootstrap.sh
x86-64-linux:
name: x86-64 Linux tests
runs-on: ubuntu-latest
container:
image: ghcr.io/ponylang/shared-docker-ci-x86-64-unknown-linux-builder-with-libressl-3.9.1:release
steps:
- uses: actions/[email protected]
- name: Test with the most recent ponyc release
run: make test
x86-64-macos:
name: x86-64 MacOS tests
runs-on: macos-13
steps:
- uses: actions/[email protected]
- name: install pony tools
run: bash .ci-scripts/macos-x86-install-pony-tools.bash release
- name: Test with the most recent ponyc release
run: |
export PATH="/tmp/corral/bin:/tmp/ponyc/bin/:$PATH"
make test
arm64-macos:
name: arm64 MacOS tests
runs-on: macos-14
steps:
- uses: actions/[email protected]
- name: install pony tools
run: bash .ci-scripts/macos-arm64-install-pony-tools.bash release
- name: Test with the most recent ponyc release
run: |
export PATH="/tmp/corral/bin:/tmp/ponyc/bin/:$PATH"
make test
x86-64-windows:
name: x86-64 Windows tests
runs-on: windows-2022
steps:
- uses: actions/[email protected]
- name: Test with most recent ponyc release
run: |
Invoke-WebRequest https://dl.cloudsmith.io/public/ponylang/releases/raw/versions/latest/ponyc-x86-64-pc-windows-msvc.zip -OutFile C:\ponyc.zip;
Expand-Archive -Path C:\ponyc.zip -DestinationPath C:\ponyc;
Invoke-WebRequest https://dl.cloudsmith.io/public/ponylang/releases/raw/versions/latest/corral-x86-64-pc-windows-msvc.zip -OutFile C:\corral.zip;
Expand-Archive -Path C:\corral.zip -DestinationPath C:\ponyc;
$env:PATH = 'C:\ponyc\bin;' + $env:PATH;
.\make.ps1 -Command fetch 2>&1
.\make.ps1 -Command build 2>&1
.\make.ps1 -Command test 2>&1