Skip to content

Commit

Permalink
Test the apt caching
Browse files Browse the repository at this point in the history
  • Loading branch information
timfelle committed Mar 12, 2024
1 parent 3ff6119 commit a097adc
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/check_compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,26 @@ jobs:
compile-and-test:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Setup submodules
run: git submodule update --init --recursive
- name: Setup system
run: |
sudo apt-get update
sudo apt-get install -y autotools-dev automake autoconf pkg-config
sudo apt-get install -y openmpi-bin libopenmpi-dev
sudo apt-get install -y libopenblas-dev liblapack-dev

# - name: Setup system
# run: |
# sudo apt-get update
# sudo apt-get install -y autotools-dev automake autoconf pkg-config
# sudo apt-get install -y openmpi-bin libopenmpi-dev
# sudo apt-get install -y libopenblas-dev liblapack-dev

- name: Setup system cached
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: autotools-dev automake autoconf pkg-config openmpi-bin libopenmpi-dev libopenblas-dev liblapack-dev
version: 1.0

- name: Build
run: |
./setup.sh --test
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/check_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup system cached
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: git cmake doxygen graphviz
version: 1.0

- name: Build documentation
run: |
sudo apt-get update
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:

jobs:
# Pull in the external workflows so we avoid duplication
# check_documentation:
# uses: ./.github/workflows/check_documentation.yml
check_documentation:
uses: ./.github/workflows/check_documentation.yml
check_formatting:
uses: ./.github/workflows/check_formatting.yml
# check_compilation:
Expand All @@ -22,7 +22,7 @@ jobs:
name: Run all checks for development PRs
needs:
- check_formatting
# - check_documentation
- check_documentation
# - check_compilation
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit a097adc

Please sign in to comment.