-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
41 lines (37 loc) · 1.28 KB
/
regex-engine.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
name: Regex Engine CI
on: [push, pull_request]
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
pcre:
runs-on: ubuntu-latest
name: "PCRE"
container: crystallang/crystal:1.14.0-alpine
steps:
- name: Download Crystal source
uses: actions/checkout@v4
- name: Remove PCRE2
run: apk del pcre2-dev
- name: Assert using PCRE
run: bin/crystal eval 'abort unless Regex::Engine == Regex::PCRE'
- name: Show PCRE config
run: bin/crystal scripts/print_regex_config.cr
- name: Run Regex specs
run: bin/crystal spec --order=random spec/std/regex*
pcre2:
runs-on: ubuntu-latest
name: "PCRE2"
container: crystallang/crystal:1.14.0-alpine
steps:
- name: Download Crystal source
uses: actions/checkout@v4
- name: Assert using PCRE2
run: bin/crystal eval 'abort unless Regex::Engine == Regex::PCRE2'
- name: Assert select PCRE
run: bin/crystal eval -Duse_pcre 'abort unless Regex::Engine == Regex::PCRE'
- name: Show PCRE2 config
run: bin/crystal scripts/print_regex_config.cr
- name: Run Regex specs
run: bin/crystal spec --order=random spec/std/regex*