Skip to content

Commit

Permalink
pin cache apt action and use it to install gcc swig etc as well
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonieFierz committed Jan 3, 2025
1 parent 39eaa50 commit 9d0642b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/c.check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: "ubuntu-22.04"
steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@v1
- uses: awalsh128/cache-apt-pkgs-action@a6c3917cc929dd0345bfb2d3feaf9101823370ad
with:
packages: clang-format
version: 6.0
version: 1.0
- name: clang-format
run: find . -type f -iregex ".*\.\(c\|h\|cpp\|ino\)" -exec clang-format -i -style=file {} \; && git diff --exit-code

Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/pyhton.build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt -qy update && sudo apt -qy upgrade
sudo apt -qy install --no-install-recommends gcc g++ swig
uses: awalsh128/cache-apt-pkgs-action@a6c3917cc929dd0345bfb2d3feaf9101823370ad
with:
packages: gcc g++ swig
version: 1.0
- name: generate wrapper
run: ./generate_swig_wrapper.sh
shell: bash
Expand Down

0 comments on commit 9d0642b

Please sign in to comment.