-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (46 loc) · 1.55 KB
/
test-linux-dependencies.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
name: Build CASM dependencies on Ubuntu
on:
workflow_call:
jobs:
build-depends:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Set up requirements & configuration variables
run: |
sudo apt-get update
sudo apt-get install build-essential cmake
pip install --upgrade pip wheel build
### libcasm-global ###
- name: restore libcasm-global cache
id: cache-libcasm-global-restore
uses: actions/cache/restore@v4
with:
path: CASMcode_global/dist
key: ${{ runner.os }}-libcasm-global-v2-0-5
- name: checkout libcasm-global
if: steps.cache-libcasm-global-restore.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: prisms-center/CASMcode_global
path: CASMcode_global
ref: v2.0.5
- name: make global
if: steps.cache-libcasm-global-restore.outputs.cache-hit != 'true'
shell: bash
run: |
cd CASMcode_global
git submodule update --init --recursive
python -m build
pip install dist/*.whl
pip install -r test_requirements.txt
python -m pytest -rsap python/tests
- name: save libcasm-global cache
id: cache-libcasm-global-save
uses: actions/cache/save@v4
with:
path: CASMcode_global/dist
key: ${{ steps.cache-libcasm-global-restore.outputs.cache-primary-key }}