-
Notifications
You must be signed in to change notification settings - Fork 167
85 lines (73 loc) · 2.38 KB
/
linux-test.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
name: Linux Test
on:
workflow_dispatch:
pull_request:
push:
tags:
- 'v*.*.*'
branches:
- master
- develop
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
linux-test:
name: Linux GCC Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build: [debug, release]
image: ["debian:trixie-slim", "debian:bookworm-slim", "ubuntu:noble", "ubuntu:jammy"] # TODO: "alpine:3.17"
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install, build and run tests (build)
run: ./docker-compose.sh build
env:
METACALL_BUILD_TYPE: ${{ matrix.build }}
METACALL_BASE_IMAGE: ${{ matrix.image }}
- name: Install, build and run tests (test)
run: ./docker-compose.sh test
env:
METACALL_BUILD_TYPE: ${{ matrix.build }}
METACALL_BASE_IMAGE: ${{ matrix.image }}
linux-sanitizer-test:
name: Linux GCC Sanitizer Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image: ["debian:trixie-slim", "debian:bookworm-slim", "ubuntu:noble", "ubuntu:jammy"]
sanitizer: [address-sanitizer, thread-sanitizer] # TODO: memory-sanitizer not supported by GCC
env:
SANITIZER_SKIP_SUMMARY: 1
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install, build and run thread sanitizer tests
run: ./docker-compose.sh test-${{ matrix.sanitizer }}
env:
METACALL_BUILD_TYPE: debug
METACALL_BASE_IMAGE: ${{ matrix.image }}
linux-distributable:
name: Linux Distributable Dispatch
needs: [linux-test, linux-sanitizer-test]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master'
steps:
- name: Linux Workflow Dispatch
uses: convictional/trigger-workflow-and-wait@v1.6.1
with:
owner: metacall
repo: distributable-linux
github_token: ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
workflow_file_name: ci.yml
wait_workflow: true
client_payload: '{"ref": "${{ github.head_ref || github.ref_name }}"}'
ref: master