fix: Install zstd from source #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| pull_request: | |
| workflow_call: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| env: | |
| ZSTD_VERSION: v1.5.7 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install zstd from source | |
| run: | | |
| git clone --branch "$ZSTD_VERSION" --depth 1 https://github.com/facebook/zstd.git zstd | |
| cd zstd | |
| make -j$(nproc) | |
| sudo make PREFIX=/usr install | |
| sudo ldconfig | |
| cd .. | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '25' | |
| distribution: 'graalvm' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| with: | |
| cache-read-only: ${{ github.event_name != 'push' }} | |
| - name: Build with Gradle | |
| run: ./gradlew build | |
| - name: Javadoc with Gradle | |
| run: ./gradlew javadoc | |
| - name: Test with Gradle | |
| run: ./gradlew test | |
| - name: Native tests with Gradle | |
| run: ./gradlew nativeTest |