-
Notifications
You must be signed in to change notification settings - Fork 50
60 lines (54 loc) · 1.65 KB
/
docker.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
name: docker
on:
push:
branches:
- master
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- ubuntu_version: 24.04
hyperscan_version: 5.4.2
pcre_version: 8.45
go_version: 1.23.3
build_flags: -tags hyperscan_v54
# - ubuntu_version: 22.04
# hyperscan_version: 5.2.1
# pcre_version: 8.45
# go_version: 1.22.9
# build_flags: -tags hyperscan_v52
# - ubuntu_version: 20.04
# hyperscan_version: 5.1.1
# pcre_version: 8.41
# build_flags:
# go_version: 1.21.13
name: tests @ ubuntu ${{ matrix.ubuntu_version }} for hyperscan ${{ matrix.hyperscan_version }} w/ ${{ matrix.build_flags }}
env:
LATEST_TAG: flier/gohs:${{ matrix.hyperscan_version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
load: true
build-args: |
UBUNTU_VERSION=${{ matrix.ubuntu_version }}
HYPERSCAN_VERSION=${{ matrix.hyperscan_version }}
PCRE_VERSION=${{ matrix.pcre_version }}
GO_VERSION=${{ matrix.go_version }}
tags: ${{ env.LATEST_TAG }}
- name: Test
run: |
docker run --rm ${{ env.LATEST_TAG }} test ${{ matrix.build_flags }} -v ./...