Skip to content

Commit ac489e7

Browse files
committed
Cache apt downloads in CI
1 parent 5e227dd commit ac489e7

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

‎.github/workflows/push.yml‎

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,26 +56,33 @@ jobs:
5656
submodules: recursive
5757
- uses: extractions/setup-just@v3
5858
name: Install just
59+
5960
- name: Install libclang, llvm, sdl2, sdl2_image
61+
if: env.os == 'linux'
62+
uses: awalsh128/cache-apt-pkgs-action@v1
63+
with:
64+
packages: libclang-18-dev libllvm18 libsdl2-dev libsdl2-image-dev
65+
version: 1
66+
- name: Setup libclang and llvm symlinks
67+
if: env.os == 'linux'
6068
run: |
61-
sudo apt update
62-
sudo apt -y install libclang-18-dev libllvm18 libsdl2-dev libsdl2-image-dev
6369
sudo ln -rfs /usr/lib/${{ env.arch }}-linux-gnu/libclang-18.so /usr/lib/${{ env.arch }}-linux-gnu/libclang.so
6470
sudo ln -rfs /usr/lib/llvm-18/lib/libLLVM.so.1 /usr/lib/libLLVM-18.so.18.1
65-
if: env.os == 'linux'
6671
- name: Download libclang.dll
6772
if: env.os == 'windows'
6873
uses: actions/download-artifact@v4
6974
with:
7075
name: libclang.dll
7176
merge-multiple: true
7277
path: build
78+
7379
- name: Install llvm, sdl2, sdl2_image
7480
run: brew install llvm@19 sdl2 sdl2_image
7581
if: env.os == 'macos'
76-
- name: Install apt-fast
77-
run: '/bin/bash -c "$(curl -sL https://git.io/vokNn)"'
78-
if: env.plat == 'linux-aarch64'
82+
83+
# - name: Install apt-fast
84+
# run: '/bin/bash -c "$(curl -sL https://git.io/vokNn)"'
85+
# if: env.plat == 'linux-aarch64'
7986
- uses: laytan/setup-odin@v2
8087
with:
8188
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)