Skip to content

Commit d4ae7b1

Browse files
authored
[actions] msys2 ccache (#7850)
#changelog #actions
1 parent 2f0a515 commit d4ae7b1

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/build-msys2.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- '**/*.md'
1414
- 'examples/**'
1515

16+
env:
17+
USE_CCACHE: USE_CCACHE=1
18+
1619
concurrency:
1720
group: ${{ github.workflow }}-${{ github.ref }}
1821
cancel-in-progress: true
@@ -30,6 +33,11 @@ jobs:
3033
shell: msys2 {0}
3134
steps:
3235
- uses: actions/checkout@v4
36+
- name: ccache
37+
uses: hendrikmuhs/ccache-action@v1.2.11
38+
with:
39+
# key: ${{ matrix.os }}-${{ matrix.type }}
40+
key: ${{ matrix.msystem }}
3341
- uses: msys2/setup-msys2@v2
3442
with:
3543
cache: true
@@ -42,10 +50,12 @@ jobs:
4250
# wget
4351
pacboy: assimp:p cairo:p curl:p freeglut:p FreeImage:p gcc:p gdb:p glew:p glfw:p glm:p harfbuzz:p libsndfile:p libusb:p libxml2:p mpg123:p nlohmann-json:p ntldd-git:p openal:p opencv:p pkgconf:p pugixml:p rtaudio:p uriparser:p utf8cpp:p zlib:p poco:p
4452
# boost:p tools:p
53+
4554
- name: Install dependencies
4655
run: ./scripts/ci/msys2/install.sh
4756

4857
- name: Build
4958
run: ./scripts/ci/msys2/build.sh
59+
5060
- name: Run tests
5161
run: ./scripts/ci/msys2/run_tests.sh

scripts/msys2/install_dependencies.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ done
4949

5050
# Install packages
5151
if [[ "${confirm}" == "yes" ]]; then
52-
for pkg in ${packages}; do
53-
pacman -Su --confirm --needed ${pkg}
54-
done
52+
pacman -Su --confirm --needed ${packages}
53+
# for pkg in ${packages}; do
54+
# pacman -Su --confirm --needed ${pkg}
55+
# done
5556
else
5657
pacman -Su --noconfirm --needed ${packages}
5758
fi

0 commit comments

Comments
 (0)