bump libjpeg-turbo to 3.1.0 #118
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 dependencies | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| paths: | |
| - 'deps/**' | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| paths: | |
| - 'deps/**' | |
| workflow_dispatch: | |
| jobs: | |
| linux-amd64: | |
| name: Linux AMD64 | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@v4 | |
| - name: Install build tools | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y nasm python3 | |
| - name: Build deps | |
| run: | | |
| echo "Starting dependency build..." | |
| export MAKEFLAGS="-j$(nproc)" | |
| ./deps/build-deps-linux.sh --arch=amd64 | |
| echo "Dependency build completed" | |
| - run: | | |
| git status | |
| git diff | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| cache: false | |
| go-version: "1.23" | |
| - name: Build and test lilliput with the new deps | |
| run: | | |
| go build | |
| go test -v | |
| - name: Generate build info | |
| run: | | |
| ./deps/verify_deps.py generate \ | |
| --deps-dir deps/linux/amd64 \ | |
| --platform linux-amd64 \ | |
| --commit ${{ github.sha }} | |
| - name: Create deps archive | |
| run: | | |
| tar -czf deps-linux-amd64.tar.gz deps/linux/amd64/ | |
| - name: Upload deps artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: deps-linux-amd64.tar.gz | |
| path: deps-linux-amd64.tar.gz | |
| linux-aarch64: | |
| name: Linux AArch64 | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@v4 | |
| - name: Install build tools | |
| run: | | |
| sudo sed -i -E 's|^deb ([^ ]+) (.*)$|deb [arch=amd64] \1 \2\ndeb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ \2|' /etc/apt/sources.list | |
| sudo dpkg --add-architecture arm64 | |
| sudo apt-get update | |
| sudo apt-get install -y cmake \ | |
| patch \ | |
| autoconf libtool nasm yasm \ | |
| python3 \ | |
| crossbuild-essential-arm64 \ | |
| g++-aarch64-linux-gnu \ | |
| gcc-aarch64-linux-gnu \ | |
| binutils-aarch64-linux-gnu | |
| - name: Build deps | |
| run: | | |
| echo "Starting dependency build..." | |
| export MAKEFLAGS="-j$(nproc)" | |
| ./deps/build-deps-linux.sh --arch=aarch64 | |
| echo "Dependency build completed" | |
| - run: | | |
| git status | |
| git diff | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| cache: false | |
| go-version: "1.23" | |
| - name: Build and test lilliput with the new deps | |
| run: | | |
| CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build | |
| - name: Generate build info | |
| run: | | |
| ./deps/verify_deps.py generate \ | |
| --deps-dir deps/linux/aarch64 \ | |
| --platform linux-aarch64 \ | |
| --commit ${{ github.sha }} | |
| - name: Create deps archive | |
| run: | | |
| tar -czf deps-linux-aarch64.tar.gz deps/linux/aarch64/ | |
| - name: Upload deps artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: deps-linux-aarch64.tar.gz | |
| path: deps-linux-aarch64.tar.gz | |
| macos-15: | |
| name: macOS 15 | |
| runs-on: | |
| - macos-15 | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@v4 | |
| - name: Install build tools | |
| run: | | |
| brew install autoconf | |
| brew install automake | |
| brew install coreutils # for ffmpeg build | |
| brew install libtool | |
| - name: Build deps | |
| run: | | |
| echo "Starting dependency build..." | |
| export MAKEFLAGS="-j$(nproc)" | |
| ./deps/build-deps-osx.sh | |
| echo "Dependency build completed" | |
| - run: | | |
| git status | |
| git diff | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| cache: false | |
| go-version: "1.23" | |
| - name: Build and test lilliput with the new deps | |
| run: | | |
| go build | |
| go test -v | |
| - name: Generate build info | |
| run: | | |
| ./deps/verify_deps.py generate \ | |
| --deps-dir deps/osx \ | |
| --platform macos \ | |
| --commit ${{ github.sha }} | |
| - name: Create deps archive | |
| run: | | |
| tar -czf deps-macos-15.tar.gz deps/osx/ | |
| - name: Upload deps artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: deps-macos-15.tar.gz | |
| path: deps-macos-15.tar.gz | |
| verify: | |
| name: Verify Build Artifacts | |
| needs: [linux-amd64, linux-aarch64, macos-15] | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@v4 | |
| - name: Download Linux AMD64 artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: deps-linux-amd64.tar.gz | |
| path: . | |
| - name: Download Linux AArch64 artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: deps-linux-aarch64.tar.gz | |
| path: . | |
| - name: Download macOS 15 artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: deps-macos-15.tar.gz | |
| path: . | |
| - name: Extract artifacts | |
| run: | | |
| tar xzf deps-linux-amd64.tar.gz | |
| tar xzf deps-linux-aarch64.tar.gz | |
| tar xzf deps-macos-15.tar.gz | |
| - name: Verify Linux AMD64 artifacts | |
| run: | | |
| python3 ./deps/verify_deps.py verify \ | |
| --deps-dir deps/linux/amd64 \ | |
| --build-info deps/linux/amd64/build-info.json | |
| - name: Verify Linux AArch64 artifacts | |
| run: | | |
| python3 ./deps/verify_deps.py verify \ | |
| --deps-dir deps/linux/aarch64 \ | |
| --build-info deps/linux/aarch64/build-info.json | |
| - name: Verify macOS 15 artifacts | |
| run: | | |
| python3 ./deps/verify_deps.py verify \ | |
| --deps-dir deps/osx \ | |
| --build-info deps/osx/build-info.json |