-
-
Notifications
You must be signed in to change notification settings - Fork 415
117 lines (105 loc) · 3.75 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
name: PR
on: pull_request
jobs:
superlinter:
name: Lint bash, docker, markdown, and yaml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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-musl-docker-latest-image-builds:
name: Validate musl Docker image builds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docker build
run: "docker build --pull --file=.dockerfiles/latest/x86-64-unknown-linux-musl/Dockerfile ."
validate-gnu-docker-latest-image-builds:
name: Validate GNU Docker image builds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docker build
run: "docker build --pull --file=.dockerfiles/latest/x86-64-unknown-linux-gnu/Dockerfile ."
validate-windows-docker-latest-image-builds:
name: Validate Windows Docker image builds
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- name: Docker build
run: "docker build --pull .dockerfiles/latest/x86-64-pc-windows-msvc"
validate-musl-docker-release-image-builds:
name: Validate musl Docker release image builds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docker build
run: "docker build --pull --file=.dockerfiles/release/x86-64-unknown-linux-musl/Dockerfile ."
validate-gnu-docker-release-image-builds:
name: Validate GNU Docker release image builds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docker build
run: "docker build --pull --file=.dockerfiles/release/x86-64-unknown-linux-gnu/Dockerfile ."
validate-windows-docker-release-image-builds:
name: Validate Windows Docker release image builds
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- name: Docker build
run: "docker build --pull .dockerfiles/release/x86-64-pc-windows-msvc"
verify-changelog:
name: Verify CHANGELOG is valid
runs-on: ubuntu-latest
container:
image: ponylang/changelog-tool:release
steps:
- uses: actions/checkout@v2
- name: Verify CHANGELOG
run: changelog-tool verify
x86_64-Linux-glibc:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- image: ponylang/ponyc-ci-x86-64-unknown-linux-ubuntu22.04-builder-gh:20230805
name: x86-64 Linux glibc
name: ${{ matrix.name }}
container:
image: ${{ matrix.image }}
options: --user pony --cap-add=SYS_PTRACE --security-opt seccomp=unconfined
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache Libs
id: cache-libs
uses: actions/cache@v3
env:
cache-name: libs
with:
path: build/libs
key: ${{ env.cache-name }}-${{ matrix.image }}-${{ hashFiles('Makefile', 'CMakeLists.txt', 'libs/CMakeLists.txt') }}
- name: Build Libs
if: steps.cache-libs.outputs.cache-hit != 'true'
run: make libs build_flags=-j4
- name: Configure Debug Runtime
run: make configure arch=x86-64 config=debug
- name: Build Debug Runtime
run: make build config=debug
- name: Test with Debug Runtime
run: make test-ci config=debug usedebugger='lldb'
- name: Configure Release Runtime
run: make configure arch=x86-64 config=release
- name: Build Release Runtime
run: make build config=release
- name: Test with Release Runtime
run: make test-ci config=release usedebugger='lldb'