Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ jobs:
if [ "${{ runner.os }}" = "Linux" ]; then
if command -v apk > /dev/null 2>&1; then
apk update
apk add --no-cache bash git gcc g++ musl-dev make curl tar sed gnupg file perl linux-headers cmake diffutils tcl unzip openjdk17
apk add --no-cache bash git gcc g++ musl-dev make curl tar sed gnupg file perl linux-headers cmake diffutils tcl unzip openjdk17 ccache
else
dnf update -y
dnf install -y git gcc gcc-c++ libstdc++-static glibc-devel make curl tar sed bash gnupg file perl kernel-headers cmake diffutils tcl unzip
dnf install -y git gcc gcc-c++ libstdc++-static glibc-devel make curl tar sed bash gnupg file perl kernel-headers cmake diffutils tcl unzip ccache
fi
elif [ "${{ runner.os }}" = "macOS" ]; then
brew install make tcl-tk mimalloc
brew install make tcl-tk mimalloc ccache
elif [ "${{ runner.os }}" = "Windows" ]; then
choco install mingw make magicsplat-tcl-tk -y --no-progress
fi
Expand Down Expand Up @@ -180,6 +180,20 @@ jobs:
SQLite3/src/main/external/sqlcipher/sqlite3.h
key: sqlcipher-amalgamation-${{ matrix.platform }}-${{ hashFiles('SQLite3/src/main/external/sqlcipher/src/**', 'SQLite3/src/main/external/sqlcipher/VERSION') }}

- name: 'ccache'
if: runner.os != 'Windows'
uses: actions/cache@v5
with:
path: ~/.cache/ccache
key: ccache-${{ matrix.platform }}
restore-keys: ccache-${{ matrix.platform }}-

- name: 'Configure ccache'
if: runner.os != 'Windows'
run: |
ccache --set-config=max_size=300M
ccache --zero-stats

- name: 'Configure Gradle'
run: |
echo 'org.gradle.caching=false' >> gradle.properties
Expand All @@ -201,6 +215,10 @@ jobs:
fi
./gradlew :selekt-sqlite3-sqlcipher:jar

- name: 'ccache stats'
if: runner.os != 'Windows'
run: ccache --show-stats

- name: 'Verify native library'
run: |
LIB=$(find SQLite3/build/intermediates/libs \( -name 'libselekt.*' -o -name 'selekt.dll' \) -type f | head -1)
Expand Down
Loading