Skip to content

Commit 52df380

Browse files
committed
Toolchain: Rely on installed CMake config file for Cereal and RapidJSON
1 parent d83621a commit 52df380

26 files changed

Lines changed: 129 additions & 88 deletions

.github/workflows/ase_plugin_test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Atomic Simulation Environment (ASE) Plugin Test
33
on:
44
pull_request:
55

6+
defaults:
7+
run:
8+
shell: bash
9+
610
jobs:
711
test:
812
name: abacuslite
@@ -33,6 +37,14 @@ jobs:
3337
cd interfaces/ASE_interface
3438
pip install .
3539
40+
- name: Install external tools from toolchain
41+
run: |
42+
apt update && apt install -y xz-utils
43+
cd toolchain
44+
./install_abacus_toolchain_new.sh --with-dftd4=install --dry-run -j8
45+
./scripts/stage4/install_stage4.sh
46+
cd ..
47+
3648
- name: Configure & Build ABACUS (GNU)
3749
run: |
3850
git config --global --add safe.directory `pwd`

.github/workflows/build_test_cmake.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
push:
44
pull_request:
55

6+
defaults:
7+
run:
8+
shell: bash
9+
610
jobs:
711
test:
812
runs-on: ubuntu-latest
@@ -47,6 +51,14 @@ jobs:
4751
with:
4852
submodules: recursive
4953

54+
- name: Install external tools from toolchain
55+
run: |
56+
apt update && apt install -y xz-utils
57+
cd toolchain
58+
./install_abacus_toolchain_new.sh --with-dftd4=install --dry-run -j8
59+
./scripts/stage4/install_stage4.sh
60+
cd ..
61+
5062
- name: Build
5163
run: |
5264
git config --global --add safe.directory `pwd`

.github/workflows/build_test_makefile.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
push:
44
pull_request:
55

6+
defaults:
7+
run:
8+
shell: bash
9+
610
jobs:
711
test:
812
runs-on: ubuntu-latest

.github/workflows/coverage.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
push:
66
tags:
77
- 'v*'
8+
9+
defaults:
10+
run:
11+
shell: bash
12+
813
jobs:
914
test-coverage:
1015
name: Generate Coverage Report
@@ -18,11 +23,18 @@ jobs:
1823

1924
- name: Install Perl Dependencies and Coverage Tools
2025
run: |
21-
apt update && apt install -y curl jq ca-certificates python3-pip
26+
apt update && apt install -y curl jq ca-certificates python3-pip xz-utils
2227
apt install -y lcov perl-modules
2328
apt install -y libcapture-tiny-perl libdatetime-perl libjson-perl libperlio-gzip-perl
2429
lcov --version
2530
31+
- name: Install external tools from toolchain
32+
run: |
33+
cd toolchain
34+
./install_abacus_toolchain_new.sh --with-dftd4=install --dry-run -j8
35+
./scripts/stage4/install_stage4.sh
36+
cd ..
37+
2638
- name: Building with Coverage
2739
run: |
2840
rm -rf build/

.github/workflows/cuda.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
workflow_dispatch:
55
pull_request:
66

7+
defaults:
8+
run:
9+
shell: bash
10+
711
concurrency:
812
group: ${{ github.workflow }}-${{ github.ref }}
913
cancel-in-progress: true
@@ -28,7 +32,14 @@ jobs:
2832
- name: Install Ccache
2933
run: |
3034
sudo apt-get update
31-
sudo apt-get install -y ccache
35+
sudo apt-get install -y ccache xz-utils
36+
37+
- name: Install external tools from toolchain
38+
run: |
39+
cd toolchain
40+
./install_abacus_toolchain_new.sh --with-dftd4=install --dry-run -j8
41+
./scripts/stage4/install_stage4.sh
42+
cd ..
3243
3344
- name: Configure & Build
3445
run: |

.github/workflows/devcontainer.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- 'v*'
1010
workflow_dispatch:
1111

12+
defaults:
13+
run:
14+
shell: bash
15+
1216
jobs:
1317
build_container_and_push:
1418
runs-on: X64

.github/workflows/doxygen.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
# Allows you to run this workflow manually from the Actions tab
1111
workflow_dispatch:
1212

13+
defaults:
14+
run:
15+
shell: bash
16+
1317
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1418
permissions:
1519
contents: read

.github/workflows/dynamic.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
- cron: '0 16 * * 0'
66
workflow_dispatch:
77

8+
defaults:
9+
run:
10+
shell: bash
11+
812
jobs:
913
test:
1014
name: Dynamic analysis
@@ -14,6 +18,13 @@ jobs:
1418
steps:
1519
- name: Checkout
1620
uses: actions/checkout@v6
21+
- name: Install external tools from toolchain
22+
run: |
23+
apt update && apt install -y xz-utils
24+
cd toolchain
25+
./install_abacus_toolchain_new.sh --with-dftd4=install --dry-run -j8
26+
./scripts/stage4/install_stage4.sh
27+
cd ..
1728
- name: Building
1829
run: |
1930
cmake -B build -DENABLE_ASAN=1 -DENABLE_MLALGO=1 -DENABLE_LIBXC=1

.github/workflows/interface.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: interface
33
on:
44
workflow_dispatch:
55

6+
defaults:
7+
run:
8+
shell: bash
9+
610
jobs:
711
wannier-interface:
812
name: "wannier interface — ${{ matrix.name }}"

.github/workflows/mirror_gitee.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Mirror to Gitee Repository
22

33
on: [ push, delete, create ]
44

5+
defaults:
6+
run:
7+
shell: bash
8+
59
# Ensures that only one mirror task will run at a time.
610
concurrency:
711
group: git-mirror

0 commit comments

Comments
 (0)