-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (62 loc) · 1.92 KB
/
Copy pathci-solvers-cpp.yaml
File metadata and controls
70 lines (62 loc) · 1.92 KB
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
name: CI - Solvers - C++
on:
workflow_call:
inputs:
packages-hash-macos:
description: Hash of installed packages on MacOS
required: true
type: string
packages-hash-ubuntu:
description: Hash of installed packages on Ubuntu
required: true
type: string
workflow_dispatch:
permissions:
contents: read
jobs:
# DEBUG
debug-ubuntu:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup homebrew packages
uses: ./.github/actions/homebrew-packages-setup
with:
cache-mode: use
packages-hash-to-use: ${{ inputs.packages-hash-ubuntu }}
- run: |
set -x
mods="$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
eval "${mods}"
echo "HOMEBREW_PREFIX=${HOMEBREW_PREFIX}"
ls -la "${HOMEBREW_PREFIX}"/ || true
ls -la "${HOMEBREW_PREFIX}"/opt/ || true
ls -la "${HOMEBREW_PREFIX}"/opt/gcc/ || true
ls -la "${HOMEBREW_PREFIX}"/opt/gcc/include/ || true
ls -la "${HOMEBREW_PREFIX}"/opt/gcc/include/c++/ || true
ls -la "${HOMEBREW_PREFIX}"/opt/gcc/include/c++/15/ || true
shell: bash
# Checks
build-test-run:
uses: ./.github/workflows/cpp-build-test-run.yaml
with:
packages-hash-macos: ${{ inputs.packages-hash-macos }}
packages-hash-ubuntu: ${{ inputs.packages-hash-ubuntu }}
check-clang-format:
uses: ./.github/workflows/mise-task.yaml
with:
directory: solvers/cpp
task: check:clang-format
# Check for all green CI for C++
check:
if: always()
needs:
- build-test-run
- check-clang-format
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
with:
jobs: ${{ toJSON(needs) }}