Skip to content

Commit

Permalink
Build: add ccache to accelerate the testing process (deepmodeling#3509)
Browse files Browse the repository at this point in the history
* Build: add ccache to accelerate the testing process

* Update test.yml

* Update test.yml

* Update test.yml
  • Loading branch information
caic99 committed Jan 18, 2024
1 parent 6fe44ad commit 93c9ce3
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,37 @@ name: Integration Test and Unit Test

on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Test
runs-on: self-hosted
if: github.repository_owner == 'deepmodeling'
container: ghcr.io/deepmodeling/abacus-gnu
container:
image: ghcr.io/deepmodeling/abacus-gnu
volumes:
- /tmp/ccache:/github/home/.ccache
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Ccache
run: |
sudo apt-get update
sudo apt-get install -y ccache
- name: Build
run: |
cmake -B build -DBUILD_TESTING=ON -DENABLE_DEEPKS=ON -DENABLE_LIBXC=ON -DENABLE_LIBRI=ON -DENABLE_PAW=ON
cmake --build build -j8
cmake --install build
- name: Test
env:
GTEST_COLOR: 'yes'
Expand Down

0 comments on commit 93c9ce3

Please sign in to comment.