-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (70 loc) · 2.92 KB
/
analysis.yaml
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
name: Spliced Analysis
on:
workflow_dispatch:
inputs:
smeagle_examples_branch:
description: 'Reference for smeagle examples data (defaults to main)'
required: true
default: main
skip_smeagle:
description: 'Skip Smeagle if it caused the runs to fail (e.g., memory)'
required: true
type: boolean
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: read
strategy:
fail-fast: false
matrix:
# container, compiler inside to use, and name+version to save
container: [['ghcr.io/buildsi/ubuntu:ubuntu-18.04', 'gcc' , 'gcc-7.5.0'],
['ghcr.io/buildsi/ubuntu:ubuntu-20.04', 'gcc' , 'gcc-9.4.0'],
['ghcr.io/buildsi/ubuntu:ubuntu-22.04', 'gcc' , 'gcc-11.2.0'],
['ghcr.io/buildsi/intel:intel-2022.2-devel-ubuntu20.04', 'dpcpp', 'dpcpp-2022.2'],
['ghcr.io/buildsi/llvm:llvm-6', 'clang', 'clang-6'],
['ghcr.io/buildsi/llvm:llvm-7', 'clang', 'clang-7'],
['ghcr.io/buildsi/llvm:llvm-8', 'clang', 'clang-8'],
['ghcr.io/buildsi/llvm:llvm-9', 'clang', 'clang-8'],
['ghcr.io/buildsi/llvm:llvm-10', 'clang', 'clang-10'],
['ghcr.io/buildsi/llvm:llvm-11', 'clang', 'clang-11'],
['ghcr.io/buildsi/llvm:llvm-12', 'clang', 'clang-12'],
['ghcr.io/buildsi/llvm:llvm-13', 'clang', 'clang-13'],
['ghcr.io/buildsi/llvm:llvm-14', 'clang', 'clang-14']]
container:
image: ${{ matrix.container[0] }}
options: "--platform=linux/amd64"
name: ${{ matrix.container[2] }}
steps:
- name: Show Job Config
run: |
echo ${{ matrix.container[0] }}
echo ${{ matrix.container[1] }}
echo ${{ matrix.container[2] }}
- name: Make Space For Build
run: |
rm -rf /usr/share/dotnet
rm -rf /opt/ghc
- name: Checkout
uses: actions/checkout@v3
with:
repository: buildsi/smeagle-examples
ref: ${{ github.event.inputs.smeagle_examples_branch || 'main' }}
# Install deps cle, abi-laboratory, spliced, etc. into container
- name: Update container base with predictors and spliced
uses: buildsi/smeagle-examples/actions/install@main
- name: Run Unit Tests with Spliced
uses: buildsi/smeagle-examples/actions/test@main
with:
tests_dir: ${{ github.workspace }}
cache_dir: /tmp/cache
results_dir: /tmp/diff-results
cxx: ${{ matrix.container[1] }}
compiler: ${{ matrix.container[2] }}
skip_smeagle: ${{ github.event.inputs.skip_smeagle || 'true' }}
- name: Save result artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.container[2] }}
path: /tmp/diff-results