-
Notifications
You must be signed in to change notification settings - Fork 13
111 lines (108 loc) · 3.87 KB
/
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
---
name: run bamboo
# yamllint disable-line rule:truthy
on:
workflow_call:
workflow_dispatch:
concurrency:
group: test-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}
cancel-in-progress: true
jobs:
run-bamboo:
strategy:
fail-fast: false
matrix:
os:
- macos-14
- ubuntu-24.04
build-type:
- sstmainline_config
- sstmainline_coreonly_config
- sstmainline_config_no_mpi
- sstmainline_coreonly_config_no_mpi
- sstmainline_config_make_dist_test
- sstmainline_config_core_make_dist_test
exclude:
- os: macos-14
build-type: sstmainline_config
- os: macos-14
build-type: sstmainline_coreonly_config
- os: macos-14
build-type: sstmainline_config_make_dist_test
- os: macos-14
build-type: sstmainline_config_core_make_dist_test
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
persist-credentials: false
- name: install system-level dependencies (macOS)
run: |
brew install \
autoconf \
automake \
coreutils \
doxygen \
libtool \
lmod \
ncurses \
pygments
python -m pip install blessings
# echo "source /opt/homebrew/opt/lmod/init/profile" >> ~/.bashrc
if: matrix.os == 'macos-14'
- name: install system-level dependencies (Ubuntu)
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-get -y update
sudo apt-get -y install \
autoconf \
automake \
doxygen \
libopenmpi-dev \
libtool-bin \
lmod \
python3-blessings \
python3-pygments
# echo "source /usr/share/lmod/lmod/init/bash" >> ~/.bashrc
if: matrix.os == 'ubuntu-24.04'
- name: ccache
uses: hendrikmuhs/ccache-action@53911442209d5c18de8a31615e0923161e435875 # v1.2
with:
create-symlink: true
key: ${{ matrix.os }}-${{ matrix.build-type }}
verbose: 2
- name: set env and prepare dir structure
run: |
# Keep this common in order to increase ccache effectiveness
# sst_deps_user_dir="${GITHUB_WORKSPACE}/../${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER}_${GITHUB_RUN_ATTEMPT}"
sst_deps_user_dir="${GITHUB_WORKSPACE}/../sst-deps-user-dir"
mkdir -p "${sst_deps_user_dir}"
SST_DEPS_USER_DIR="$(realpath "${sst_deps_user_dir}")"
echo "SST_DEPS_USER_DIR=${SST_DEPS_USER_DIR}" >> "${GITHUB_ENV}"
- name: fetch elements dependencies
run: |
pristine="${SST_DEPS_USER_DIR}"/sstDeps/src/pristine
mkdir -p "${pristine}"
cd "${pristine}"
wget https://github.com/umd-memsys/DRAMSim2/archive/refs/tags/v2.2.2.tar.gz
- name: run bamboo
run: |
# needed for ncurses part of interactive sst-info
export TERM=dumb
MAKEFLAGS="-j$(nproc)"
export MAKEFLAGS
if [[ "$(uname)" == "Darwin" ]]; then
export PMIX_MCA_gds=hash
fi
export SST_DEPS_USER_MODE=1
mkdir -p "${SST_DEPS_USER_DIR}/devel/trunk"
mv "${GITHUB_WORKSPACE}" "${SST_DEPS_USER_DIR}/devel/sqe"
cd "${SST_DEPS_USER_DIR}/devel/trunk"
../sqe/buildsys/bamboo.sh ${{ matrix.build-type }} none none none none none
ccache -s -vv
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: test-output-${{ matrix.os }}-${{ matrix.build-type }}
path: sst_test_outputs
compression-level: 9
if: '!cancelled()'